From: "Berry, Charles" <ccberry@ucsd.edu>
To: "Sébastien Le Maguer" <slemaguer@coli.uni-saarland.de>
Cc: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Re: switch export subtree
Date: Thu, 24 Aug 2017 16:25:49 +0000 [thread overview]
Message-ID: <0FD84005-6F4E-42E3-93FD-DD855BFA9D4D@ucsd.edu> (raw)
In-Reply-To: <8760ddjv6e.fsf@coli.uni-saarland.de>
> On Aug 24, 2017, at 12:12 AM, Sébastien Le Maguer <slemaguer@coli.uni-saarland.de> wrote:
>
> Hello,
>
> I'm looking for a way to switch of the export of a specific subtree in a document using a specific exporter. For example, let's assume the document
>
> * Section 1
> ** Subsection 11
> ** Subsection 12
>
> I would like to export only Subsection 11 into HTML and only Subsection 12 into LATEX/PDF.
>
> Is there some kind of property to control that ? Or maybe another way ?
You want to use tags.
See
(info "(org) Tags")
(info "(org) Export settings")
Something like this should do it. Other backends will include both.
#+BEGIN_SRC emacs-lisp :exports results :results value
(setq org-export-select-tags
(case org-export-current-backend
('latex '("latex"))
('html '("html"))))
#+END_SRC
* abc :latex:
hi this is latex
* def :html:
hi this is html
HTH,
Chuck
prev parent reply other threads:[~2017-08-24 16:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-08-24 7:12 switch export subtree Sébastien Le Maguer
2017-08-24 16:25 ` Berry, Charles [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=0FD84005-6F4E-42E3-93FD-DD855BFA9D4D@ucsd.edu \
--to=ccberry@ucsd.edu \
--cc=emacs-orgmode@gnu.org \
--cc=slemaguer@coli.uni-saarland.de \
/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).