From mboxrd@z Thu Jan 1 00:00:00 1970 From: John Hendy Subject: Re: page break after TOC? Date: Thu, 7 Apr 2011 12:43:25 -0500 Message-ID: References: <22974.1302070306@alphaville.dokosmarshall.org> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Return-path: Received: from [140.186.70.92] (port=54265 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q7tEt-0003TH-TS for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 13:43:28 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q7tEt-00019o-0c for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 13:43:27 -0400 Received: from mail-bw0-f41.google.com ([209.85.214.41]:43453) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q7tEs-00019a-Qu for emacs-orgmode@gnu.org; Thu, 07 Apr 2011 13:43:26 -0400 Received: by bwz17 with SMTP id 17so2573292bwz.0 for ; Thu, 07 Apr 2011 10:43:25 -0700 (PDT) In-Reply-To: <22974.1302070306@alphaville.dokosmarshall.org> 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: nicholas.dokos@hp.com Cc: emacs-orgmode On Wed, Apr 6, 2011 at 1:11 AM, Nick Dokos wrote: > 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: This perfect. I'll be doing this. Thanks for the tip, John > > #+LaTeX_CLASS: myarticle > > Nick > >