summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/pagecolor
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2023-04-18 19:40:44 +0000
committerKarl Berry <karl@freefriends.org>2023-04-18 19:40:44 +0000
commitd05de666f58bd5091534167160a5aa386671ddf7 (patch)
tree319854f5df63cc54c72fab63eb06fbd5a4163538 /Master/texmf-dist/tex/latex/pagecolor
parent421c46931938c705ca7c62437a5086ab6b0cfd8a (diff)
pagecolor (18apr23)
git-svn-id: svn://tug.org/texlive/trunk@66885 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/pagecolor')
-rw-r--r--Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty140
1 files changed, 68 insertions, 72 deletions
diff --git a/Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty b/Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty
index f8647fa5292..941e39e958c 100644
--- a/Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty
+++ b/Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty
@@ -9,7 +9,8 @@
%% This is a generated file.
%%
%% Project: pagecolor
-%% Version: 2023-02-14 v1.2b
+%% Version: 2023-04-18 v1.2c
+%% Info: Provides thepagecolor
%%
%% Copyright (C) 2011 - 2023 by
%% H.-Martin Muench <Martin dot Muench at Uni-Bonn dot de>
@@ -40,19 +41,16 @@
%% Hans-Klaus Muench + 2014-08-24
%%
\NeedsTeXFormat{LaTeX2e}[2022-11-01]
-\ProvidesPackage{pagecolor}[2023-02-14 v1.2b
- Provides thepagecolor (HMM)]
+\ProvidesPackage{pagecolor}[2023-04-18 v1.2c Provides thepagecolor (HMM)]
%% Provides the \thepagecolor, \thepagecolornone, \newpagecolor{...},
%% \restorepagecolor, \backgroundpagecolor, \newbackgroundpagecolor{...},
%% and \restorebackgroundpagecolor commands and a replacement for the
%% \nopagecolor command, if this is not available.
-\RequirePackage{hardwrap}[2011/02/12]% v0.2 Hard wrap messages
-\GenerateLogMacros{package}{pagecolor}
-\@ifl@t@r\fmtversion{2022/11/01}{% would have understood
- % \IfFormatAtLeastTF{2022-11-01}{<true code>}{<false code>}
- }{\PackageError{pagecolor}{%
- Newer LaTeX format needed or older undolabl package%
+\providecommand\IfFormatAtLeastTF{\@ifl@t@r\fmtversion}
+
+\IfFormatAtLeastTF{2022/11/01}{\relax}{%
+ \PackageError{pagecolor}{Newer LaTeX format needed or older pagecolor package%
}{Needed LaTeX format version: 2022-11-01 or newer.\MessageBreak%
Found\space\space LaTeX format version: \fmtversion.\MessageBreak%
Either update your TeX distribution\MessageBreak%
@@ -68,15 +66,15 @@
}{% xcolor not loaded
\IfPackageLoadedTF{color}{%
\RequirePackage{color}[2022-01-06]% v1.3d Standard LaTeX Color (DPC)
- }{\pagecolor@warning@noline{%
- The pagecolor package must be loaded after either %
- package color or after package xcolor (at your %
- option). Neither package was loaded before package %
- pagecolor. Loading of package xcolor will now be %
- tried automatically. \\%
- When the pagecolor package is used with option %
- pagecolor using a color requiring e.g. x11names %
- option for xcolor package, this will not work!%
+ }{\PackageWarningNoLine{pagecolor}{%
+ The pagecolor package must be loaded after either\MessageBreak%
+ package color or after package xcolor (at your\MessageBreak%
+ option). Neither package was loaded before package\MessageBreak%
+ pagecolor. Loading of package xcolor will now be\MessageBreak%
+ tried automatically.\MessageBreak%
+ When the pagecolor package is used with option\MessageBreak%
+ pagecolor using a color requiring e.g. x11names\MessageBreak%
+ option for xcolor package, this will not work%
}
}
\RequirePackage{xcolor}[2022/06/12]% v2.14 LaTeX color extensions (UK)
@@ -89,30 +87,28 @@
\ifdefined\nopagecolor\relax
\else
- \pagecolor@info@noline{\string\nopagecolor\ is undefined!}
+ \PackageNoteNoLine{pagecolor}{\string\nopagecolor\ is undefined}
\def\pagecolortmpb{none}
\edef\pagecolortmpa{\pagecolor@nopagecolor}
\ifx\pagecolortmpa\pagecolortmpb
- \pagecolor@warning@noline{%
- Option nopagecolor=none requested but \string\nopagecolor\ %
- unknown: \\%
- By option nopagecolor the "color" to be used with %
- \string\nopagecolor\ %
- is set. The current value is "none" (maybe by default), %
- but command \string\nopagecolor\ is undefined. %
- Therefore the color cannot be "none". %
- Please change the option accordingly! - %
- As first aid nopagecolor is now set to white.%
+ \PackageWarningNoLine{pagecolor}{%
+ Option nopagecolor=none requested but \string\nopagecolor\space unknown:\MessageBreak%
+ By option nopagecolor the "color" to be used with \string\nopagecolor\MessageBreak%
+ is set. The current value is "none" (maybe by default),\MessageBreak%
+ but command \string\nopagecolor\ is undefined.\MessageBreak%
+ Therefore the color cannot be "none".\MessageBreak%
+ Please change the option accordingly! -\MessageBreak%
+ As first aid nopagecolor is now set to white%
}
\setkeys{pagecolor}{nopagecolor=white}
\fi
\edef\pagecolortmpa{\pagecolor@pagecolor}
\ifx\pagecolortmpa\pagecolortmpb\relax
- \pagecolor@warning@noline{%
- Option pagecolor=none (maybe by default) used, %
- but \string\nopagecolor\ is unknown. %
- Please use another option value; %
- \pagecolor@nopagecolor\ will be used now.%
+ \PackageWarningNoLine{pagecolor}{%
+ Option pagecolor=none (maybe by default) used,\MessageBreak%
+ but \string\nopagecolor\ is unknown.\MessageBreak%
+ Please use another option value;\MessageBreak%
+ \pagecolor@nopagecolor\ will be used now%
}
\setkeys{pagecolor}{pagecolor={\pagecolor@nopagecolor}}
\fi
@@ -128,14 +124,13 @@
\ifdefined\nopagecolor\relax%
\nopagecolor%
\else%
- \pagecolor@warning{%
- pagecolor=none requested but \string\nopagecolor\ %
- unknown: \\%
- \string\pagecolor{none} was used, but the command %
- \string\nopagecolor\ is undefined. %
- Please use another color. \\%
- pagecolor=\pagecolor@nopagecolor\ \\%
- will be used now.%
+ \PackageWarning{pagecolor}{%
+ pagecolor=none requested but \string\nopagecolor\space unknown:\MessageBreak%
+ \string\pagecolor{none} was used, but the command\MessageBreak%
+ \string\nopagecolor\space is undefined.\MessageBreak%
+ Please use another color.\MessageBreak%
+ pagecolor=\pagecolor@nopagecolor\MessageBreak%
+ will be used now.\MessageBreak%
}%
\xdef\thepagecolor{\pagecolor@nopagecolor}%
\xdef\thepagecolornone{\pagecolor@nopagecolor}%
@@ -155,22 +150,23 @@
\gdef\pagecolor@cl{0}
\IfPackageLoadedTF{crop}{% crop loaded
\gdef\pagecolor@cl{1}
- \pagecolor@info{\string\nopagecolor\space did not work with the crop package %
- 2017/11/19 v1.10. Using \\%
- \pagecolor@nopagecolor\ \\%
- as nopagecolor now.%
+ \PackageNoteNoLine{pagecolor}{%
+ \string\nopagecolor\space did not work with the crop package\MessageBreak%
+ 2017/11/19 v1.10. Using\MessageBreak%
+ \pagecolor@nopagecolor\MessageBreak%
+ as nopagecolor now%
}
\def\pagecolortmpb{none}
\edef\pagecolortmpa{\pagecolor@nopagecolor}
\ifx\pagecolortmpa\pagecolortmpb\relax
- \pagecolor@warning@noline{%
- Option nopagecolor=none requested but this does not work with the %
- crop package. By option nopagecolor the "color" to be used with %
- \string\nopagecolor\ is set. The current value is "none" (maybe by %
- default), but the crop package broke \string\nopagecolor . %
- Therefore the color cannot be "none". %
- Please change the option accordingly! %
- As first aid nopagecolor is now set to white.%
+ \PackageWarningNoLine{pagecolor}{%
+ Option nopagecolor=none requested but this does not work with the\MessageBreak%
+ crop package. By option nopagecolor the "color" to be used with\MessageBreak%
+ \string\nopagecolor\ is set. The current value is "none" (maybe by\MessageBreak%
+ default), but the crop package broke \string\nopagecolor .\MessageBreak%
+ Therefore the color cannot be "none".\MessageBreak%
+ Please change the option accordingly!\MessageBreak%
+ As first aid nopagecolor is now set to white%
}
\setkeys{pagecolor}{nopagecolor=white}
\fi
@@ -206,8 +202,8 @@
\xdef\pagecolortmpe{\CROP@pagecolor}%
\pagecolor{\pagecolortmpd}%
\xdef\CROP@stockcolor{\pagecolortmpe}%
- }{\pagecolor@info{\string\backgroundpagecolor\ does not do %
- anything when the crop package has not been loaded.}%
+ }{\PackageInfo{pagecolor}{\string\backgroundpagecolor\space does not do\MessageBreak%
+ anything when the crop package has not been loaded;\MessageBreak}%
}%
}
@@ -215,15 +211,15 @@
\IfPackageLoadedTF{crop}{%
\xdef\pagecolortmpf{\CROP@stockcolor}%
\backgroundpagecolor{#1}%
- }{\pagecolor@info{\string\newbackgroundpagecolor\ does not do %
- anything when the crop package has not been loaded.}%
+ }{\PackageInfo{pagecolor}{\string\newbackgroundpagecolor\space does not do\MessageBreak%
+ anything when the crop package has not been loaded;\MessageBreak}%
}%
}
\newcommand{\restorebackgroundpagecolor}{%
\IfPackageLoadedTF{crop}{\xdef\CROP@stockcolor{\pagecolortmpf}}{%
- \pagecolor@info{\string\newbackgroundpagecolor\ does not do %
- anything when the crop package has not been loaded.}}%
+ \PackageInfo{pagecolor}{\string\newbackgroundpagecolor\space does not do\MessageBreak%
+ anything when the crop package has not been loaded;\MessageBreak}}%
}
\AddToHook{begindocument/end}{%
@@ -232,22 +228,22 @@
% crop not loaded before pagecolor, but maybe afterwards:
\IfPackageLoadedTF{crop}{% crop indeed loaded afterwards.
\gdef\pagecolor@cl{1}%
- \pagecolor@info{\string\nopagecolor\space did not work with the crop package %
- 2017/11/19 v1.10. Using \\%
- \pagecolor@nopagecolor\ \\%
- as nopagecolor now.%
+ \PackageInfo{pagecolor}{\string\nopagecolor\space did not work with the crop package\MessageBreak%
+ 2017/11/19 v1.10. Using\MessageBreak%
+ \pagecolor@nopagecolor\MessageBreak%
+ as nopagecolor now.\MessageBreak%
}%
\def\pagecolortmpb{none}%
\edef\pagecolortmpa{\pagecolor@nopagecolor}%
\ifx\pagecolortmpa\pagecolortmpb\relax%
- \pagecolor@warning@noline{%
- Option nopagecolor=none requested but this does not work with %
- the crop package. By option nopagecolor the "color" to be used %
- with \string\nopagecolor\ is set. The current value is "none" %
- (maybe by default), but the crop package broke %
- \string\nopagecolor . Therefore the color cannot be "none". %
- Please change the option accordingly! %
- As first aid nopagecolor is now set to white.%
+ \PackageWarningNoLine{pagecolor}{%
+ Option nopagecolor=none requested but this does not work with\MessageBreak%
+ the crop package. By option nopagecolor the "color" to be used\MessageBreak%
+ with \string\nopagecolor\space is set. The current value is "none"\MessageBreak%
+ (maybe by default), but the crop package broke\MessageBreak%
+ \string\nopagecolor . Therefore the color cannot be "none".\MessageBreak%
+ Please change the option accordingly!\MessageBreak%
+ As first aid nopagecolor is now set to white%
}%
\setkeys{pagecolor}{nopagecolor=white}%
\fi%