[Gutsy][Hardy] Can't produce landscape

Bug #215561 reported by Martin Ammermüller
4
Affects Status Importance Assigned to Milestone
texlive-base (Ubuntu)
Confirmed
Undecided
Unassigned

Bug Description

Binary package hint: texlive-latex-base

pdflatex always produces protrait format documents. I can't get it to produce documents with landscape format. Testcase attached.

Revision history for this message
Martin Ammermüller (martin-ammermueller) wrote :
Revision history for this message
Colin Watson (cjwatson) wrote :

http://www.doc.ic.ac.uk/csg/faqs/latex.html (last question):

"The landscape document class option doesn't work?

\documentclass[,landscape]{article} is broken. There is an (impressive!) conflict between papersize and landscape in the global documentclass attribute settings which means they argue about textwidth, ultimately resulting in [landscape] being *entirely* ignored!

The right way to do it is:

\documentclass[11pt,a4paper]{article}
\usepackage{landscape}
\def\printlandscape{\special{landscape}}
\special{! TeXDict begin /landplus90{true}store end }
\begin{document}
Content
\end{document}

The \def and \special lines fix landscape rendering in gv so you don't have to flip to seascape -- part of one of my "defs" files by now, since it proves very useful!

xdvi doesn't understand landscape, so don't try and view raw DVI in there.

Also remember to run dvips as 'dvips -t landscape', otherwise you'll just get a portrait A4 page with a landscape \textwidth."

Revision history for this message
Stefan Kottwitz (stefan.k) wrote :

The landscape option of the article class just interchanges the values of \paperheight and \paperwidth. I recommend to use the geometry package with landscape option. A minimal working example:

\documentclass{article}
\usepackage[english]{babel}
\usepackage{blindtext}
\usepackage[landscape]{geometry}
\begin{document}
\blindtext[6]
\end{document}

Revision history for this message
Stefan Kottwitz (stefan.k) wrote :

Another fix without using the geometry package is to add these two lines to the document preamble:

\setlength{\pdfpagewidth}{\paperwidth}
\setlength{\pdfpageheight}{\paperheight}

It's working with testcase.tex attached above.

Revision history for this message
Stefan Kottwitz (stefan.k) wrote :

Confirmed for attached file on Ubuntu 8.04 with texlive2007-13. Workaround was suggested.

Changed in texlive-base:
status: New → Confirmed
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Bug attachments

Remote bug watches

Bug watches keep track of this bug in other bug trackers.