[O] extra whitespace on first page of LaTeX PDF

2012-03-14 Thread Peter Salazar
I'm using xelatex org-latex-to-pdf-process to convert org-mode to PDF.

I wanted a page break after the Table of Contents so I modified my
org-export-latex-classes and added:

\\makeatletter
\\g@addto@macro\\@cfttocfinish{\\clearpage}
\\makeatother

But now I have lots of extra whitespace on the page after the Table of
Contents, before the first text appears.

Has anyone run into this before?

Thanks,
Peter


Re: [O] extra whitespace on first page of LaTeX PDF

2012-03-14 Thread Jos'h Fuller
Hi!

 I wanted a page break after the Table of Contents so I modified my org-
 export-latex-classes and added:

Have you tried using \newpage instead of \clearpage?

When I want a page break after the TOC, I'll usually just drop a \newpage in 
just before the first heading like this:

#+ORG_EXPORT_SETTINGS...
\newpage
* First Heading
** A Subhead

This seems to work satisfactorily. My understanding is that \newpage is what 
you use for regular pagebreaks, while \clearpage is for ending a chapter 
because it flushes out floating elements. This discussion on 
tex.stackexchange.com /may/ be helpful:


http://tex.stackexchange.com/questions/45609/is-it-wrong-to-use-clearpage-instead-of-newpage

Hope this helps!

(Disclaimer: This advice is worth what you paid for it... ; - )

Jos'h