Hello again,
On 08/16/2013 10:45 AM, Suvayu Ali wrote:
You can adapt this to your needs:
<http://article.gmane.org/gmane.emacs.orgmode/74876>
It's in the FAQ now: <http://orgmode.org/worg/org-faq.html#filter>
Cheers,
Thanks for your response. I have it working somewhat:
(defun margin-graphics (contents backend info)
(when (eq backend 'latex)
(replace-regexp-in-string "\\`\\\\includegraphics.+\\({.+}\\)"
"\\\\marginpar{\\\\includegraphics\1} " contents)))
(add-to-list 'org-export-filter-link-functions 'margin-graphics)
However, the LaTeX file contains this:
\marginpar{\includegraphics^A}
rather than the expected
\marginpar{\includegraphics[]{filename}}
Something is wrong with my regexp, but what?
Thanks,
Roger
This electronic communication is governed by the terms and conditions at
http://www.mun.ca/cc/policies/electronic_communications_disclaimer_2012.php