From: Matthew Lundin <mdl@imapmail.org>
To: Ben <bip@maleloria.org>
Cc: emacs-orgmode@gnu.org
Subject: Re: Publishing subsections of an orgmode file (HTML)
Date: Mon, 13 Jul 2009 09:38:09 -0500 [thread overview]
Message-ID: <87fxd01wdq.fsf@fastmail.fm> (raw)
In-Reply-To: <e81e59f60907130659p761e8451n1f10bf3a5c2ea8a2@mail.gmail.com> (Ben's message of "Mon, 13 Jul 2009 14:59:54 +0100")
Ben <bip@maleloria.org> writes:
> I think that's my first post here and I would like first of all to
> thank you all for your amazing work.
Welcome!
>
> My first question is: How can I publish a subsection of one of these
> files as a webpage (and this subsection only)? I occasionally do that
> manually with C-c C-e [R] export-region, which export the subsection
> as a HTML page in an Emacs buffer. What I would like to do is to put a
> comment in the org file subsection to set the HTML 'target' location
> page such as
>
> * Topic A
> ** Things to do [...] (private)
> ** Interesting Notes I would like to publish
> #+THIS_REGION_TARGET_FILE=~/public_html/myfile.html
You can specify the target file for an exported region using the
property EXPORT_FILE_NAME. E.g.
--8<---------------cut here---------------start------------->8---
* Topic A
:PROPERTIES:
:EXPORT_FILE_NAME: ~/public_html/myfile.html
:END:
** Things to do [...] (private)
** Interesting Notes I would like to publish
--8<---------------cut here---------------end--------------->8---
You'll need to select the tree with C-c @ before exporting for this to
work.
See this section of the manual for more information:
http://orgmode.org/manual/Export-options.html
Best,
Matt
next prev parent reply other threads:[~2009-07-13 14:35 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-07-13 13:59 Publishing subsections of an orgmode file (HTML) Ben
2009-07-13 14:38 ` Matthew Lundin [this message]
2009-07-13 15:29 ` Dan Davison
2009-07-13 23:24 ` Ben
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=87fxd01wdq.fsf@fastmail.fm \
--to=mdl@imapmail.org \
--cc=bip@maleloria.org \
--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).