From mboxrd@z Thu Jan 1 00:00:00 1970 From: Richard Lawrence Subject: Re: heading numbering in LaTeX export? Date: Sat, 07 Sep 2013 13:21:37 -0700 Message-ID: <87bo44crhq.fsf@berkeley.edu> References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:46447) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIP33-0001Db-Du for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 16:24:07 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIP2x-0006zp-9z for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 16:24:01 -0400 Received: from plane.gmane.org ([80.91.229.3]:57363) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIP2x-0006zf-34 for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 16:23:55 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VIP2w-0006cF-8o for emacs-orgmode@gnu.org; Sat, 07 Sep 2013 22:23:54 +0200 Received: from c-50-161-39-52.hsd1.ca.comcast.net ([50.161.39.52]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Sep 2013 22:23:54 +0200 Received: from richard.lawrence by c-50-161-39-52.hsd1.ca.comcast.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Sat, 07 Sep 2013 22:23:54 +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 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. 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_HEADER: \renewcommand{...} or whatever. See also: https://en.wikibooks.org/wiki/LaTeX/Document_Structure#Sectioning_commands > 2. The \leftmark in the heading shows up as "Contents" instead of showing > up as the title of the section. I'm not sure about this issue. I would guess that it's also caused by using \section* rather than \section, but there's no \leftmark command in the test document I created. -- Best, Richard