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

I would like to set the page size to the European A5. I wrote the following:


And process it with:

xelatex main.tex

The PDF that comes out doesn't look right. The actual printed area appears to be A5 but the size of the physical page is the US letter page.

Any ideas on what I'm doing wrong?


share|improve this question
See also tex.stackexchange.com/q/64996/1340. – Blaisorblade Mar 16 '13 at 18:27
up vote 10 down vote accepted

Use geometry:


In this way the package will not make any modification to the standard settings, and will only tell the compiler the physical page size.

A more complicated way, that requires knowing the page dimensions, but that can be useful with non standard page sizes, is to say


This works in all engines except for latex+dvips+ps2pdf.

share|improve this answer
Perfect, thanks a lot! – Honza Pokorny Jul 13 '11 at 0:23
Do these settings \documentclass{article}\usepackage[a4paper]{geometry} produce the same effect as your answer does? – xport Jul 13 '11 at 3:10
@xport: no; geometry applies its own settings. – egreg Jul 13 '11 at 7:21
@egreg: Without using geometry package, we can use \special{papersize=...,...} right? – xport Jul 13 '11 at 7:36
@xport: the \special trick works with "(la)tex+dvips" or "xe(la)tex", but not with "pdf(la)tex" or "lua(la)tex". – egreg Jul 13 '11 at 7:43

Since you are using xelatex, you can use \special{papersize=<width>,<height>} instead of using \usepackage[pass]{geometry} as follows.

\special{papersize=148mm,210mm}% it is A5 paper size, I got from Wikipedia.
Hi, I am xport !
share|improve this answer

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.