emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Suvayu Ali <fatkasuvayu+linux@gmail.com>
To: Emacs Org mode <emacs-orgmode@gnu.org>
Subject: Macros in included file not expanded in batch export
Date: Tue, 15 Jul 2014 00:24:53 +0200	[thread overview]
Message-ID: <20140714222453.GA2413@chitra.no-ip.org> (raw)

[-- Attachment #1: Type: text/plain, Size: 660 bytes --]


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?



Open source is the future. It sets us free.

[-- Attachment #2: include-test.org --]
[-- Type: text/plain, Size: 75 bytes --]

#+INCLUDE: include.org

* Some heading 1

* Some heading 2

[-- Attachment #3: include.org --]
[-- Type: text/plain, Size: 57 bytes --]

#+MACRO: todo @@l:\todo[size=\scriptsize,$2]{@@$1@@l:}@@

[-- Attachment #4: include-test-good.tex --]
[-- Type: text/plain, Size: 110 bytes --]

\section{Some heading 1}

\section{Some heading 2}

[-- Attachment #5: include-test-bad.tex --]
[-- Type: text/plain, Size: 84 bytes --]

\section{Some heading 1}

\section{Some heading 2}

             reply	other threads:[~2014-07-14 22:25 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-14 22:24 Suvayu Ali [this message]
2014-07-15  2:50 ` Macros in included file not expanded in batch export Nick Dokos
2014-07-15  6:54   ` Suvayu Ali
2014-07-15 10:49     ` Nick Dokos
2014-07-28 17:59 ` Fabrice Niessen

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:

  List information: https://www.orgmode.org/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20140714222453.GA2413@chitra.no-ip.org \
    --to=fatkasuvayu+linux@gmail.com \
    --cc=emacs-orgmode@gnu.org \


* 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 public inbox


This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).