emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
From: Hsiu-Khuern Tang <hsiu-khuern.tang@hp.com>
To: emacs-orgmode@gnu.org
Subject: Re: Re: Export to org?
Date: Wed, 29 Jul 2009 22:44:57 -0700	[thread overview]
Message-ID: <20090730054457.GW21974@hplhtang> (raw)
In-Reply-To: <87y6q7roie.fsf@gollum.intra.norang.ca>

* On Thu 12:41AM +0000, 30 Jul 2009, Bernt Hansen (bernt@norang.ca) wrote:
> Hsiu-Khuern Tang <hsiu-khuern.tang@hp.com> writes:
> 
> > Hi,
> >
> > Is there an easy way to export an org file to another org file, stripping away
> > any subtrees that are tagged "noexport" or marked as comments?  The idea is to
> > discard anything that is also ignored by the other export formats, such as
> > HTML.  I would find this a useful feature to have, for example, for
> > distributing Org files to other people without showing subtrees that are still
> > works-in-progress.
> 
> Hi,
> 
> org-publish handles this now.  An entry like this:
> 
>                  :publishing-function (org-publish-org-to-html org-publish-org-to-org)
> 
> in my org-publish-project-alist.
> 
> This produces both a .html and a .org file from the original .org file.
> Any comments and subtrees marked with a noexport tag will not be
> included in the exported org file.
> 
> More details on my complete setup is here:
> 
> http://doc.norang.ca/org-mode.html#PublishingProjects
> 
> HTH,
> Bernt

This is exactly what I was looking for.  I must have skipped the chapter on
publishing in the Org manual.  Thanks a lot for the pointers!

-- 
Best,
Hsiu-Khuern.

      reply	other threads:[~2009-07-30  5:45 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-07-29 23:31 Export to org? Hsiu-Khuern Tang
2009-07-30  0:41 ` Bernt Hansen
2009-07-30  5:44   ` Hsiu-Khuern Tang [this message]

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=20090730054457.GW21974@hplhtang \
    --to=hsiu-khuern.tang@hp.com \
    --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).