[dviout] canvas background colour

Stephan Hennig mailing_list at arcor.de
Wed May 25 17:11:03 CEST 2011


Yoshiki,

schrieb OTOBE Yoshiki:

> Ok, let me confirm.
> You mean the paper color should be system default workspace
> if there's no \pagecolor, don't you?

Yes.

As a bonus, instead of system default workspace it might be desirable to
set the paper colour to an explicit RGB value.  A use-case is previewing
a document that is printed on coloured paper.  You wouldn't want to use
\pagecolor in such a document.


> I guess it could be since dviout changes the page background
> if there is \pagecolor... except one point.
> \pagecolor is sent to the printer, but the page backgound
> must be white when the user is printing unless there's \pagecolor.
> Now the dviout does not keep the \pagecolor after it drew.
> But then dviout must keep whether the background comes
> from the user's setting or \pagecolor.
> 
> But fortunately dviout keeps a big BMP to realize the "loupe"
> and recreate it when printing. So it might be easy, or,
> might be slightly complicated. Let me consider a little bit.

True, sending a background colour not specified by \pagecolor would be
wrong.  Is re-rendering without background colour before sending to the
printer an option?

Best regards,
Stephan Hennig


More information about the dviout mailing list