is there a way to determine the current page colour, please?
Or do I need to redefine \pagecolor to get \thepagecolor?
\let\origpagecolor\pagecolor
\renewcommand{\pagecolor}[1]{%
\global\edef\thepagecolor{#1}
\origpagecolor{\thepagecolor}
}
Thanks for your help!
Martin
--
Martin dot Muench at Uni-Bonn dot de
> is there a way to determine the current page colour, please?
It's driver dependent assuming package `color'.
pdftex.def stores the color in \current@page@color in the
same format as the normal color setting is stored in \current@color
(i.e. the color is the driver dependend low level color string).
> Or do I need to redefine \pagecolor to get \thepagecolor?
>
> \let\origpagecolor\pagecolor
>
> \renewcommand{\pagecolor}[1]{%
> \global\edef\thepagecolor{#1}
> \origpagecolor{\thepagecolor}
> }
pdftex.def also supports \nopagecolor.
--
Heiko Oberdiek
And TeX also support \xdef ;-)
And what's the relation to the page color?
After \nopagecolor \thepagecolor shows a value
that is then invalid, thus \nopagecolor must also be
redefined.
--
Heiko Oberdiek
?? Just when I read \global\edef I think \xdef ...
... unless something like \global \iftrue \edef \else \mytoken \fi {...}
Ok, thanks!