Matt Lundin <m...@imapmail.org> wrote: > In the following example... > > * Testing > #+latex: \custommacro{% > [[http:www.google.com][Google]] > /The quick brown fox./ > #+latex: } > > ...the lines between the latex declarations are not exported: > > \section{Testing} > \label{sec-1} > > \custommacro{% > [[http:www.google.com][Google]] > /The quick brown fox./ > } > > I would expect this behavior with "#+begin_latex:...#+end_latex", but > not with "#+latex". >
The opening brace in the `#+ latex:' line confuses something. My usual workaround is to fake a closing brace in the comment: --8<---------------cut here---------------start------------->8--- * Testing #+latex: \custommacro{% fake it out } [[http:www.google.com][Google]] /The quick brown fox./ #+latex: } --8<---------------cut here---------------end--------------->8--- which produces --8<---------------cut here---------------start------------->8--- \section{Testing} \label{sec-1} \custommacro{% fake it out } \href{http:www.google.com}{Google} \emph{The quick brown fox.} } --8<---------------cut here---------------end--------------->8--- Nick