emacs-orgmode
[Top][All Lists]

Re: [O] How to include section in exported Latex file, but not in table

 From: Viktor Rosenfeld Subject: Re: [O] How to include section in exported Latex file, but not in table of contents Date: Mon, 16 Jan 2012 23:21:21 +0100 User-agent: Mutt/1.5.21 (2010-09-15)

```Hi Eric,

Eric S Fraga wrote:

>
> > Hi,
> >
> > I would like to include an entry of my org file in the exported Latex
> > file, but I would like the entry to be skipped in the table of contents.
> >
> > In other words, I would like to reproduce the behavior of Latex commands
> > like \section* and so on. Is this at all possible?
> >
> > I tried EXPORT_OPTIONS: toc:nil in a property drawer below the entry,
> > but that didn't work out.
> >
> > Thanks,
> > Viktor
>
> AFAIK, I don't think this is possible as headlines are exported as
> either \section or \section* depending on your num: setting for the
> whole document.
>
> However, it *is* possible to do the opposite of what you want, albeit
> with direct latex code.  That is, you can have sections *not* included
> org file.  For example:
>
> --8<---------------cut here---------------start------------->8---
> #+OPTIONS:   H:3 num:nil toc:t
>
> #+LaTeX: \tableofcontents
>
> * Introduction
>   This is some introductory text.
> * Included in toc
>   #+LaTeX: \addcontentsline{toc}{section}{The actual entry in TOC}
> * Conclusions
>   But this will not appear in the toc.
> --8<---------------cut here---------------end--------------->8---
>
> Unfortunately, numbering is not done at all so you would have to do this
> manually if you wanted numbers.  Also note that the "toc:t" setting is
> actually ignored as you have not asked for numbering...  so you have to