emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* switch export subtree
@ 2017-08-24  7:12 Sébastien Le Maguer
  2017-08-24 16:25 ` Berry, Charles
  0 siblings, 1 reply; 2+ messages in thread
From: Sébastien Le Maguer @ 2017-08-24  7:12 UTC (permalink / raw)
  To: emacs-orgmode

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 ?

Thanks a lot,
Sébastien

--
Save our in-boxes! http://emailcharter.org

================================================================================
Dr. Sébastien Le Maguer
Postdoctorate researcher
Co-chair of SYNSIG (https://synsig.org/index.php/Main_Page)

Saarland University
Campus C7.4 - room 2.03
D-66123 Saarbrücken
Germany

phone : +49-681-302-70030
Mail: slemaguer@coli.uni-saarland.de
website :  http://www.coli.uni-saarland.de/~slemaguer/
================================================================================

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: switch export subtree
  2017-08-24  7:12 switch export subtree Sébastien Le Maguer
@ 2017-08-24 16:25 ` Berry, Charles
  0 siblings, 0 replies; 2+ messages in thread
From: Berry, Charles @ 2017-08-24 16:25 UTC (permalink / raw)
  To: Sébastien Le Maguer; +Cc: emacs-orgmode@gnu.org


> 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-24 16:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2017-08-24  7:12 switch export subtree Sébastien Le Maguer
2017-08-24 16:25 ` Berry, Charles

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).