[XeTeX] \centerline on custom paper size with plain XeTeX

Julian Bradfield jcb+xetex at jcbradfield.org
Mon Nov 3 23:36:38 CET 2014


On 2014-11-03, Deepak Jois <deepak.jois at gmail.com> wrote:
> I want \centerline to properly center a line on a page with a custom
> size. The minimal example below does not work for me. I even tried to
> compile the code with "xetex -papersize=a5" What am I missing?
>
> Code:
>
> \special{papersize=5.8in,8.3in}
> \hoffset0in
> \hsize5.8in
> \centerline{hi there}
> \bye

You're missing that \{h,v}offset are relative to the default position
of (+1in,+1in) relative to the top left of the page.
You mean \hoffset-1in


More information about the XeTeX mailing list