[XeTeX] papersize special and memoir (and other?) documentclasses
Jonathan Kew
jonathan_kew at sil.org
Wed May 24 00:55:49 CEST 2006
On 23 May 2006, at 2:02 pm, William Adams wrote:
> On May 22, 2006, at 4:45 PM, Jonathan Kew wrote:
>
>> I haven't looked at memoir in particular, but I'm fairly confident
>> that this means the class is doing something to generate output
>> before the \special from \AtBeginDvi. This can happen if the class
>> modifies the \output routine, for example, and wraps something around
>> the normal output (to which \AtBeginDvi gets prefixed). There was a
>> similar problem with crop.sty, IIRC, and some discussion of a patch/
>> workaround... try the list archives. That might point you towards a
>> solution for memoir.
>
> I dunno.
>
> The following file %!TEX encoding = UTF-8 Unicode
> \documentclass[dvips, showtrims]{memoir}
> .....
> \renewcommand*{\trimmarks}{\special{papersize=\the\stockwidth, \the
> \stockheight}{%
> .....
> works on the first page when generated w/ latex at the command line
> and checked out with dvitype (starts with 87: xxx
> 'papersize=650.43pt, 849.17249pt' ).
>
> But it comes out with two different page sizes when I switch to
> processing it with xelatex.
Remove the space after the comma in the \special.
(Ugh! Sorry about that.... guess it shouldn't be so picky.)
JK
More information about the XeTeX
mailing list