emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] LaTeX export: images in margin


From: Suvayu Ali
Subject: Re: [O] LaTeX export: images in margin
Date: Fri, 16 Aug 2013 16:44:52 +0200
User-agent: Mutt/1.5.21 (2012-12-30)

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{\\\\includegraphics\\1} " contents)))
> 
> Note the double backslash before the '1' in the replacement text.

That is a lisp gotcha, :-p.  The regexp needs a backslash, however since
it is the escape character in lisp strings, it needs to be escaped
itself.

Glad things worked out for you.

Cheers,

-- 
Suvayu

Open source is the future. It sets us free.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]