diff options
author | Karl Berry <karl@freefriends.org> | 2023-04-18 19:40:44 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2023-04-18 19:40:44 +0000 |
commit | d05de666f58bd5091534167160a5aa386671ddf7 (patch) | |
tree | 319854f5df63cc54c72fab63eb06fbd5a4163538 /Master/texmf-dist | |
parent | 421c46931938c705ca7c62437a5086ab6b0cfd8a (diff) |
pagecolor (18apr23)
git-svn-id: svn://tug.org/texlive/trunk@66885 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/pagecolor/README | 13 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pagecolor/pagecolor-crop-example.pdf | bin | 101140 -> 101137 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.pdf | bin | 93660 -> 93660 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex | 7 | ||||
-rw-r--r-- | Master/texmf-dist/doc/latex/pagecolor/pagecolor.pdf | bin | 341917 -> 342199 bytes | |||
-rw-r--r-- | Master/texmf-dist/source/latex/pagecolor/pagecolor.drv | 11 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/pagecolor/pagecolor.dtx | 247 | ||||
-rw-r--r-- | Master/texmf-dist/source/latex/pagecolor/pagecolor.ins | 8 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/pagecolor/pagecolor.sty | 140 |
9 files changed, 207 insertions, 219 deletions
diff --git a/Master/texmf-dist/doc/latex/pagecolor/README b/Master/texmf-dist/doc/latex/pagecolor/README index 115461645ce..8d1c8ee0c39 100644 --- a/Master/texmf-dist/doc/latex/pagecolor/README +++ b/Master/texmf-dist/doc/latex/pagecolor/README @@ -1,4 +1,4 @@ -README for pagecolor package, 2023-02-14, v1.2b +README for pagecolor package, 2023-04-18, v1.2c TABLE OF CONTENTS @@ -46,7 +46,7 @@ LaTeX version 2005-12-01 or later. ========== "pagecolor" is available on CTAN: -https://www.ctan.org/pkg/pagecolor +https://ctan.org/pkg/pagecolor Also a ZIP file is provided that contains the files: the manual (pagecolor.pdf), the example (pagecolor-example.tex), @@ -66,7 +66,7 @@ Installation with ZIP file in TDS format The ZIP file "pagecolor.tds.zip" contains the files sorted in a TDS tree. Thus you can directly unpack the ZIP file inside a TDS tree. -See https://www.ctan.org/TDS-guidelines for an explanation +See https://ctan.org/TDS-guidelines for an explanation of TDS. Example: cd /...somewhere.../texmf @@ -108,7 +108,6 @@ g) Copy the documentation files to ===================== pagecolor loads other packages: -- hardwrap - kvoptions - xcolor, if the color package has not been loaded before pagecolor which again load other packages @@ -129,13 +128,13 @@ they also should be loaded before pagecolor. 6 AUTHOR/MAINTAINER -===================== +=================== H.-Martin Münch 7 BUG REPORTS -============== +============= A bug report should contain: * Comprehensive problem description. This includes error or @@ -162,6 +161,6 @@ Bug reports can be send to the maintainer: 8 KNOWN PROBLEMS -================= +================ * as yet: none.
\ No newline at end of file diff --git a/Master/texmf-dist/doc/latex/pagecolor/pagecolor-crop-example.pdf b/Master/texmf-dist/doc/latex/pagecolor/pagecolor-crop-example.pdf Binary files differindex 52c21eb6486..3a3a9f51ba1 100644 --- a/Master/texmf-dist/doc/latex/pagecolor/pagecolor-crop-example.pdf +++ b/Master/texmf-dist/doc/latex/pagecolor/pagecolor-crop-example.pdf diff --git a/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.pdf b/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.pdf Binary files differindex a91f80d9f2d..d9e87354600 100644 --- a/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.pdf +++ b/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.pdf diff --git a/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex b/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex index 11a994977b5..95b321603f4 100644 --- a/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex +++ b/Master/texmf-dist/doc/latex/pagecolor/pagecolor-example.tex @@ -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> @@ -61,7 +62,7 @@ % \usepackage[cam,center,a3]{crop}[2017/11/19]% 1.10 \usepackage[pagecolor={LightGoldenrod1},% - nopagecolor={none}]{pagecolor}[2023-02-14]% v1.2b Provides thepagecolor (HMM) + nopagecolor={none}]{pagecolor}[2023-04-18]% v1.2c Provides thepagecolor (HMM) \usepackage{afterpage}[2014/10/28]% v1.08 After-Page Package (DPC) % The afterpage package is generally not needed, @@ -78,7 +79,7 @@ \section*{Example for pagecolor} This example demonstrates the use of package\newline -\textsf{pagecolor}, v1.2b as of 2023-02-14 (HMM).\newline +\textsf{pagecolor}, v1.2c as of 2023-04-18 (HMM).\newline The used options were\newline \verb|pagecolor={LightGoldenrod1}|\newline (\verb|pagecolor={none}| would be the default), and\newline diff --git a/Master/texmf-dist/doc/latex/pagecolor/pagecolor.pdf b/Master/texmf-dist/doc/latex/pagecolor/pagecolor.pdf Binary files differindex 73ada173383..b94d9a4e87a 100644 --- a/Master/texmf-dist/doc/latex/pagecolor/pagecolor.pdf +++ b/Master/texmf-dist/doc/latex/pagecolor/pagecolor.pdf diff --git a/Master/texmf-dist/source/latex/pagecolor/pagecolor.drv b/Master/texmf-dist/source/latex/pagecolor/pagecolor.drv index 3b9d245f8c5..59766ab7a3a 100644 --- a/Master/texmf-dist/source/latex/pagecolor/pagecolor.drv +++ b/Master/texmf-dist/source/latex/pagecolor/pagecolor.drv @@ -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> @@ -41,10 +42,10 @@ %% \NeedsTeXFormat{LaTeX2e}[2022-11-01] \ProvidesFile{pagecolor.drv}% - [2023-02-14 v1.2b Provides thepagecolor (HMM)] -\documentclass{ltxdoc}[2022/06/22]% v2.1i -\usepackage{xcolor}[2022/06/12]% v2.14 -\usepackage{holtxdoc}[2019/12/09]% v0.30 + [2023-04-18 v1.2c Provides thepagecolor (HMM)] +\documentclass{ltxdoc}[2022/06/22]% v2.1i Standard LaTeX documentation class +\usepackage{xcolor}[2022/06/12]% v2.14 LaTeX color extensions (UK) +\usepackage{holtxdoc}[2019/12/09]% v0.30 Private additional ltxdoc support (HO) \hypersetup{% pdfsubject={Providing the thepagecolor command (HMM)},% pdfkeywords={LaTeX, pagecolor, thepagecolor},% diff --git a/Master/texmf-dist/source/latex/pagecolor/pagecolor.dtx b/Master/texmf-dist/source/latex/pagecolor/pagecolor.dtx index 75e0beec2ff..2180821b93b 100644 --- a/Master/texmf-dist/source/latex/pagecolor/pagecolor.dtx +++ b/Master/texmf-dist/source/latex/pagecolor/pagecolor.dtx @@ -1,10 +1,10 @@ % \iffalse meta-comment % % File: pagecolor.dtx -% Version: 2023-02-14 v1.2b +% Version: 2023-04-18 v1.2c % Info: Provides thepagecolor % -% Copyright (C) 2011 - 2023 by +% Copyright © 2011 - 2023 by % H.-Martin Münch <Martin dot Muench at Uni-Bonn dot de> % % This work may be distributed and/or modified under the @@ -28,7 +28,7 @@ % pagecolor-example.tex, pagecolor-example.pdf. % % "pagecolor" is available on CTAN: -% https://www.ctan.org/pkg/pagecolor +% https://ctan.org/pkg/pagecolor % % Also a TDS.ZIP file is provided that contains all the files % already sorted in a TDS tree: @@ -49,7 +49,7 @@ \input docstrip.tex \Msg{******************************************************************} \Msg{* Installation *} -\Msg{* Package: pagecolor 2023-02-14 v1.2b Provides thepagecolor (HMM)*} +\Msg{* Package: pagecolor 2023-04-18 v1.2c Provides thepagecolor (HMM)*} \Msg{******************************************************************} \keepsilent @@ -61,7 +61,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> @@ -136,7 +137,7 @@ In memoriam % \section{The documentation driver file} % % The next bit of code contains the documentation driver file for -% \TeX , i.\,e., the file that will produce the documentation you +% \TeX, i.\,e., the file that will produce the documentation you % are currently reading. It will be extracted from this file by the % \texttt{docstrip} programme. That is, run \LaTeX{} on \texttt{docstrip} % and specify the \texttt{driver} option when \texttt{docstrip} @@ -146,10 +147,10 @@ In memoriam %<*driver> \NeedsTeXFormat{LaTeX2e}[2022-11-01] \ProvidesFile{pagecolor.drv}% - [2023-02-14 v1.2b Provides thepagecolor (HMM)] -\documentclass{ltxdoc}[2022/06/22]% v2.1i -\usepackage{xcolor}[2022/06/12]% v2.14 -\usepackage{holtxdoc}[2019/12/09]% v0.30 + [2023-04-18 v1.2c Provides thepagecolor (HMM)] +\documentclass{ltxdoc}[2022/06/22]% v2.1i Standard LaTeX documentation class +\usepackage{xcolor}[2022/06/12]% v2.14 LaTeX color extensions (UK) +\usepackage{holtxdoc}[2019/12/09]% v0.30 Private additional ltxdoc support (HO) \hypersetup{% pdfsubject={Providing the thepagecolor command (HMM)},% pdfkeywords={LaTeX, pagecolor, thepagecolor},% @@ -200,15 +201,15 @@ In memoriam % \DoNotIndex{\color,\gdef,\lipsum,\ifdefined,\IfPackageAtLeastTF,\IfFormatAtLeastTF} % \DoNotIndex{\IfPackageLoadedTF,\ifx,\MessageBreak} % \DoNotIndex{\Alternatives,\transparent,\newcommand,\verb,\listfiles,\newpage} -% \DoNotIndex{\pagecolor@info,\pagecolor@info@noline,\pagecolor@warning,\pagecolor@warning@noline} % \DoNotIndex{\AddToHook,\afterpage,\Alternatives,\DeclareStringOption,\holtxdoc,\hyperref} % \DoNotIndex{\kvoptions,\NeedsTeXFormat,\Oberdiek,\OCG,\options} +% \DoNotIndex{\PackageInfo,\PackageNoteNoLine,\PackageWarning,\PackageWarningNoLine} % \DoNotIndex{\pagecolortmpa,\pagecolortmpb,\pagecolortmpc,\pagecolortmpd,\pagecolortmpe,\pagecolortmpf} % \DoNotIndex{\ProcessKeyvalOptions,\ProvidesPackage,\renewcommand,\RequirePackage} % \DoNotIndex{\setkeys,\SetupKeyvalOptions,\transparent,\@ifl@t@r,\fmtversion,\PackageError} % % \title{The \xpackage{pagecolor} package} -% \date{2023-02-14 v1.2b} +% \date{2023-04-18 v1.2c} % \author{H.-Martin Münch\\\xemail{Martin.Muench at Uni-Bonn.de}} % % \maketitle @@ -269,7 +270,6 @@ In memoriam % |\restorebackgroundpagecolor| are provided. % % \section{Usage} -% % \indent Just load the package placing % \begin{quote} % |\usepackage[<|\textit{options}|>]{pagecolor}| @@ -341,12 +341,12 @@ In memoriam % \begin{description} % \item[-] \xpackage{transparent} package: With it some object can be made % (fully or partially) transparent, -% \url{https://www.ctan.org/pkg/transparent}. +% \url{https://ctan.org/pkg/transparent}. % % \item[-] OCG (Optional Content Groups): It allows for example % to \textquotedblleft hide\textquotedblright{} something when % printing the document while keeping the layout, -% \url{https://www.ctan.org/search?phrase=ocg}. +% \url{https://ctan.org/search?phrase=ocg}. % \end{description} % % \bigskip @@ -359,7 +359,6 @@ In memoriam % \newpage % % \section{Example} -% % \begin{macrocode} %<*example> \NeedsTeXFormat{LaTeX2e}[2022-11-01] @@ -384,7 +383,7 @@ In memoriam % \usepackage[cam,center,a3]{crop}[2017/11/19]% 1.10 \usepackage[pagecolor={LightGoldenrod1},% - nopagecolor={none}]{pagecolor}[2023-02-14]% v1.2b Provides thepagecolor (HMM) + nopagecolor={none}]{pagecolor}[2023-04-18]% v1.2c Provides thepagecolor (HMM) \usepackage{afterpage}[2014/10/28]% v1.08 After-Page Package (DPC) % The afterpage package is generally not needed, @@ -401,7 +400,7 @@ In memoriam \section*{Example for pagecolor} This example demonstrates the use of package\newline -\textsf{pagecolor}, v1.2b as of 2023-02-14 (HMM).\newline +\textsf{pagecolor}, v1.2c as of 2023-04-18 (HMM).\newline The used options were\newline \verb|pagecolor={LightGoldenrod1}|\newline (\verb|pagecolor={none}| would be the default), and\newline @@ -505,7 +504,6 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % \StopEventually{} % % \section{The implementation} -% % We start off by checking that we are loading into \LaTeXe{} and % announcing the name and version of this package. % @@ -515,8 +513,7 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % % \begin{macrocode} \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)] % \end{macrocode} % % A short description of the \xpackage{pagecolor} package: @@ -526,18 +523,11 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). %% \restorepagecolor, \backgroundpagecolor, \newbackgroundpagecolor{...}, %% and \restorebackgroundpagecolor commands and a replacement for the %% \nopagecolor command, if this is not available. -% \end{macrocode} -% -% We want to wrap the messages nicely: -% -% \begin{macrocode} -\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% @@ -563,15 +553,15 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). }{% 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) @@ -595,30 +585,28 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % \begin{macrocode} \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 @@ -645,14 +633,13 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). \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}% @@ -679,22 +666,23 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). \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 @@ -735,7 +723,7 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % There have been requests (via e-mail and at % \url{https://tex.stackexchange.com/q/25137/6865}) to change the color of just one % (or two) page(s) only, similar to |\newgeometry| and |\restoregeometry| of the -% \xpackage{geometry} package (\url{https://www.ctan.org/pkg/geometry}). +% \xpackage{geometry} package (\url{https://ctan.org/pkg/geometry}). % Therefore |\newpagecolor| and |\restorepagecolor| are introduced (as suggested by % \textsc{haoyun\_tex}): % \begin{macrocode} @@ -804,8 +792,8 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % Set the background/outer/physical page color: % \begin{macrocode} \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}% % \end{macrocode} % - except giving this information. % \begin{macrocode} @@ -823,8 +811,8 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). \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}% }% } @@ -834,8 +822,8 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % \begin{macrocode} \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}}% } % \end{macrocode} @@ -851,22 +839,22 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % 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% @@ -884,73 +872,69 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % % \section{Installation} % \subsection{Downloads} -% Everything is available at \url{https://www.ctan.org}, +% Everything is available at \url{https://ctan.org}, % but may need additional packages themselves.\\ % % \DescribeMacro{pagecolor.dtx} % For unpacking the |pagecolor.dtx| file and constructing the documentation % it is required: % \begin{description} -% \item[-] \TeX Format \LaTeXe{} 2022-11-01 or newer: \url{https://www.CTAN.org} +% \item[-] \TeX-format \LaTeXe{} 2022-11-01 or newer: \url{https://www.CTAN.org/} % % \item[-] document class \xclass{ltxdoc}, 2022/06/22, v2.1i, -% \url{https://www.ctan.org/pkg/ltxdoc} +% \url{https://ctan.org/pkg/ltxdoc} % % \item[-] package \xpackage{holtxdoc}, 2019/12/09, v0.30, -% \url{https://www.ctan.org/pkg/holtxdoc} +% \url{https://ctan.org/pkg/holtxdoc} % \end{description} % % \DescribeMacro{pagecolor.sty} -% The |pagecolor.sty| for \LaTeXe{} (i.\,e. each document using +% The |pagecolor.sty| for \LaTeXe{} (i.\,e.~each document using % the \xpackage{pagecolor} package) requires: % \begin{description} -% \item[-] \TeX{} Format \LaTeXe{} 2022-11-01 or newer, \url{https://www.CTAN.org} -% -% \item[-] package \xpackage{hardwrap}, 2011/02/12, v0.2, -% \url{https://www.ctan.org/pkg/hardwrap} +% \item[-] \TeX{}-format \LaTeXe{} 2022-11-01 or newer, \url{https://www.CTAN.org/} % % \item[-] package \xpackage{kvoptions}, 2022-06-15, v3.15, -% \url{https://www.ctan.org/pkg/kvoptions} +% \url{https://ctan.org/pkg/kvoptions} +% +% \item[-] package \xpackage{pagecolor}, 2023-04-18, v1.2c, +% \url{https://ctan.org/pkg/pagecolor}\\ +% (Because you are reading the documentation for the +% \xpackage{pagecolor} package, it can be assumed that you already +% have some version of it~-- is it the current one?) % \end{description} % and either % \begin{description} % \item[-] package \xpackage{xcolor}, 2022/06/12, v2.14, -% \url{https://www.ctan.org/pkg/xcolor} +% \url{https://ctan.org/pkg/xcolor} % \end{description} % or % \begin{description} % \item[-] package \xpackage{color}, 2022-01-06, v1.3d, -% \url{https://www.ctan.org/pkg/color} (from the\\ +% \url{https://ctan.org/pkg/color} (from the\\ % \xpackage{graphics} package bundle). % \end{description} % % \DescribeMacro{pagecolor-example.tex} -% The |pagecolor-example.tex| requires the same file as all -% documents using the \xpackage{pagecolor} package, i.\,e. -% \begin{description} -% \item[-] package \xpackage{pagecolor}, 2023-02-14, v1.2b, -% \url{https://www.ctan.org/pkg/pagecolor}\\ -% (Well, it is the example file for this package, and because you are reading the -% documentation for the \xpackage{pagecolor} package, it~can be assumed that you already -% have some version of it -- is it the current one?) -% \end{description} -% and additionally: +% The |pagecolor-example.tex| requires the same files as all +% documents using the \xpackage{pagecolor} package +% (see preceding paragraph |pagecolor.sty|) and additionally: % \begin{description} % \item[-] class \xpackage{article}, 2022/07/02, v1.4n, from \xpackage{classes}:\\ -% \url{https://www.ctan.org/pkg/classes} +% \url{https://ctan.org/pkg/classes} % % \item[-] package \xpackage{xcolor}, 2022/06/12, v2.14, -% \url{https://www.ctan.org/pkg/xcolor}\\ +% \url{https://ctan.org/pkg/xcolor}\\ % This package would not be needed for the use of just base colors only, % the \xpackage{color} package would be sufficient for that. % % \item[-] package \xpackage{afterpage}, 2014/10/28, v1.08, -% \url{https://www.ctan.org/pkg/afterpage}\\ +% \url{https://ctan.org/pkg/afterpage}\\ % This package is only needed for demonstrating the\\ % |\newpagecolor{somecolor}\afterpage{\restorepagecolor}| construct. % % \item[-] package \xpackage{lipsum}, 2021-09-20, v2.7, -% \url{https://www.ctan.org/pkg/lipsum}\\ +% \url{https://ctan.org/pkg/lipsum}\\ % This package is only needed for some blind text. % \end{description} % @@ -961,10 +945,10 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % there are listed (newer versions might be available): % \begin{description} % \item[-] package \xpackage{transparent}, 2022-10-27, v1.5,\\ -% \url{https://www.ctan.org/pkg/transparent} +% \url{https://ctan.org/pkg/transparent} % % \item[-] OCG (Optional Content Groups),\\ -% \url{https://www.ctan.org/search?phrase=ocg} +% \url{https://ctan.org/search?phrase=ocg} % \end{description} % % \DescribeMacro{Oberdiek} @@ -984,7 +968,7 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % % \DescribeMacro{Münch} % A hyperlinked list of my (other) packages can be found at -% \url{https://www.ctan.org/author/muench-hm}.\\ +% \url{https://ctan.org/author/muench-hm}.\\ % % \subsection{Package, unpacking TDS} % \paragraph{Package.} This package is available on \url{https://www.CTAN.org}. @@ -1014,7 +998,7 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % % \bigskip % -% \noindent For required other packages, please see the preceding subsection. +% \noindent For required other packages please see the preceding subsection. % % \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting % \docstrip{} archive. The files are extracted by running the @@ -1149,7 +1133,8 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % \subsection{Compiling the example} % % The example file, \textsf{pagecolor-example.tex}, can be compiled via\\ -% |(pdf)latex pagecolor-example.tex|. +% |(pdf)latex pagecolor-example.tex|\\ +% and needs at least two compilation runs. % % \section{Acknowledgements} % @@ -1221,7 +1206,7 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % \item \XeLaTeX{} and others now do know |\nopagecolor|. % \item Package \xpackage{crop} has been updated, but |\nopagecolor| % still applies to the physical background sheet instead of the logical foreground area. -% \item Now using the \xpackage{hardwrap} package. +% \item Now using the \xpackage{hardwrap} package. [Removed in v1.2c again.] % \end{Version} % \begin{Version}{2022-11-27 v1.2a} % \item Now also handling the background/outer/physical page color, @@ -1230,7 +1215,11 @@ was restored by \verb|\restorebackgroundpagecolor| (if crop is used). % \begin{Version}{2023-02-14 v1.2b} % \item Example now also handling |\newbackgroundpagecolor| and |\restorebackgroundpagecolor| % when the \xpackage{crop} package is used. -% \item Fixed a missing v in version number. +% \item Fixed a missing |v| in the version number. +% \end{Version} +% \begin{Version}{2023-04-18 v1.2c} +% \item No longer using the \xpackage{hardwrap} package. +% \item Bug fix: There was an |undolabl| where a |pagecolor| belongs. % \item Documentation and README updates. % \end{Version} % \end{History} diff --git a/Master/texmf-dist/source/latex/pagecolor/pagecolor.ins b/Master/texmf-dist/source/latex/pagecolor/pagecolor.ins index 06685a5f137..90a56f3d453 100644 --- a/Master/texmf-dist/source/latex/pagecolor/pagecolor.ins +++ b/Master/texmf-dist/source/latex/pagecolor/pagecolor.ins @@ -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> @@ -42,7 +43,7 @@ \input docstrip.tex \Msg{******************************************************************} \Msg{* Installation *} -\Msg{* Package: pagecolor 2023-02-14 v1.2b Provides thepagecolor (HMM)*} +\Msg{* Package: pagecolor 2023-04-18 v1.2c Provides thepagecolor (HMM)*} \Msg{******************************************************************} \keepsilent @@ -54,7 +55,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> 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% |