TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

With pdflatex, it seems easy to get a landscape document, on A3 paper. One only needs to add [landscape,a3paper] or [landscape,a4paper] to the document class options. With xelatex, however, these options do not seem to work.

How can I get a landscape mode document, on A3 or A4 paper, with 2 cm margins and no page numbers, headers, or footers in XeTeX for all of the pages of a document?

share|improve this question
up vote 7 down vote accepted

You could use geometry for document layout and setting the page style (including plain) to empty.

enter image description here

\usepackage{lipsum}% http://ctan.org/pkg/lipsum
\usepackage[margin=2cm,landscape,a3paper]{geometry}% http://ctan.org/pkg/geometry
\pagestyle{empty}% Set page style to empty
\let\ps@plain\ps@empty% Make plain page style equivalent to empty page style
\chapter{First and only chapter}

The above MWE sets the document page style to empty, which has no header/footer nor header/footer rule. It then also sets the plain page style (\ps@plain) to be exactly the same as that of empty (\ps@empty), since these styles are used as the first pages for chapters within the book and report document classes (including memoir).

You could also have obtained a similar style (if small modifications are required at a later stage) by using the fancyhdr package. For that, the following preamble modifications would result in the same output:

\usepackage{fancyhdr}% http://ctan.org/pkg/fancyhdr
\renewcommand{\headrulewidth}{0pt}% Default is 0.4pt
\renewcommand{\footrulewidth}{0pt}% Default is 0.4pt
\fancyhead{}% Clear fancy page style header
\fancyfoot{}% Clear fancy page style footer
\pagestyle{fancy}% Set page style to fancy
\let\ps@plain\ps@fancy% Make plain page style equivalent to fancy page style
share|improve this answer
Heh, good luck staying on the right line when reading that ;-) – morbusg Dec 19 '11 at 8:32

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.