LaTeX export: Avoid footnote processing in LATEX_HEADER lines
commita48fe32c4cfc6dede73818b4d54bde571b7e2872
authorCarsten Dominik <carsten.dominik@gmail.com>
Fri, 21 Aug 2009 05:44:29 +0000 (21 06:44 +0100)
committerCarsten Dominik <carsten.dominik@gmail.com>
Fri, 21 Aug 2009 05:44:29 +0000 (21 06:44 +0100)
tree630ea5c4588130c2013b3c8b907aed21ab9eeaa7
parent38f300992798e42dbddd402202091eb9d9eb4951
LaTeX export: Avoid footnote processing in LATEX_HEADER lines

Nick Dokos writes:

> I define a LaTeX macro at the top of my document, like so:
>
> ,----
> | ...
> | #+LATEX_HEADER: \newcommand{\rowstyle}[1]{\gdef\currentrowstyle{#1}%
> | #+LATEX_HEADER:   #1\ignorespaces
> | #+LATEX_HEADER: }
> | ...
> `----
>
> and export - I get the following inserted:
>
> ,----
> | ...
> | \begin{document}
> |
> |
> |
> |
> |
> | \$\^{}{1}\$ FOOTNOTE DEFINITION NOT FOUND: 1
> | ...
> `----
>
> Obviously, the macro argument spec is mistaken for a footnote.
lisp/ChangeLog
lisp/org-footnote.el
lisp/org.el