From mboxrd@z Thu Jan 1 00:00:00 1970 From: Rasmus Subject: Re: heading numbering in LaTeX export? Date: Sat, 07 Sep 2013 22:41:50 +0200 Message-ID: <871u50s6sx.fsf@gmx.us> References: <87bo44crhq.fsf@berkeley.edu> Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49225) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIPKT-0004VU-Ba for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 16:42:06 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIPKM-0003Cc-Ub for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 16:42:01 -0400 Received: from mout.gmx.net ([212.227.17.20]:63567) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIPKM-0003Bv-LX for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 16:41:54 -0400 Received: from pank ([92.225.173.78]) by mail.gmx.com (mrgmx103) with ESMTPSA (Nemesis) id 0Lkfii-1VsYxY0nJc-00aUrV for ; Sat, 07 Sep 2013 22:41:52 +0200 In-Reply-To: <87bo44crhq.fsf@berkeley.edu> (Richard Lawrence's message of "Sat, 07 Sep 2013 13:21:37 -0700") 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 Cc: emacs-orgmode@gnu.org Richard Lawrence writes: > Hi Peter, > > Peter Salazar writes: > >> I have a LaTeX template I created for use with org-mode, to export to PDF >> via LaTeX using xelatex. >> >> I don't edit LaTeX directly, I just generate from org-mode. This works >> perfectly for me except for one thing: it only works when I have heading >> numbering turned on. >> >> When I turn numbering off in org-mode, by adding this line to my org-mode >> file... >> >> #+OPTIONS: num:nil >> >> ...LaTeX no longer recognizes my headings as headings. This creates two >> problems: >> >> 1. The Table of Contents is blank. > > This is because, when you set num:nil, Org exports headings to LaTeX > using the \section*{} command, not the usual \section{}. LaTeX does not > put sections defined with \section* (or \chapter*, \part*, etc.) in the > table of contents.=20 > > Thus, if you still want all sections to show up in your table of > contents, you probably don't want to set num:nil. If you just want > section numbers not to show up in section titles, there's probably a > simple way to do this in LaTeX by redefining a command, but I can't find > it right now; maybe someone else here knows. Once you know the LaTeX > command, you can set it on Org via #+LATEX: \setcounter{secnumdepth}{0} Or just #+OPTIONS: num:0 =E2=80=93Rasmus --=20 If you can mix business and politics wonderful things can happen!