[XeTeX] Papersizes
Musa Furber
musaf at runbox.com
Wed Oct 13 17:17:00 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:
> On a different note, I seem to be experiencing problems using this
> form of -papersize
>
> -papersize=1008pt,612pt
>
> It does not seem to make any difference -- the page size is still
> letter. However the named options, such as 'b5' seem to work without a
> hitch.
>
> Help!! :>}
>
> S
>
> _______________________________________________
> XeTeX mailing list
> postmaster at tug.org
> http://tug.org/mailman/listinfo/xetex
>
More information about the XeTeX
mailing list