emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Orgmode] One org file, multiple exports, is it possible?


From: Eric Schulte
Subject: Re: [Orgmode] One org file, multiple exports, is it possible?
Date: Sun, 23 May 2010 09:58:31 -0600
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/24.0.50 (gnu/linux)

Hi Karl,

Maybe the following little function will work.  If called from an
org-mode file, it will try to export each subtree, respecting the values
of EXPORT_FILE_NAME and EXPORT_TITLE.

--8<---------------cut here---------------start------------->8---
(defun org-export-parts ()
  (interactive)
  (org-map-entries
   (lambda ()
     (outline-mark-subtree)
     (org-export-as-html nil))))
--8<---------------cut here---------------end--------------->8---

it shouldn't be difficult to augment the above to set exporting options
based on the values of subtree tags.

If this isn't sufficient, and you want really powerful templating of
different classes of html files you could try out jekyll [1], and some
of the org-jekyll solutions [2].

Hope this helps -- Eric

Footnotes: 
[1]  http://jekyllrb.com/

[2]  http://orgmode.org/worg/org-tutorials/org-jekyll.php



reply via email to

[Prev in Thread] Current Thread [Next in Thread]