diff options
Diffstat (limited to 'Master/texmf-dist/tex')
-rw-r--r-- | Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty | 173 |
1 files changed, 112 insertions, 61 deletions
diff --git a/Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty b/Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty index 9d0ef98d18d..51cf349366d 100644 --- a/Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty +++ b/Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Project: pagecolor -%% Version: 2015/06/22 v1.0g +%% Version: 2015/08/30 v1.0h %% %% Copyright (C) 2011 - 2015 by %% H.-Martin M"unch <Martin dot Muench at Uni-Bonn dot de> @@ -45,7 +45,7 @@ %% Hans-Klaus Muench + 2014/08/24 %% \NeedsTeXFormat{LaTeX2e}[2014/05/01] -\ProvidesPackage{pagecolor}[2015/06/20 v1.0g +\ProvidesPackage{pagecolor}[2015/06/20 v1.0h Provides thepagecolor (HMM)] %% Provides the \thepagecolor, \thepagecolornone, \newpagecolor{...}, %% and \restorepagecolor commands and the a replacement for the @@ -150,11 +150,10 @@ }% \xdef\thepagecolor{\pagecolor@nopagecolor}% \xdef\thepagecolornone{\pagecolor@nopagecolor}% - % although it should be "none" + % although it should be "none" \origpagecolour{\pagecolor@nopagecolor}% - }{% - \nopagecolor% - }% + }{\nopagecolor% + }% \else% \xdef\thepagecolor{#1}% \xdef\thepagecolornone{#1}% @@ -163,67 +162,67 @@ \@esphack% } +\let\orignopagecolour\nopagecolor\relax% -\AtBeginDocument{% - \let\orignopagecolour\nopagecolor\relax% - \@ifpackageloaded{crop}{% crop loaded - \@ifpackagelater{crop}{2003/05/21}{% - % later than 2003/05/20 v1.9 might be OK - \PackageWarning{pagecolor}{% - \string\nopagecolor\space did not work with package\MessageBreak% - crop 2003/05/20 v1.9. A newer version is used, \MessageBreak% - which the pagecolor package does not know how to handle.\MessageBreak% - Please contact the maintainer of the pagecolor package!\MessageBreak% - }% - % Let us just hope everything got fixed: - \renewcommand{\nopagecolor}{% - \xdef\thepagecolor{white}% - \xdef\thepagecolornone{none}% - \orignopagecolour% - % That will not have any effect except when things got fixed! - }% - }{% else: older package version - \PackageWarning{pagecolor}{% - \string\nopagecolor\space does not work with\MessageBreak% - the used crop package. Using\MessageBreak% - \pagecolor@nopagecolor\MessageBreak% - as nopagecolor now\MessageBreak% - }% - \def\pagecolourtmpb{none}% - \edef\pagecolourtmpa{\pagecolor@nopagecolor}% - \ifx\pagecolourtmpa\pagecolourtmpb% - \PackageWarning{pagecolor}{% - Option nopagecolor=none requested \MessageBreak% - but this does not work with the crop package.\MessageBreak% - By option nopagecolor the "colour" to be used with % - \string\nopagecolor\MessageBreak% - is set. The current value is "none" (maybe by default),% - \MessageBreak% - but the crop package broke \string\nopagecolor .\MessageBreak% - Therefore the colour cannot be "none".\MessageBreak% - Please change the option accordingly!\MessageBreak% - As first aid nopagecolor is now set to white\MessageBreak% - }% - \setkeys{pagecolor}{nopagecolor=white}% - \fi% - \renewcommand{\nopagecolor}{\pagecolor{\pagecolor@nopagecolor}}% +\gdef\pagecolor@cl{0}% +\@ifpackageloaded{crop}{% crop loaded + \gdef\pagecolor@cl{1}% + \@ifpackagelater{crop}{2003/05/21}{% + % later than 2003/05/20 v1.9 might be OK + \PackageWarning{pagecolor}{% + \string\nopagecolor\space did not work with package\MessageBreak% + crop 2003/05/20 v1.9. A newer version is used, \MessageBreak% + which the pagecolor package does not know how to handle.\MessageBreak% + Please contact the maintainer of the pagecolor package!\MessageBreak% }% - }{% crop not loaded - \def\pagecolourtmpa{0} - \ifluatex\def\pagecolourtmpa{1}\fi - \ifpdf\def\pagecolourtmpa{1}\fi - \def\pagecolourtmpb{1} - \ifx\pagecolourtmpa\pagecolourtmpb\relax% - \def\pagecolourtmpa{none}% - \else% - \def\pagecolourtmpa{\pagecolor@nopagecolor}% - \fi% + % Let us just hope everything got fixed: \renewcommand{\nopagecolor}{% \xdef\thepagecolor{white}% - \xdef\thepagecolornone{\pagecolourtmpa}% + \xdef\thepagecolornone{none}% \orignopagecolour% + % That will not have any effect except when things got fixed! }% - }% + }{% else: older package version + \PackageWarning{pagecolor}{% + \string\nopagecolor\space does not work with\MessageBreak% + the used crop package. Using\MessageBreak% + \pagecolor@nopagecolor\MessageBreak% + as nopagecolor now\MessageBreak% + }% + \def\pagecolourtmpb{none}% + \edef\pagecolourtmpa{\pagecolor@nopagecolor}% + \ifx\pagecolourtmpa\pagecolourtmpb% + \PackageWarning{pagecolor}{% + Option nopagecolor=none requested \MessageBreak% + but this does not work with the crop package.\MessageBreak% + By option nopagecolor the "colour" to be used with % + \string\nopagecolor\MessageBreak% + is set. The current value is "none" (maybe by default),% + \MessageBreak% + but the crop package broke \string\nopagecolor .\MessageBreak% + Therefore the colour cannot be "none".\MessageBreak% + Please change the option accordingly!\MessageBreak% + As first aid nopagecolor is now set to white\MessageBreak% + }% + \setkeys{pagecolor}{nopagecolor=white}% + \fi% + \renewcommand{\nopagecolor}{\pagecolor{\pagecolor@nopagecolor}}% + }% + }{% crop not loaded + \def\pagecolourtmpa{0}% + \ifluatex\def\pagecolourtmpa{1}\fi% + \ifpdf\def\pagecolourtmpa{1}\fi% + \def\pagecolourtmpb{1}% + \ifx\pagecolourtmpa\pagecolourtmpb\relax% + \gdef\pagecolourtmpa{none}% + \else% + \gdef\pagecolourtmpa{\pagecolor@nopagecolor}% + \fi% + \renewcommand{\nopagecolor}{% + \xdef\thepagecolor{white}% + \xdef\thepagecolornone{\pagecolourtmpa}% + \orignopagecolour% + }% } \pagecolor{\pagecolor@pagecolor} @@ -237,6 +236,58 @@ \gdef\pagecolourtmpc{\thepagecolor} +\AtBeginDocument{% + \def\pagecolourtmpb{0}% + \ifx\pagecolor@cl\pagecolourtmpb\relax% + % crop not loaded before pagecolor, but maybe afterwards: + \@ifpackageloaded{crop}{% crop indeed loaded afterwards. + \gdef\pagecolor@cl{1}% + \@ifpackagelater{crop}{2003/05/21}{% + % later than 2003/05/20 v1.9 might be OK + \PackageWarning{pagecolor}{% + \string\nopagecolor\space did not work with package\MessageBreak% + crop 2003/05/20 v1.9. A newer version is used, \MessageBreak% + which the pagecolor package does not know how to handle.\MessageBreak% + Please contact the maintainer of the pagecolor package!\MessageBreak% + }% + % Let us just hope everything got fixed: + \renewcommand{\nopagecolor}{% + \xdef\thepagecolor{white}% + \xdef\thepagecolornone{none}% + \orignopagecolour% + % That will not have any effect except when things got fixed! + }% + }{% else: older package version + \PackageWarning{pagecolor}{% + \string\nopagecolor\space does not work with\MessageBreak% + the used crop package. Using\MessageBreak% + \pagecolor@nopagecolor\MessageBreak% + as nopagecolor now\MessageBreak% + }% + \def\pagecolourtmpb{none}% + \edef\pagecolourtmpa{\pagecolor@nopagecolor}% + \ifx\pagecolourtmpa\pagecolourtmpb% + \PackageWarning{pagecolor}{% + Option nopagecolor=none requested \MessageBreak% + but this does not work with the crop package.\MessageBreak% + By option nopagecolor the "colour" to be used with % + \string\nopagecolor\MessageBreak% + is set. The current value is "none" (maybe by default),% + \MessageBreak% + but the crop package broke \string\nopagecolor .\MessageBreak% + Therefore the colour cannot be "none".\MessageBreak% + Please change the option accordingly!\MessageBreak% + As first aid nopagecolor is now set to white\MessageBreak% + }% + \setkeys{pagecolor}{nopagecolor=white}% + \fi% + \renewcommand{\nopagecolor}{\pagecolor{\pagecolor@nopagecolor}}% + }% + }{% crop neither loaded afterwards. + }% + \fi% + } + \endinput %% %% End of file `pagecolor.sty'. |