From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: How to include section in exported Latex file, but not in table of contents Date: Mon, 16 Jan 2012 12:01:14 +0000 Message-ID: <87pqej7t6d.fsf@ucl.ac.uk> References: <20120113114157.GA2704@kenny.local> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([140.186.70.92]:33482) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmlFg-0004xX-O8 for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 07:01:33 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1RmlFc-0005dr-HZ for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 07:01:28 -0500 Received: from vscane-b.ucl.ac.uk ([144.82.108.141]:41704) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1RmlFc-0005dK-DJ for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 07:01:24 -0500 Received: from [85.210.141.126] (helo=localhost) by vscane-b.ucl.ac.uk with esmtpsa (TLSv1:AES128-SHA:128) (Exim 4.76) (envelope-from ) id 1RmlFS-0006tN-KO for emacs-orgmode@gnu.org; Mon, 16 Jan 2012 12:01:14 +0000 In-Reply-To: <20120113114157.GA2704@kenny.local> (Viktor Rosenfeld's message of "Fri, 13 Jan 2012 12:41:57 +0100") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org Viktor Rosenfeld writes: > 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 in the table of contents automatically but have those that you want included by adding an explicit =\addcontentsline= directive into your 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} This section heading should appear in the table of contents. * 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 explicitly ask for the table of contents yourself. HTH, eric -- : Eric S Fraga (GnuPG: 0xC89193D8FFFCF67D) in Emacs 24.0.92.1 : using Org-mode version 7.8.03 (release_7.8.03.136.ge2707)