diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex | 93 |
1 files changed, 76 insertions, 17 deletions
diff --git a/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex b/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex index aa095260c5d..0ed479b3d22 100644 --- a/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex +++ b/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex @@ -9,12 +9,12 @@ %% This is a generated file. %% %% Project: pagecolor -%% Version: 2011/08/08 v1.0c +%% Version: 2012/02/01 v1.0d %% -%% Copyright (C) 2011 by +%% Copyright (C) 2011 - 2012 by %% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> %% -%% The usual disclaimer applys: +%% The usual disclaimer applies: %% If it doesn't work right that's your problem. %% (Nevertheless, send an e-mail to the maintainer %% when you find an error in this package.) @@ -33,30 +33,42 @@ %% %% The Current Maintainer of this work is H.-Martin Muench. %% -%% This work consists of the main source file pagecolor.dtx -%% and the derived files -%% pagecolor.sty, pagecolor.pdf, pagecolor.ins, pagecolor.drv, -%% pagecolor-example.tex. +%% This work consists of the main source file pagecolor.dtx, +%% the README, and the derived files +%% pagecolor.sty, pagecolor.pdf, +%% pagecolor.ins, pagecolor.drv, +%% pagecolor-example.tex, pagecolor-example.pdf. %% \documentclass[british]{article}[2007/10/19]% v1.4h %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% -\usepackage{hyperref}[2011/04/17]% v6.82g -\hypersetup{extension=pdf,% +\usepackage[% + extension=pdf,% plainpages=false,% pdfpagelabels=true,% hyperindex=false,% pdflang={en},% pdftitle={pagecolor package example},% - pdfauthor={Hans-Martin Muench},% + pdfauthor={H.-Martin Muench},% pdfsubject={Example for the pagecolor package},% - pdfkeywords={LaTeX, pagecolor, thepagecolor, page colour, Hans-Martin Muench},% + pdfkeywords={LaTeX, pagecolor, thepagecolor, page colour,% + H.-Martin Muench},% pdfview=Fit,pdfstartview=Fit,% pdfpagelayout=SinglePage% -} +]{hyperref}[2011/12/04]% v6.82m \usepackage[x11names]{xcolor}[2007/01/21]% v2.11 - % The xcolor package would not be needed for just using the base colours. - % The color package would be sufficient for that. -\usepackage[pagecolor={LightGoldenrod1}]{pagecolor}[2011/08/08]% v1.0c + % The xcolor package would not be needed for just using + % the base colours. The color package would be sufficient for that. +\usepackage[pagecolor={LightGoldenrod1}]{pagecolor}[2012/02/01]% v1.0d + +\usepackage{afterpage}[1995/10/27]% v1.08 + % The afterpage package is generally not needed, + % but the |\newpagecolor{somecolour}\afterpage{\restorepagecolor}| + % construct shall be demonstrated. + +\usepackage{lipsum}[2011/04/14]% v1.2 + % The lipsum package is generally not needed, + % but some blind text is needed for the example. + \gdef\unit#1{\mathord{\thinspace\mathrm{#1}}}% \listfiles \begin{document} @@ -64,7 +76,7 @@ \section*{Example for pagecolor} This example demonstrates the use of package\newline -\textsf{pagecolor}, v1.0c as of 2011/08/08 (HMM).\newline +\textsf{pagecolor}, v1.0d as of 2012/02/01 (HMM).\newline The used option was \verb|pagecolor={LightGoldenrod1}|.\newline \verb|pagecolor={none}| would be the default.\newline @@ -89,7 +101,54 @@ when the page colour would be \verb|none|). {\color{\thepagecolor} And that makes this text practically invisible. \newline} -Which made the preceding line of text practically invisible. +{\color{white} Which made the preceding line of text practically +invisible.} + +\pagebreak +\newpagecolor{red} + +This page uses \verb|\newpagecolor{red}|. + +\pagebreak +\restorepagecolor + +{\color{white}And this page uses \verb|\restorepagecolor| to restore +the page colour to the value it had before the red page.} + +\pagebreak +\pagecolor{none} + +This page uses \verb|\pagecolor{none}|. If the \verb|\nopagecolor| +command is known (pdf\TeX and Lua\TeX; not yet for dvips, dvipdfm(x) +or Xe\TeX), the page colour is now \verb|none|, otherwise \verb|white|: +\verb|\thepagecolor|\ =\ \thepagecolor\ and +\verb|\thepagecolornone|\ =\ \thepagecolornone . + +\pagebreak +\restorepagecolor + +{\color{white}\verb|\restorepagecolor| restored the page colour again.} + +\pagebreak +\pagecolor{green} + +This page is green due to \verb|\pagecolor{green}|. + +\pagebreak +\newpagecolor{blue}\afterpage{\restorepagecolor} + +{\color{white}\verb|\newpagecolor{blue}\afterpage{\restorepagecolor}|% +\newline +was used here, i.\,e.~this page is blue, and the next one will +automatically have the same page colour before it was changed to blue +here (i.\,e. green).} + +\smallskip +{\color{red}\textbf{\lipsum[1-11]}} +\bigskip + +The page colour was changed back at the end of the page - +in mid-sentence! \end{document} \endinput |