|
From: | Michael Hohn |
Subject: | Re: [Orgmode] Converting to html in a shell script |
Date: | Thu, 13 Mar 2008 10:36:37 -0700 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.1.8) Gecko/20071008 Iceape/1.1.5 (Ubuntu-1.1.5-1ubuntu0.7.10) |
lanas wrote:
Hi all, I would like to convert an org file to HTML, much like C-c C-e h would do, automatically from a shell script. So far I've tried unsuccesfully some permutaions of: emacs -batch -l ~/.emacs -eval '(org-export-as-html "./file.org")' emacs -batch -l ~/.emacs -eval '(org-export-as-html)' ./file.org Is it at all possible and if so, what would be the actual way of calling emacs to do this ?
I use a makefile entry %.html: %.org org-export-cust.el emacs --batch -q $< -l ./org-export-cust.el tidy -i -m $@ together with this org-export-cust.el script: ;; Batch script to convert %.org to %.html, with external style sheet ;; and other options. ;; ;; Used via emacs --batch -q $< -l ./org-export-cust.el ;; (load-library "~/emacs/lisp/org.elc") (setq org-export-html-style "<link rel=stylesheet href=\"l3style.css\" type=\"text/css\">") (org-export-as-html 3 'hidden) -- Michael
[Prev in Thread] | Current Thread | [Next in Thread] |