CTAN Comprehensive TeX Archive Network

Pagecolor – Interrogate page color

This package provides the command \thepagecolor, which gives the current page (background) color, i. e. the argument used with the most recent call of \pagecolor{...}. The command \thepagecolornone gives the same color as \thepagecolor, except when the page background color is none (e.g., as a result of using the \nopagecolor command). In that case \thepagecolor is white and \thepagecolornone is none.

When \nopagecolor is unknown or broken (crop package), this package provides a replacement. Similar to \newgeometry and \restoregeometry of the geometry package \newpagecolor{...} and \restorepagecolor are provided. For use with the crop package \backgroundpagecolor{...} as well as \newbackgroundpagecolor{...} and \restorebackgroundpagecolor are provided.

Sources/macros/latex/contrib/pagecolor
Documentation
Version1.2d 2025-01-28
LicensesThe Project Public License 1.3c
Copyright2011–2025 H.-Martin Münch
MaintainerHans-Martin Münch
TDS archivepagecolor.tds.zip
Contained inTeX Live as pagecolor
MiKTeX as pagecolor
TopicsTagged PDF – fully compatible
Colour

Download the contents of this package in one zip archive (520.4k).

Community Comments

Loading...

Announcements

Here you can see a respective diagram in newer browsers.

more

Guest Book Sitemap Contact Contact Author