From: Nick Dokos <nicholas.dokos@hp.com>
To: John Hendy <jw.hendy@gmail.com>
Cc: nicholas.dokos@hp.com, emacs-orgmode <emacs-orgmode@gnu.org>
Subject: Re: page break after TOC?
Date: Wed, 06 Apr 2011 02:11:46 -0400 [thread overview]
Message-ID: <22974.1302070306@alphaville.dokosmarshall.org> (raw)
In-Reply-To: Message from John Hendy <jw.hendy@gmail.com> of "Tue, 05 Apr 2011 22:19:34 CDT." <BANLkTinaMqe5hiYmOFNTc28j90jyBFDuAQ@mail.gmail.com>
John Hendy <jw.hendy@gmail.com> 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
next prev parent reply other threads:[~2011-04-06 6:12 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-04-06 3:19 page break after TOC? John Hendy
2011-04-06 6:11 ` Nick Dokos [this message]
2011-04-07 17:43 ` John Hendy
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=22974.1302070306@alphaville.dokosmarshall.org \
--to=nicholas.dokos@hp.com \
--cc=emacs-orgmode@gnu.org \
--cc=jw.hendy@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.