From mboxrd@z Thu Jan 1 00:00:00 1970 From: Eric S Fraga Subject: Re: export to LaTeX with TOC but without numbers Date: Tue, 4 Jun 2013 12:47:59 +0100 Message-ID: <87sj0yt7v4.fsf@pinto.chemeng.ucl.ac.uk> References: <87hahe5nyc.fsf@med.uni-goettingen.de> Mime-Version: 1.0 Content-Type: text/plain Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:54846) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujpjm-0006gj-Dy for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 07:49:15 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Ujpjl-0001DE-3X for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 07:49:14 -0400 Received: from am1ehsobe003.messaging.microsoft.com ([213.199.154.206]:8390 helo=am1outboundpool.messaging.microsoft.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Ujpjk-0001Cp-Qs for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 07:49:13 -0400 In-Reply-To: <87hahe5nyc.fsf@med.uni-goettingen.de> (Andreas Leha's message of "Tue, 4 Jun 2013 09:34:19 +0200") 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: Andreas Leha Cc: emacs-orgmode@gnu.org Andreas Leha writes: > Hi all, > > How can I export to LaTeX with the combined effect of toc:t and num:nil? > > Setting num:nil results in an empty TOC. > > I guess, I am looking for a way to automatically add > #+begin_latex > \addcontentsline{toc}{}{} > #+end_latex > to the exported document. > > Regards, > Andreas Andreas, the problem is that setting num:nil tells org to use the second form of sectioning, as specified in org-latex-classes. The unnumbered section headings do not generate TOC information so no TOC is available. It's a latex issue, not org. There are workarounds but they involve using latex directly (to add entries to a TOC basically). -- : Eric S Fraga, GnuPG: 0xC89193D8FFFCF67D : in Emacs 24.3.50.1 and Org release_8.0.3-195-gd7e884