emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [O] can inline tasks export to latex via batch?


From: Myles English
Subject: Re: [O] can inline tasks export to latex via batch?
Date: Wed, 22 Feb 2012 13:40:34 +0000
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/23.4 (gnu/linux)

>> On Wed, 22 Feb 2012 00:52:06 +0000, Myles English said:

  > On 21 February 2012 18:18, Jambunathan K wrote:
  >>> Does anyone know if I can export inline tasks to latex using --batch
  >>> from bash? When passed as the --funcall option, org-export-as-ascii
  >>> will export inline tasks but org-export-as-latex-batch
  >>> won't. Setting file level options don't appear to help.
  
  >> Does your command line contain (require 'org-inlinetask)?

  > Thanks for the suggestion.

That was indeed to problem, and typo of mine.  For the record, this
worked, and the "&&" seems to speed things up considerably:

#+BEGIN_SRC sh :results verbatim
    echo "(require 'org-inlinetask)" > /home/myles/tmp/tstexp/afunc.el
    emacs --batch \
          --load=$HOME/.emacs.d/plugins/org-mode/lisp/org.el \
          --visit=~/tmp/tstexp/b.org \
          --load=afunc.el \
          --funcall org-export-as-latex-batch &&
    cat ~/tmp/tstexp/b.tex
#+END_SRC

May be it is inconsistent that exporting inline tasks worked using
org-export-as-ascii without the 'require' but org-export-as-latex-batch
didn't.  Consistency seems to crop up here every so often.  But it
works.

Myles



reply via email to

[Prev in Thread] Current Thread [Next in Thread]