I still find similar behavior when exporting to LaTeX with:

#+BEGIN_LaTeX
\newcommand{\norm}[1]{\lVert#1\rVert}
#+END_LaTeX


Best regards,
Ruud


On 21 August 2009 06:52, Carsten Dominik <carsten.dominik@gmail.com> wrote:
Fixed, thanks.

- Carsten


On Aug 20, 2009, at 10:14 PM, Nick Dokos wrote:

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.

Work-around: add a space like so:

#+LATEX_HEADER: \newcommand{\rowstyle}[ 1]{\gdef\currentrowstyle{#1}%

HTH,
Nick


_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode



_______________________________________________
Emacs-orgmode mailing list
Remember: use `Reply All' to send replies to the list.
Emacs-orgmode@gnu.org
http://lists.gnu.org/mailman/listinfo/emacs-orgmode