emacs-orgmode
[Top][All Lists]
Advanced

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

Re: [O] macro expansion not working in #+ATTR_LATEX


From: Nicolas Goaziou
Subject: Re: [O] macro expansion not working in #+ATTR_LATEX
Date: Thu, 05 Sep 2013 21:55:31 +0200

Hello,

Johannes Rainer <address@hidden> writes:

> while working nicely for plain text I realized that macros are not expanded
> if put in #+ATTR_LATEX:
>
> e.g. I defined
>
> #+MACRO: image_width 16
>
> and wanted to use this macro like
>
> #+ATTR_LATEX: :center :placement [H] :width {{{image_width}}}cm
>
> however, in the exported tex file I get:
>
> \includegraphics[width={{{image_width}}}cm]{test.png}
>
> is that intentional that macro expansion works only for plain text?

Yes. Macro are only expanded where one can find plain text. See "11.6
Macro replacement" in Org manual.


Regards,

-- 
Nicolas Goaziou



reply via email to

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