[XeTeX] Papersizes

Robert Voogdgeert rvoogdgeert at kabelfoon.nl
Wed Oct 13 18:45:15 CEST 2004


>(Time to get swatted for top-posting.)
>
>For whatever it's worth:
>
>Setting the page size works fine for me with XeLaTeX. I use memoir, 
>which includes page layout similar to the geometry package.
>
>I set the paper size using the following:
>
>###############
>\setstocksize{23cm}{13.3cm} % me
>
>\settrimmedsize{23cm}{13.3cm}{*}
>\settypeblocksize{41\onelineskip}{21pc}{*}
>\setlength{\trimtop}{0pt}
>\setlength{\trimedge}{\stockwidth}
>\addtolength{\trimedge}{-\paperwidth}
>\setlrmargins{*}{3.1cm}{*}
>\setulmargins{4.5\onelineskip}{*}{*} % 1.9cm
>
>\setheadfoot{\onelineskip}{3\onelineskip}
>%\setheaderspaces{\onelineskip}{*}{*} % original values
>\setheaderspaces{*}{1\onelineskip}{*} % mine, sinced I have headings
>%
>\setmarginnotes{17pt}{51pt}{\onelineskip}
>###############
>
>When XeLaTeX encounters the \checkandfixthelayout command, it produces 
>the following output:
>
>###############
>Stock height and width: 654.41338pt by 378.42174pt
>Top and edge trims: 0.0pt and 0.0pt
>Page height and width: 654.41338pt by 378.42174pt
>Text height and width: 502.0pt by 252.0pt
>Spine and edge margins: 38.21803pt and 88.2037pt
>Upper and lower margins: 54.0pt and 98.41338pt
>Headheight and headsep: 12.0pt and 12.0pt
>Footskip: 36.0pt
>Columnsep and columnseprule: 10.0pt and 0.0pt
>Marginparsep and marginparwidth: 17.0pt and 51.0pt
>###############
>
>I then invoke XeLaTeX again with the proper page dimensions (taken from 
>the above):
>
>###############
>xelatex -papersize=378.421,654.41338 foobar.tex
>###############
>
>(Yes, I know: I could have have just calculated the values ahead of 
>time. But I'm lazy, so I let memoir do it for me.)
>
>When I open the resulting PDF in Preview, the Document Info dialog 
>reports that the dimensions for Media Box and Crop Box are both 5.26 x 
>9.05 inches.
>
>Regards,
>Musa
>
>On 13 Oct 2004, at 14:46, Stephen Moye wrote:
>
Musa,


I'm using Memoir too, and I'm aware of the geometry-like possibilities. Still I think it
should be possible to typeset with the b5paper class option, without using the setup you
use. At least with LaTeX I never experienced and still don't experience any problems of
this kind.


Regards,
Robert.



More information about the XeTeX mailing list