GeneralProblem with landscape in MiKTeX 2.7

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
SMM
Posts: 3
Joined: Thu Sep 25, 2008 9:02 am

Problem with landscape in MiKTeX 2.7

Post by SMM »

I have a problem to make a landscape document since I install MiKTeX 2.7.
I've used portland package, and \landscape command for this, earlier, but now
it is not working. Also, if I use \documentclass[landscape]{article}, the text looks
like landscape, but the paper below is still portrait.

Does anyone know what is the problem? Thank you.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

Problem with landscape in MiKTeX 2.7

Post by localghost »

Provide a minimal working example (MWE) to clarify what is going wrong. Follow carefully the hints and descriptions on the site behind the link.


Best regards and welcome to the board
Thorsten¹
SMM
Posts: 3
Joined: Thu Sep 25, 2008 9:02 am

Re: Problem with landscape in MiKTeX 2.7

Post by SMM »

Thanks for quick respond.

I attached two examples, one with landscape options in documentclass command
an one using the portland package, and also pdfs I get after latex, dvi2pdf.

Bye, SMM
Attachments
landscape2.zip
(5.74 KiB) Downloaded 193 times
landscape.zip
(5.7 KiB) Downloaded 186 times
User avatar
Stefan Kottwitz
Site Admin
Posts: 10345
Joined: Mon Mar 10, 2008 9:44 pm

Problem with landscape in MiKTeX 2.7

Post by Stefan Kottwitz »

Hi SMM,

welcome to the board!
The portland package is very old and as you could see it's not working perfectly. For inserting landscape oriented pages I recommend to use the lscape package instead, if dvi output is needed or pdflscape for pdflatex.

If the whole document should be in landscape orientation the mentioned packages are not needed. The landscape option to the article class is good but not enough. It interchanges the values of \paperheight and \paperwidth but doesn't touch \pdfpagewidth or \pdfpageheight. For pdflatex it could be fixed by

Code: Select all

\setlength{\pdfpagewidth}{\paperwidth}
\setlength{\pdfpageheight}{\paperheight}
perhaps see Paper sizes with pdfTeX or just load the geometry package instead:

Code: Select all

\usepackage{geometry}
it will correct it too.

Stefan
LaTeX.org admin
SMM
Posts: 3
Joined: Thu Sep 25, 2008 9:02 am

Re: Problem with landscape in MiKTeX 2.7

Post by SMM »

It works!! Thank you!!
Bye...
Post Reply