[OS X TeX] Landscape mode?
Bruno Voisin
bvoisin at mac.com
Thu Mar 3 06:20:18 EST 2005
Le 3 mars 05, à 11:42, David Derbes a écrit :
> After reading about a "Cheat Sheet" (summary of LaTeX commands) on
> this list, I Google'd one, but in attempting to typeset the document,
> I discovered that landscape mode simply doesn't work with my setup.
> I'm using Gerben's installation with TeXShop, and even a thing like
>
> \documentclass[10 pt, landscape]{article}
> \begin{document}
> This is a test.
> \end{document}
>
> fails to be typeset in landscape mode.
Usually including the package graphics, namely
\includepackage{graphics}
should solve the issue (don't forget to set the Page Setup to landscape
mode before printing, too).
The problem is that, in pdfTeX, additional parameters have to be set:
\pdfpagewidth
\pdfpageheight
\pdfhorigin
\pdfvorigin
and these parameters are unknown to the LaTeX article package.
When you install the TeX i-Package and choose the default paper size,
the appropriate settings are written to
/Library/teTeX/share/texmf.local/tex/generic/config/pdftexconfig.tex.
For example, with A4 the default paper size, this file contains:
\pdfpagewidth=594.99 true bp
\pdfpageheight=841.99 true bp
\pdfhorigin=1 true in
\pdfvorigin=1 true in
which corresponds to portrait mode.
To solve this you may either set these parameters yourself in the
preamble of your LaTeX document, with something like:
\newlength{\defpdfpagewidth}
\newlength{\defpdfpageheight}
\let\defpdfpagewidth\pdfpagewidth
\let\defpdfpageheight\pdfpageheight
\setlength{\pdfpagewidth}{\defpdfpageheight}
\setlength{\pdfpageheight}{\defpdfpagewidth}
or call packages, like graphics or geometry, which do the work for you
(even if you're not actually using any functionality of these packages
directly).
I seem to remember that, at some point in the history of TeXShop, this
step became unnecessary and then necessary again. Whether this was due
to internal changes inside TeXShop or to changes in pdfTeX itself
(especially when moving from the TL2003 setup to the TL2004 one) is
unclear to me.
Hope this helps,
Bruno Voisin
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
& FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>
More information about the MacOSX-TeX
mailing list