From mboxrd@z Thu Jan 1 00:00:00 1970 From: Nick Dokos Subject: Re: page break after TOC? Date: Wed, 06 Apr 2011 02:11:46 -0400 Message-ID: <22974.1302070306@alphaville.dokosmarshall.org> References: Reply-To: nicholas.dokos@hp.com Return-path: Received: from [140.186.70.92] (port=53272 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7LyE-00022a-JH for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 02:12:03 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7LyD-0004wF-CV for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 02:12:02 -0400 Received: from vms173001pub.verizon.net ([206.46.173.1]:65370) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7LyD-0004w8-53 for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 02:12:01 -0400 Received: from alphaville.dokosmarshall.org ([unknown] [173.76.32.106]) by vms173001.mailsrvcs.net (Sun Java(tm) System Messaging Server 7u2-7.02 32bit (built Apr 16 2009)) with ESMTPA id <0LJ7004D2VVNT7A0@vms173001.mailsrvcs.net> for emacs-orgmode@gnu.org; Wed, 06 Apr 2011 01:11:47 -0500 (CDT) In-reply-to: Message from John Hendy of "Tue, 05 Apr 2011 22:19:34 CDT." List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: nicholas.dokos@hp.com, emacs-orgmode John Hendy wrote: > I'd like my page1 to be on a separate page from the TOC. How do I > insert a pagebreak to do this? If I do it here: > ,--- > | * Section 1 > | \newpage > | test in section 1 > `--- > > I get the TOC, then the Section 1 title, then a page break, and then the text. > > Assuming you are talking about LaTeX export only, I would define my own class: * copy the system article.cls to myarticle.cls (wherever in my local tree LaTeX can find it; the current directory is the last resort but not very convenient - in my case LaTeX searches in /home/nick/.texmf-config/tex, so I created a directory in there /home/nick/.texmf-config/tex/latex/base and copied it in there - don't forget to run texhash or equivalent) * modify the definition of \tableofcontents to add a \newpage at the end * modify org-export-latex-classes by duplicating the article section and changing article->myarticle in one of them The above steps are one-time only. Then whenever you want the behavior, change the class that org exports to: #+LaTeX_CLASS: myarticle Nick