Hi,

I am trying to export to LaTeX in batch mode, but it seems the exporter
ignores macros defined in included files when exporting in batch mode.

I tried to export like this:

  $ emacs --eval "(require 'ox-latex)" include-test.org \
        --eval '(org-LaTeX-export-to-latex nil nil nil t)' -f kill-emacs

  $ emacs --batch --eval "(require 'ox-latex)" include-test.org \
        --eval '(org-LaTeX-export-to-latex nil nil nil t)'

The first one exports correctly, the second doesn't.  The org files, and
the good and bad exported TeX files are attached.

Can someone else reproduce this?

Thanks,

-- 
Suvayu

Open source is the future. It sets us free.
#+INCLUDE: include.org

* Some heading 1
{{{todo(foo)}}}

* Some heading 2
#+MACRO: todo @@l:\todo[size=\scriptsize,$2]{@@$1@@l:}@@
\section{Some heading 1}
\label{sec-1}
\todo[size=\scriptsize,]{foo}

\section{Some heading 2}
\label{sec-2}
\section{Some heading 1}
\label{sec-1}
foo

\section{Some heading 2}
\label{sec-2}

Reply via email to