From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: heading numbering in LaTeX export? Date: Sun, 08 Sep 2013 00:05:45 -0400 Message-ID: <87txhwrm92.fsf@gmail.com> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36876) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIWGC-0002sz-Sh for emacs-orgmode@gnu.org; Sun, 08 Sep 2013 00:06:11 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VIWG7-0004wc-11 for emacs-orgmode@gnu.org; Sun, 08 Sep 2013 00:06:04 -0400 Received: from plane.gmane.org ([80.91.229.3]:52450) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VIWG6-0004wP-QL for emacs-orgmode@gnu.org; Sun, 08 Sep 2013 00:05:58 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1VIWG5-0004EP-P7 for emacs-orgmode@gnu.org; Sun, 08 Sep 2013 06:05:57 +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 ; Sun, 08 Sep 2013 06:05:57 +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 ; Sun, 08 Sep 2013 06:05:57 +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 Peter Salazar writes: > Thanks for the responses! > > John: Oh yes, of course. Sorry about that. inimal org file and config files are here. I had to make the org file long enough to make several pages, so the header displays. Here you > go:  > https://github.com/petersalazar/org-troubleshooting > > Rasmus: #+OPTIONS: num:0 is what I started from. When I do that, the resulting PDF has no Table of Contents, and the header displays the section title as "Contents."  > > The same thing happens with #+LATEX: \setcounter{secnumdepth}{0}. > > Richard: Your idea about  > #+LATEX_HEADER: \renewcommand{...} > > sounds very promising! I'd love to know what the exact command is!  The quick-and-dirty solution is --8<---------------cut here---------------start------------->8--- #+LATEX_HEADER: \renewcommand{\thesection}{} #+LATEX_HEADER: \renewcommand{\thesubsection}{} #+LATEX_HEADER: \renewcommand{\thesubsubsection}{} --8<---------------cut here---------------end--------------->8--- That's enough for the default secnumdepth of 3, but if you make that bigger, you'll have to make it even dirtier: --8<---------------cut here---------------start------------->8--- #+LATEX_HEADER: \renewcommand{\theparagraph}{} #+LATEX_HEADER: \renewcommand{\thesubparagraph}{} --8<---------------cut here---------------end--------------->8--- There is probably a cleaner way, but that would require cleverness and I don't have any right now. BTW, this turns off section numbers in the TOC as well, not just in the body of the document. -- Nick