From mboxrd@z Thu Jan 1 00:00:00 1970 From: Myles English Subject: Re: can inline tasks export to latex via batch? Date: Wed, 22 Feb 2012 13:40:34 +0000 Message-ID: <87ty2jasvh.fsf@gmail.com> References: <878vjwru92.fsf@gmail.com> <81mx8c59ti.fsf@gmail.com> Reply-To: Myles English , emacs-orgmode Mode Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([140.186.70.92]:51432) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0CNF-0002O8-9Q for emacs-orgmode@gnu.org; Wed, 22 Feb 2012 08:36:53 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1S0CN9-0007Dz-FH for emacs-orgmode@gnu.org; Wed, 22 Feb 2012 08:36:49 -0500 Received: from mail-we0-f169.google.com ([74.125.82.169]:41045) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1S0CN9-0007Dm-Ap for emacs-orgmode@gnu.org; Wed, 22 Feb 2012 08:36:43 -0500 Received: by wera13 with SMTP id a13so36483wer.0 for ; Wed, 22 Feb 2012 05:36:42 -0800 (PST) In-Reply-To: (Myles English's message of "Wed, 22 Feb 2012 00:52:06 +0000") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode Mode Cc: Jambunathan K >> 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