emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Carsten Dominik <carsten.dominik@gmail.com>
To: Herbert Sitz <hsitz@nwlink.com>
Cc: emacs-orgmode@gnu.org
Subject: Re: Problem with ditaa when doing export from command line
Date: Fri, 10 Jun 2011 09:52:03 +0200	[thread overview]
Message-ID: <44422493-1A8F-43B6-8051-945C794DFA57@gmail.com> (raw)
In-Reply-To: <loom.20110610T092740-727@post.gmane.org>

Hi Herbert,

On Jun 10, 2011, at 9:33 AM, Herbert Sitz wrote:

> I'm trying to do an export by calling emacs from the command line like so:
> 
> emacs -batch --visit=myfilename --funcall org-export-as-html

maybe you need to do

emacs -batch --visit=myfilename --eval '(setq org-confirm-babel-evaluate nil)' --funcall org-export-as-html

Also, note that when you run emacs with -batch, you init file is *not* evaluated,
so it does not help to have settings there......  Any settings you need must be on the command line,
of in a separate file that you will load with

   emacs -batch -l settings.el .........

For some background info on the prompt about evaluation, check out

http://orgmode.org/manual/Code-evaluation-security.html#Code-evaluation-security

- Carsten

P.S.  How is the VIM port coming along?


> 
> The export works fine except the ditaa png from ditaa source block doesn't get
> created.
> 
> I've run the export from within emacs and the ditaa png does get created.  The
> export also stops to present me with dialog asking whether I want to process the
> ditaa code, to which I respond Yes.  I don't get any dialog when I do the export
> from the command line.
> 
> Is there some way to get the ditaa code working when I do the export from the
> command line.
> 
> I'm running this on Windows7 if that makes any difference.
> 
> Thanks,
> 
> Herb
> 
> 

- Carsten

  reply	other threads:[~2011-06-10  7:52 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-06-10  7:33 Problem with ditaa when doing export from command line Herbert Sitz
2011-06-10  7:52 ` Carsten Dominik [this message]
2011-06-10 15:47   ` Herbert Sitz
2011-06-10 15:59     ` Herbert Sitz
2011-06-10 16:21     ` Nick Dokos
2011-06-10 19:18       ` Herbert Sitz
2011-06-10 19:42         ` Nick Dokos
2011-06-10 20:54           ` Herbert Sitz

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

  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=44422493-1A8F-43B6-8051-945C794DFA57@gmail.com \
    --to=carsten.dominik@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    --cc=hsitz@nwlink.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 public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

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