[OS X TeX] Is this geometry behavior correct?

Maarten Sneep maarten.sneep at xs4all.nl
Thu Apr 5 16:01:52 EDT 2007


On Apr 5, 2007, at 15:11, Herbert Schulz wrote:

> Howdy,
>
> If I process the following file with pdflatex the final pdf is  
> properly in landscape mode. If I use latex+ghostscript it is only  
> in landscape mode if I provide the [dvips] option to the \usepackage 
> {geometry} call.
>
> \documentclass[10pt, landscape]{article}
> \usepackage{geometry}
> \begin{document}
> This is in landscape!?
> \end{document}
>
> I thought the geometry package automatically determined if one was  
> in dvi mode and picked the proper driver.

IIRC, the geometry package doesn't use the ifpdf package to do so,  
and as such may issue the wrong commands (i.e. think that it is in  
pdf mode when it actually is in dvi mode.

This should work:

\documentclass[10pt, landscape]{article}
\usepackage{ifpdf}

\ifpdf
\usepackage{geometry}
\else
\usepackage[dvips]{geometry}
\fi

\begin{document}
This is in landscape!?
\end{document}

Maarten

------------------------- Helpful Info -------------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
TeX FAQ: http://www.tex.ac.uk/faq
List Archive: http://tug.org/pipermail/macostex-archives/
List Reminders & Etiquette: http://www.esm.psu.edu/mac-tex/list/





More information about the MacOSX-TeX mailing list