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

This is my preamble:

\documentclass[a5paper, DIV=classic, 12pt]{scrbook}
\setmainfont[Mapping=tex-text, Ligatures={Rare}, Numbers=OldStyle]{ibarraReal}

The problem is in the a5paper option, because I get the following

enter image description here

So, how can I fix the problem with margins?

share|improve this question
Hm that is never 12 pt on a A5 paper. I think you are putting the A5 paper at the upper left corner of a bigger paper somehow. – jonalv Jan 12 '12 at 15:53
This is A5 superimposed on A4; add \usepackage[pass]{geometry} to the preamble, as scrbook doesn't inform xdvipdfmx about the paper size. – egreg Jan 12 '12 at 15:55
Just for what is worth: it's not really a minimal example, nor is it a complete example. (Also you could have mentioned you were using XeLaTeX. – Marc van Dongen Jan 12 '12 at 16:04
@Marc I think the example is excellent. Thank you for your review. ;) – Gastón Jan 12 '12 at 17:04
up vote 7 down vote accepted

Simply add the pagesize option:

\documentclass[a5paper, DIV=classic, 12pt, pagesize]{scrbook}

It's actually an option for typearea. If you set this option, the class sets PDF page dimensions if used with pdfLaTeX, and uses a DVI \special for the paper size if it runs in DVI mode.

It can be forced specifying the output driver, such as pagesize=pdftex, pagesize=dvips, or pagesize=dvipdfmx, however I recommend to use auto or no value, which means the same.

share|improve this answer
I swear I searched for the answer in Koma doc, but didn't find it :) Thank you! – Gastón Jan 12 '12 at 16:56

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.