emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* page break after TOC?
@ 2011-04-06  3:19 John Hendy
  2011-04-06  6:11 ` Nick Dokos
  0 siblings, 1 reply; 3+ messages in thread
From: John Hendy @ 2011-04-06  3:19 UTC (permalink / raw)
  To: emacs-orgmode

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.


Thanks!
John

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: page break after TOC?
  2011-04-06  3:19 page break after TOC? John Hendy
@ 2011-04-06  6:11 ` Nick Dokos
  2011-04-07 17:43   ` John Hendy
  0 siblings, 1 reply; 3+ messages in thread
From: Nick Dokos @ 2011-04-06  6:11 UTC (permalink / raw)
  To: John Hendy; +Cc: nicholas.dokos, emacs-orgmode

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: page break after TOC?
  2011-04-06  6:11 ` Nick Dokos
@ 2011-04-07 17:43   ` John Hendy
  0 siblings, 0 replies; 3+ messages in thread
From: John Hendy @ 2011-04-07 17:43 UTC (permalink / raw)
  To: nicholas.dokos; +Cc: emacs-orgmode

On Wed, Apr 6, 2011 at 1:11 AM, Nick Dokos <nicholas.dokos@hp.com> wrote:
> 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:

This perfect. I'll be doing this.

Thanks for the tip,
John

>
> #+LaTeX_CLASS: myarticle
>
> Nick
>
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2011-04-07 17:43 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-04-06  3:19 page break after TOC? John Hendy
2011-04-06  6:11 ` Nick Dokos
2011-04-07 17:43   ` John Hendy

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).