[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[O] Re: export org file to html from command-line
From: |
Sean Davis |
Subject: |
[O] Re: export org file to html from command-line |
Date: |
Thu, 7 Apr 2011 07:44:49 -0400 |
On Thu, Apr 7, 2011 at 1:12 AM, Jambunathan K <address@hidden> wrote:
> Sean Davis <address@hidden> writes:
>
>> I would like to have a way to export a file to html from the
>> command-line
>
> ,----[ C-h f org-export-as-html-batch RET ]
> | org-export-as-html-batch is a compiled Lisp function in `org-html.el'.
> |
> | (org-export-as-html-batch)
> |
> | Call the function `org-export-as-html'.
> | This function can be used in batch processing as:
> | emacs --batch
> | --load=$HOME/lib/emacs/org.el
> | --eval "(setq org-export-headline-levels 2)"
> | --visit=MyFile --funcall org-export-as-html-batch
> |
> | [back]
> `----
Here what I ended up doing:
/Applications/Aquamacs.app/Contents/MacOS/Aquamacs -nw --batch --eval
"(setq aquamacs-version 2)" --visit=biowulf-2011.org
--funcall=org-export-as-html
It also works fine with other exports. Both "org-export-as-html" and
"org-export-as-pdf" work just fine. Finally, I need to sort out the
details, but aquamacs needed to have aquamacs-version set in order to
run this in batch mode (hence, the (setq aquamacs-version 2) eval).
Thanks for the pointer to get things started.
Sean