>> 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