[texhax] Bad effect when using xetex together with color

Rodolfo Medina rodolfo.medina at gmail.com
Fri Aug 17 16:25:11 CEST 2018


Ulrike Fischer <news3 at nililand.de> writes:

> Am Thu, 16 Aug 2018 12:30:25 +0000 schrieb Rodolfo Medina:
>
>> Hi all.
>> 
>> When processing the following wit xetex:
>> 
>> \input eplain
>> \input color
>> 
>> \special{papersize=297mm,210mm} %landscape A4
>> 
>> hallo
>> 
>> \vfill\eject
>> 
>> hallo
>> 
>> \bye
>> 
>> the second page of output does not respect \papersize.  Why? 
>
> color sets \pdfpagewidth and \pdfpageheight and this conflicts with
> the special. Better do it like this:
>
> \input eplain
>
> %before color, so that color can pick it up:
> \paperheight=210mm
> \paperwidth=297mm
>
> \input color
>
> hallo
>
> \vfill\eject
>
> hallo
>
> \bye


Thanks, Ulrike and Philip.  That was very helpful.  I prefer setting myself the
page layout parameters, because they have to have the possibility of changing
according to the purpose and the use of the output...

Cheers,

Rodolfo



More information about the texhax mailing list