From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: Missing Introduction and About sections in LaTeX export Date: Wed, 27 Apr 2011 17:41:26 -0400 Message-ID: <5291.1303940486@alphaville.americas.hpqcorp.net> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from eggs.gnu.org ([140.186.70.92]:41449) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFCUD-0005Bk-QL for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 17:41:30 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1QFCUC-0002E1-L1 for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 17:41:29 -0400 Received: from g1t0027.austin.hp.com ([15.216.28.34]:16271) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1QFCUC-0002Du-B6 for emacs-orgmode@gnu.org; Wed, 27 Apr 2011 17:41:28 -0400 In-Reply-To: Message from Avdi Grimm of "Wed, 27 Apr 2011 16:57:11 EDT." 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: avdi@avdi.org Cc: nicholas.dokos@hp.com, emacs-orgmode Avdi Grimm wrote: > I have an Org document I'm exporting to PDF through LaTeX using the > "report" class. > > The two first top-level sections in the document, titled "About" and > "Introduction", are completely missing from the generated .tex and > PDF. The exported files start on the third section. > Can't reproduce this: --8<---------------cut here---------------start------------->8--- #+latex_class: report * About foo * Introduction bar * First real section baz --8<---------------cut here---------------end--------------->8--- when exported to latex it gives: ,---- | ... | \part{About} | \label{sec-1} | | | foo | \part{Introduction} | \label{sec-2} | | | bar | \part{First real section} | \label{sec-3} | | | baz `---- and all three appear in the TOC. Org-mode version 7.5 (release_7.5.181.g66caf) GNU Emacs 24.0.50.1 (x86_64-unknown-linux-gnu, GTK+ Version 2.22.0) of 2011-04-13 > Coincidentally(?) those are the "front matter" sections which I don't > want included in the contents. However, I have done nothing to mark > them as such. They have no classes or properties. As far as I can tell > there is nothing making them different from other sections. > > Any ideas why they might be elided by the LaTeX exporter in Org 7.5? > > Follow-up: assuming I can get them to export at all, how can I mark > *just* those two headings to be exported using the "starred" form so > that they are not included in the chapter numbering? > Just star them by hand in the tex file after exporting for the last time: it'll take two seconds. You may be able to do it from Org by writing a custom function (C-h v org-export-latex-classes for details) but I suspect that the effort is just not worth it. Nick