[XeTeX] Custom page size

Stephen Moye stephenmoye at mac.com
Tue Jan 11 12:07:17 CET 2011




On Jan 11, 2011, at 5:52 AM, Sven Siegmund <sven.siegmund at gmail.com> wrote:

> Hi all,
> 
> I need help with xetexing a document on a custom paper format.
> 
> As far as I understand the page layout, this minimal example should
> suffice to typeset on my custom format paper. However, while the
> resulting pagesize of the pdf is just as I specified, the text is not
> adjusted to its smaller size. It looks like typesetting on A4 and then
> cutting the pdf to my desired format. The compiler does not even
> complain abou overfull hbox. What am I doing wrong in this minimal
> example?
> 
> \documentclass{article}
> \usepackage{xltxtra}
> 
> \setlength\paperwidth{155mm}
> \setlength\paperheight{240mm}
> \setlength\pdfpagewidth{\paperwidth}
> \setlength\pdfpageheight{\paperheight}
> 
> \begin{document}
> 
> The resulting text will not fit on the page. Yet, when compiling,
> pdflatex or xelatex do not complain about overfull hbox.
> 
> \end{document}
> 
> best regards,
> 
> S.

I think you will have better luck with this:

%

\documentclass{article}

\usepackage{xltxtra}
\usepackage[papersize={155mm,240mm}]{geometry}

...

%

Stephen Moye


More information about the XeTeX mailing list