From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: export to LaTeX with TOC but without numbers Date: Tue, 04 Jun 2013 16:54:52 -0400 Message-ID: <87zjv5lhpf.fsf@pierrot.dokosmarshall.org> References: <87hahe5nyc.fsf@med.uni-goettingen.de> <87sj0yt7v4.fsf@pinto.chemeng.ucl.ac.uk> <87a9n65bun.fsf@med.uni-goettingen.de> <878v2pn1ic.fsf@pierrot.dokosmarshall.org> <871u8h63hs.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]:58725) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjyG4-0003DH-Nj for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 16:55:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1UjyG2-0007gU-TE for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 16:55:08 -0400 Received: from plane.gmane.org ([80.91.229.3]:56429) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1UjyG2-0007g1-Mm for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 16:55:06 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1UjyG0-0005LJ-RT for emacs-orgmode@gnu.org; Tue, 04 Jun 2013 22:55:04 +0200 Received: from pool-108-7-96-134.bstnma.fios.verizon.net ([108.7.96.134]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jun 2013 22:55:04 +0200 Received: from ndokos by pool-108-7-96-134.bstnma.fios.verizon.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 04 Jun 2013 22:55:04 +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: emacs-orgmode@gnu.org Andreas Leha writes: >> Instead of adding toc entries, you can use latex to delete section >> numbers: >> >> #+LATEX_HEADER: \setcounter{secnumdepth}{0} >> ... >> >> The problem might be that the sections are not numbered in the TOC >> either. But if you don't care about that, this is certainly simpler >> than adding toc entries by hand. > > Thanks for that! That is really cool and having the entries in the TOC > un-numbered is exactly what I want! > > As a follow-up, it would be nice if I could mix > that now again with num:1. That way I could add a TOC with depth 1 > (only sections) and have them un-numbered. > There is a tocdepth counter that you can set similarly. Will that do what you want? --8<---------------cut here---------------start------------->8--- #+LATEX_HEADER: \setcounter{tocdepth}{1} #+LATEX_HEADER: \setcounter{secnumdepth}{0} --8<---------------cut here---------------end--------------->8--- > But num:1 add its own '\setcounter{secnumdepth}{1}' (why?) which by default > comes later than than the #+LATEX_HEADER definition: > > #+OPTIONS: num:1 > #+LATEX_HEADER: \setcounter{secnumdepth}{0} > -- Nick