all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: Myles English <mylesenglish@gmail.com>
To: emacs-orgmode Mode <emacs-orgmode@gnu.org>
Cc: Jambunathan K <kjambunathan@gmail.com>
Subject: Re: can inline tasks export to latex via batch?
Date: Wed, 22 Feb 2012 13:40:34 +0000	[thread overview]
Message-ID: <87ty2jasvh.fsf@gmail.com> (raw)
In-Reply-To: <CAO=Do-yRLo0d7pkUZ9p+zjSm2zyNpD74_B8J2ij2aJd5D3KiQw@mail.gmail.com> (Myles English's message of "Wed, 22 Feb 2012 00:52:06 +0000")


>> 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	other threads:[~2012-02-22 13:36 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-02-21 17:06 can inline tasks export to latex via batch? Myles English
2012-02-21 18:18 ` Jambunathan K
2012-02-22  0:52   ` Myles English
2012-02-22 13:40     ` Myles English [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=87ty2jasvh.fsf@gmail.com \
    --to=mylesenglish@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=kjambunathan@gmail.com \
    /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.