Re: [O] LaTeX export: images in margin

2013-08-16 Thread Suvayu Ali
On Fri, Aug 16, 2013 at 12:02:46PM -0230, Roger Mason wrote: > > (replace-regexp-in-string "\\`includegraphics.+\\({.+}\\)" >"marginpar{includegraphics\1} " contents))) > > should be: > > (replace-regexp-in-string "\\`includegraphics.+\\({.+}\\)" >"marginpar{\

Re: [O] LaTeX export: images in margin

2013-08-16 Thread Roger Mason
Hello once more, On 08/16/2013 11:34 AM, Roger Mason wrote: (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-l

Re: [O] LaTeX export: images in margin

2013-08-16 Thread Roger Mason
Hello again, On 08/16/2013 10:45 AM, Suvayu Ali wrote: You can adapt this to your needs: It's in the FAQ now: Cheers, Thanks for your response. I have it working somewhat: (defun margin-grap

Re: [O] LaTeX export: images in margin

2013-08-16 Thread Suvayu Ali
On Fri, Aug 16, 2013 at 02:47:07PM +0200, Suvayu Ali wrote: > On Fri, Aug 16, 2013 at 09:29:58AM -0230, Roger Mason wrote: > > Hello, > > > > I'd like to have images in the margin when exporting to LaTeX (or creating a > > pdf via LaTeX). I see from a message on one of the TeX mailing lists that

Re: [O] LaTeX export: images in margin

2013-08-16 Thread Suvayu Ali
On Fri, Aug 16, 2013 at 09:29:58AM -0230, Roger Mason wrote: > Hello, > > I'd like to have images in the margin when exporting to LaTeX (or creating a > pdf via LaTeX). I see from a message on one of the TeX mailing lists that > this can be done like this: > > \marginpar{\includegraphics[]{../im

[O] LaTeX export: images in margin

2013-08-16 Thread Roger Mason
Hello, I'd like to have images in the margin when exporting to LaTeX (or creating a pdf via LaTeX). I see from a message on one of the TeX mailing lists that this can be done like this: \marginpar{\includegraphics[]{../images/Walkthrough_1-001.jpg}} How can I get org (8.0.3 on linux) to wra