Question says it all: I am using classicthesis with XeTeX to typeset my PhD thesis. I want to use B5 paper size (176 × 250 mm) and the beautiful Linux Libertine font. I'm wondering how to

  1. calculate the optimal page margins
  2. actually apply these settings to the document

Any help is greatly appreciated =)

EDIT: I should add that I need to generate two different PDF files from this:

  1. a version with papersize A4 (210 × 297 mm), where the B5 layout is (approximately) centered, and crop marks are shown, to pass on to the printing company
  2. a version with papersize B5 for online distribution, having the same layout as the printed one.

I tried fiddling with using geometry package and \areaset command, but to no avail.

  • 2
    Does this question actually have something to do with the Libertine font? If not, you could remove that tag.
    – Tyler
    Dec 13, 2012 at 19:13
  • @Tyler: Yes, I asked about calculating optimal page margins for using B5paper classicthesis with Linux Libertine. And I guess that the optimal margins do depend on the used font.
    – andreas-h
    Dec 14, 2012 at 9:12
  • Ok. I didn't know you should change the margins when you change your font.
    – Tyler
    Dec 14, 2012 at 13:10

1 Answer 1


The manual of geometry v5.6 reads:

"The options specified for the area, in which the page dimensions are calculated, are added: layout, layoutsize, layoutwidth, layoutheight and so forth. These options would help to print the specified layout to a different sized paper. For example, with a4paper and layout=a5paper, the geometry package uses 'A5' layout to calculate margins with the paper size still 'A4'."

For your thesis layout=b5paper, of course. Using layouthoffset=((A4 paper width minus B5 paper width)/2) "specifies the horizontal offset from the left edge of the paper", "layoutvoffset specifies the vertical offset from the top edge of the paper": layoutvoffset=((A4 paper height - B5 paper height)/2).

  showcrop]{geometry}% B5 at A4


\usepackage[b5paper,layout=b5paper]{geometry}% B5 at B5

should work. And use either geometry or \areaset but not both, because they both try to set the page layout and mixing them can cause unwanted results.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .