emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* extra whitespace on first page of LaTeX PDF
@ 2012-03-14  7:18 Peter Salazar
  2012-03-14 13:26 ` Jos'h Fuller
  0 siblings, 1 reply; 2+ messages in thread
From: Peter Salazar @ 2012-03-14  7:18 UTC (permalink / raw)
  To: emacs-orgmode

[-- Attachment #1: Type: text/plain, Size: 411 bytes --]

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

[-- Attachment #2: Type: text/html, Size: 595 bytes --]

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

* Re: extra whitespace on first page of LaTeX PDF
  2012-03-14  7:18 extra whitespace on first page of LaTeX PDF Peter Salazar
@ 2012-03-14 13:26 ` Jos'h Fuller
  0 siblings, 0 replies; 2+ messages in thread
From: Jos'h Fuller @ 2012-03-14 13:26 UTC (permalink / raw)
  To: Peter Salazar, emacs-orgmode@gnu.org

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 

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

end of thread, other threads:[~2012-03-14 13:27 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14  7:18 extra whitespace on first page of LaTeX PDF Peter Salazar
2012-03-14 13:26 ` Jos'h Fuller

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).