From: Fabrice Niessen <fni-news-TA4HMoP+1wHrZ44/DZwexQ@public.gmane.org>
To: emacs-orgmode-mXXj517/zsQ@public.gmane.org
Subject: Re: Macros in included file not expanded in batch export
Date: Mon, 28 Jul 2014 19:59:35 +0200 [thread overview]
Message-ID: <86k36xcqk8.fsf@somewhere.org> (raw)
In-Reply-To: 20140714222453.GA2413@chitra.no-ip.org
Hello Suvayu,
Suvayu Ali wrote:
> 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.
In case you or others want a simplified command-line version of such
conversion tools, you can have a look at my Orgmk project on GitHub [1].
It provides you with:
- org2html [OPTION] FILE
- org2latex [OPTION] FILE
- org2pdf [OPTION] FILE
- org2beamerpdf [OPTION] FILE
- org2odt [OPTION] FILE
- org2txt [OPTION] FILE
- org-tangle FILE
stand-alone scripts, and the `orgmk' wrapper (to convert all files
which need to in a directory, and possibly recursively).
Best regards,
Fabrice
[1] https://github.com/fniessen/orgmk
--
Fabrice Niessen
Leuven, Belgium
http://www.pirilampo.org/
prev parent reply other threads:[~2014-07-28 17:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-14 22:24 Macros in included file not expanded in batch export Suvayu Ali
2014-07-15 2:50 ` Nick Dokos
2014-07-15 6:54 ` Suvayu Ali
2014-07-15 10:49 ` Nick Dokos
2014-07-28 17:59 ` Fabrice Niessen [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=86k36xcqk8.fsf@somewhere.org \
--to=fni-news-ta4hmop+1whrz44/dzwexq@public.gmane.org \
--cc=emacs-orgmode-mXXj517/zsQ@public.gmane.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.