From: "Eric Schulte" <schulte.eric@gmail.com>
To: kmartino@pobox.com
Cc: emacs-orgmode@gnu.org
Subject: Re: One org file, multiple exports, is it possible?
Date: Sun, 23 May 2010 09:58:31 -0600 [thread overview]
Message-ID: <87bpc6wqxk.fsf@gmail.com> (raw)
In-Reply-To: <AANLkTikjlUMaJUBMqj2QbpCeP6JUwNtfrOrUCZ9Q4cHe@mail.gmail.com> (Karl Martino's message of "Sun, 23 May 2010 08:22:45 -0400")
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
next prev parent reply other threads:[~2010-05-23 15:58 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-05-22 23:46 One org file, multiple exports, is it possible? Karl Martino
2010-05-23 0:47 ` Karl Martino
2010-05-23 4:59 ` Carsten Dominik
2010-05-23 12:22 ` Karl Martino
2010-05-23 15:58 ` Eric Schulte [this message]
2010-05-23 16:17 ` Carsten Dominik
2010-05-23 16:31 ` Karl Martino
2010-05-23 18:49 ` Thomas S. Dye
2010-05-23 20:57 ` Carsten Dominik
2010-05-23 22:01 ` Thomas S. Dye
2010-05-24 5:20 ` Carsten Dominik
2010-05-24 16:36 ` Thomas S. Dye
2010-05-25 3:38 ` Thomas S. Dye
2010-05-25 3:50 ` Bernt Hansen
2010-05-25 16:20 ` Thomas S. Dye
2010-05-25 16:52 ` Nick Dokos
2010-05-25 17:51 ` Thomas S. Dye
2010-05-28 3:40 ` Thomas S. Dye
2010-05-25 17:26 ` Mark Elston
2010-05-25 17:53 ` Thomas S. Dye
2010-05-26 18:42 ` Thomas S. Dye
2010-05-26 21:37 ` Nick Dokos
2010-05-26 22:28 ` Thomas S. Dye
2010-05-27 1:40 ` Nick Dokos
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
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87bpc6wqxk.fsf@gmail.com \
--to=schulte.eric@gmail.com \
--cc=emacs-orgmode@gnu.org \
--cc=kmartino@pobox.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 external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.