| 1 |
README for pagecolor package, 2025-01-28, v1.2d |
| 2 |
|
| 3 |
|
| 4 |
TABLE OF CONTENTS |
| 5 |
================= |
| 6 |
|
| 7 |
1 Introduction |
| 8 |
2 Download |
| 9 |
3 Installation |
| 10 |
4 Additional Packages |
| 11 |
5 Package Compatibility |
| 12 |
6 Author/Maintainer |
| 13 |
7 Bug Reports |
| 14 |
8 Known Problems |
| 15 |
|
| 16 |
|
| 17 |
1 INTRODUCTION |
| 18 |
============== |
| 19 |
|
| 20 |
This LaTeX package provides the command \thepagecolor, which gives |
| 21 |
the current page (background) color, i. e. the argument used with |
| 22 |
the most recent call of \pagecolor{...}. |
| 23 |
The command \thepagecolornone gives the same color as |
| 24 |
\thepagecolor, except when the page background color is "none". |
| 25 |
In that case \thepagecolor is white and \thepagecolornone is none. |
| 26 |
When \nopagecolor is unknown or broken (crop package), |
| 27 |
this package provides a replacement. |
| 28 |
Similar to \newgeometry and \restoregeometry of the geometry package |
| 29 |
\newpagecolor{...} and \restorepagecolor are provided. |
| 30 |
For use with the crop package \backgroundpagecolor{...} |
| 31 |
as well as \newbackgroundpagecolor{...} and |
| 32 |
\restorebackgroundpagecolor are provided. |
| 33 |
|
| 34 |
This material is published under the LPPL 1.3c: This work may be |
| 35 |
distributed and/or modified under the conditions of the LaTeX Project |
| 36 |
Public License, either version 1.3c of this license or (at your option) |
| 37 |
any later version. This version of this license is in |
| 38 |
https://www.latex-project.org/lppl/lppl-1-3c.txt |
| 39 |
and the latest version of this license is in |
| 40 |
https://www.latex-project.org/lppl.txt |
| 41 |
and version 1.3c or later is part of all distributions of |
| 42 |
LaTeX version 2005-12-01 or later. |
| 43 |
|
| 44 |
|
| 45 |
2 DOWNLOAD |
| 46 |
========== |
| 47 |
|
| 48 |
"pagecolor" is available on CTAN: |
| 49 |
https://ctan.org/pkg/pagecolor |
| 50 |
|
| 51 |
Also a ZIP file is provided that contains the files: |
| 52 |
the manual (pagecolor.pdf), the example (pagecolor-example.tex), |
| 53 |
the compiled example (pagecolor-example.pdf), |
| 54 |
driver (pagecolor.drv), pagecolor.dtx, |
| 55 |
installation file (pagecolor.ins), |
| 56 |
the style file (pagecolor.sty), |
| 57 |
and this README, already sorted in a TDS tree: |
| 58 |
https://mirror.ctan.org/install/macros/latex/contrib/pagecolor.tds.zip |
| 59 |
|
| 60 |
|
| 61 |
3 INSTALLATION |
| 62 |
============== |
| 63 |
|
| 64 |
Installation with ZIP file in TDS format |
| 65 |
---------------------------------------- |
| 66 |
The ZIP file "pagecolor.tds.zip" contains the files |
| 67 |
sorted in a TDS tree. Thus you can directly unpack the |
| 68 |
ZIP file inside a TDS tree. |
| 69 |
See https://ctan.org/TDS-guidelines for an explanation |
| 70 |
of TDS. |
| 71 |
Example: |
| 72 |
cd /...somewhere.../texmf |
| 73 |
unzip /...downloadpath.../pagecolor.tds.zip |
| 74 |
Do not forget to refresh the file name database of this |
| 75 |
TDS tree. |
| 76 |
Example: |
| 77 |
texhash /...somewhere.../texmf |
| 78 |
|
| 79 |
Manual installation |
| 80 |
------------------- |
| 81 |
a) Download the pagecolor files from CTAN. |
| 82 |
If necessary, unpack them. |
| 83 |
b) Generate the package and driver files: |
| 84 |
tex pagecolor.dtx |
| 85 |
c) Install the file "pagecolor.sty" in your TDS tree: |
| 86 |
cp pagecolor.sty TDS:tex/latex/pagecolor/ |
| 87 |
Replace "TDS:" by the prefix of your TDS tree |
| 88 |
(texmf directory). |
| 89 |
d) Create the documentation, if necessary, e.g. |
| 90 |
pdflatex pagecolor.dtx |
| 91 |
makeindex -s gind.ist pagecolor.idx |
| 92 |
pdflatex pagecolor.dtx |
| 93 |
makeindex -s gind.ist pagecolor.idx |
| 94 |
pdflatex pagecolor.dtx |
| 95 |
e) Update the databases if necessary, e.g. for TeXLive |
| 96 |
texhash or mktexlsr. |
| 97 |
f) Create the pagecolor-example.pdf, if necessary, e.g. |
| 98 |
pdflatex pagecolor-example.tex |
| 99 |
pdflatex pagecolor-example.tex |
| 100 |
pdflatex pagecolor-example.tex |
| 101 |
g) Copy the documentation files to |
| 102 |
"TDS:doc/latex/pagecolor/": |
| 103 |
README, pagecolor.pdf, pagecolor-example.tex, |
| 104 |
pagecolor-example.pdf. |
| 105 |
|
| 106 |
|
| 107 |
4 ADDITIONAL PACKAGES |
| 108 |
===================== |
| 109 |
|
| 110 |
pagecolor loads another package: xcolor, |
| 111 |
if the color package has not been loaded before pagecolor |
| 112 |
which again loads other packages |
| 113 |
(see the result of the \listfiles command in the log-file |
| 114 |
of the example). |
| 115 |
|
| 116 |
|
| 117 |
5 PACKAGE COMPATIBILITY |
| 118 |
======================= |
| 119 |
|
| 120 |
pagecolor should be loaded quite early, i.e. before |
| 121 |
\pagecolor{...} is used by some other package |
| 122 |
(but can be loaded later using the pagecolor={...} option |
| 123 |
with accordingly chosen value), but must be loaded after |
| 124 |
\nopagecolor is defined (if that is defined in the document |
| 125 |
at all). If the xcolor or the color package shall be used, |
| 126 |
they also should be loaded before pagecolor. |
| 127 |
|
| 128 |
|
| 129 |
6 AUTHOR/MAINTAINER |
| 130 |
=================== |
| 131 |
|
| 132 |
H.-Martin Münch |
| 133 |
|
| 134 |
|
| 135 |
7 BUG REPORTS |
| 136 |
============= |
| 137 |
|
| 138 |
A bug report should contain: |
| 139 |
* Comprehensive problem description. This includes error or |
| 140 |
warning messages. |
| 141 |
* \errorcontextlines=\maxdimen can be added in the |
| 142 |
TeX code to get more information in TeX error messages. |
| 143 |
* Minimal test file that shows the problem, |
| 144 |
but does not contain any unnecessary packages and code. |
| 145 |
* Used drivers/programs. |
| 146 |
* Version information about used packages and programs. |
| 147 |
* If you are using LaTeX, then add "\listfiles" to the document. |
| 148 |
Then a list of version information is printed at the end |
| 149 |
of the LaTeX run. |
| 150 |
* Please no other files than the minimal test file. |
| 151 |
The other files .log, .dvi, .ps, .pdf are seldom |
| 152 |
necessary, so send them only on request. |
| 153 |
* Please .zip or .tar.gz your file(s) before sending them! |
| 154 |
|
| 155 |
Bug address |
| 156 |
----------- |
| 157 |
Bug reports can be send to the maintainer: |
| 158 |
H.-Martin Münch |
| 159 |
<Martin [dot] Muench [at] Uni-Bonn [dot] de> |
| 160 |
|
| 161 |
|
| 162 |
8 KNOWN PROBLEMS |
| 163 |
================ |
| 164 |
|
| 165 |
* as yet: none. |