emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Nick Dokos <nicholas.dokos@hp.com>
To: andrea.crotti.0@gmail.com
Cc: emacs-orgmode@gnu.org
Subject: Re: batch exporting
Date: Sun, 20 Dec 2009 14:09:05 -0500	[thread overview]
Message-ID: <19518.1261336145@gamaville.dokosmarshall.org> (raw)
In-Reply-To: Message from andrea <andrea.crotti.0@gmail.com> of "Sun, 20 Dec 2009 19:26:48 +0100." <m1hbrlh57b.fsf@ip116-027.hgracht.rwth-aachen.de>

andrea <andrea.crotti.0@gmail.com> wrote:

> 
> Given that I often would like to export to some formats I would like to
> create the final script that handles everything.
> 
> If easy enough it can also be useful for non org users that still would
> like to get the output formatted...
> 
> So my attempt is here
> --8<---------------cut here---------------start------------->8---
> #!/bin/bash
> 
> # Pass as input the file you want to convert to html
> 
> FILE=$1
> 
> if ! test -f $FILE
> then
>     echo "file not found"
> else
>     echo "converting file $FILE"
>     # TODO putting a minimal init file
>     emacs --batch \
> 	--eval "(add-to-list 'load-path \"$HOME/.emacs.d/org-mode/lisp/\")" \
> 	--load=$HOME/.emacs.d/org-mode/lisp/org.el \
> 	--visit=MyFile --funcall org-export-as-html-batch
> fi
> 
> help() {
>     echo "pass a file to export"
> }
> 
> --8<---------------cut here---------------end--------------->8---
> 
> But it gives this error
> *Wrong type argument: commandp, org-export-as-html-batch*
> 
> Then I would like to add some flags to export in different formats and
> to set destination and source.
> 
> And by the way, the script given as example in the function help doesn't
> work...
> 
> 

See the thread at

    http://thread.gmane.org/gmane.emacs.orgmode/17059

HTH,
Nick

  reply	other threads:[~2009-12-20 19:11 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-12-20 18:26 batch exporting andrea
2009-12-20 19:09 ` Nick Dokos [this message]
2009-12-20 22:43   ` andrea
2009-12-20 22:52     ` Carsten Dominik
2009-12-21  7:27       ` andrea
2009-12-21 10:25         ` andrea Crotti
2009-12-21 14:25         ` Nick Dokos
2009-12-21 14:51           ` andrea
2009-12-21 17:10             ` Nick Dokos
2009-12-22  9:20               ` andrea

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=19518.1261336145@gamaville.dokosmarshall.org \
    --to=nicholas.dokos@hp.com \
    --cc=andrea.crotti.0@gmail.com \
    --cc=emacs-orgmode@gnu.org \
    /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).