texlive[64463] Master/texmf-dist: oberdiek (22sep22)
commits+karl at tug.org
commits+karl at tug.org
Thu Sep 22 22:06:19 CEST 2022
Revision: 64463
http://tug.org/svn/texlive?view=revision&revision=64463
Author: karl
Date: 2022-09-22 22:06:18 +0200 (Thu, 22 Sep 2022)
Log Message:
-----------
oberdiek (22sep22)
Modified Paths:
--------------
trunk/Master/texmf-dist/bibtex/bib/oberdiek/oberdiek-bundle.bib
trunk/Master/texmf-dist/doc/latex/oberdiek/README.md
trunk/Master/texmf-dist/doc/latex/oberdiek/aliascnt.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/bmpsize.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/centernot.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/chemarr.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/classlist.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/colonequals.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/dvipscol.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/engord.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/enparen.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/eolgrab.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/fibnum.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/flags.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/holtxdoc.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/hypbmsec.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/hypcap.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/hypgotoe.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/hyphsubst.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/ifdraft.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/iflang.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/oberdiek.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcolfoot.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcolparallel.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcolparcolumns.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcrypt.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/pdfrender.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/protecteddef.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/resizegather.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/rotchiffre.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/scrindex.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/setouterhbox.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/settobox.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/stackrel.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/stampinclude.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/tabularht.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/tabularkv.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/telprint.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/thepdfnumber.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/twoopt.pdf
trunk/Master/texmf-dist/source/latex/oberdiek/oberdiek.ins
trunk/Master/texmf-dist/source/latex/oberdiek/oberdiek.tex
Removed Paths:
-------------
trunk/Master/texmf-dist/doc/latex/oberdiek/pagegrid.pdf
trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcol.pdf
trunk/Master/texmf-dist/source/latex/oberdiek/pagegrid.dtx
trunk/Master/texmf-dist/source/latex/oberdiek/pdfcol.dtx
trunk/Master/texmf-dist/tex/generic/oberdiek/pdfcol.sty
trunk/Master/texmf-dist/tex/latex/oberdiek/pagegrid.sty
Modified: trunk/Master/texmf-dist/bibtex/bib/oberdiek/oberdiek-bundle.bib
===================================================================
--- trunk/Master/texmf-dist/bibtex/bib/oberdiek/oberdiek-bundle.bib 2022-09-22 20:05:30 UTC (rev 64462)
+++ trunk/Master/texmf-dist/bibtex/bib/oberdiek/oberdiek-bundle.bib 2022-09-22 20:06:18 UTC (rev 64463)
@@ -131,20 +131,6 @@
version={1.7},
url={https://ctan.org/pkg/iflang},
}
- at manual{oberdiek:pagegrid,
- title={The pagegrid package},
- author={Heiko Oberdiek},
- date={2016-05-16},
- version={1.5},
- url={https://ctan.org/pkg/pagegrid},
-}
- at manual{oberdiek:pdfcol,
- title={The pdfcol package},
- author={Heiko Oberdiek},
- date={2018-11-01},
- version={1.5},
- url={https://ctan.org/pkg/pdfcol},
-}
@manual{oberdiek:pdfcolfoot,
title={The pdfcolfoot package},
author={Heiko Oberdiek},
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/oberdiek/README.md 2022-09-22 20:05:30 UTC (rev 64462)
+++ trunk/Master/texmf-dist/doc/latex/oberdiek/README.md 2022-09-22 20:06:18 UTC (rev 64463)
@@ -1,6 +1,6 @@
# Oberdiek bundle
-Version: 2021-11-15
+Version: 2022-09-21
This file describes the directory
CTAN:macros/latex/contrib/oberdiek/
@@ -11,7 +11,7 @@
## Copyright (C)
* 2007, 2009-2011 Heiko Oberdiek
-* 2016-2020 Oberdiek Package Support Group
+* 2016-2022 Oberdiek Package Support Group
## License
LATEX Project Public License, version 1.3c or later.
@@ -53,9 +53,7 @@
* hyphsubst: substitute hyphenation patterns;
* ifdraft: switch for option draft;
* iflang: provides expandable checks for the current language;
-* pagegrid: prints a page grid in the background;
* pdfcolfoot: using pdfTeX’s color stack for footnotes;
-* pdfcol: macros for setting and maintaining new color stacks;
* pdfcolparallel: fixes colour problems in package parallel;
* pdfcolparcolumns: fixes colour problems in package parcolumns;
* pdfcrypt: setting PDF encryption;
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/aliascnt.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/bmpsize.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/centernot.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/chemarr.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/classlist.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/colonequals.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/dvipscol.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/engord.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/enparen.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/eolgrab.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/fibnum.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/flags.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/holtxdoc.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/hypbmsec.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/hypcap.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/hypgotoe.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/hyphsubst.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/ifdraft.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/iflang.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/oberdiek.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/oberdiek/pagegrid.pdf
===================================================================
(Binary files differ)
Deleted: trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcol.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcolfoot.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcolparallel.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcolparcolumns.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/pdfcrypt.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/pdfrender.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/protecteddef.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/resizegather.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/rotchiffre.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/scrindex.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/setouterhbox.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/settobox.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/stackrel.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/stampinclude.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/tabularht.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/tabularkv.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/telprint.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/thepdfnumber.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/doc/latex/oberdiek/twoopt.pdf
===================================================================
(Binary files differ)
Modified: trunk/Master/texmf-dist/source/latex/oberdiek/oberdiek.ins
===================================================================
--- trunk/Master/texmf-dist/source/latex/oberdiek/oberdiek.ins 2022-09-22 20:05:30 UTC (rev 64462)
+++ trunk/Master/texmf-dist/source/latex/oberdiek/oberdiek.ins 2022-09-22 20:06:18 UTC (rev 64463)
@@ -45,8 +45,6 @@
\batchinput{hyphsubst.dtx}
\batchinput{ifdraft.dtx}
\batchinput{iflang.dtx}
-\batchinput{pagegrid.dtx}
-\batchinput{pdfcol.dtx}
\batchinput{pdfcolfoot.dtx}
\batchinput{pdfcolparallel.dtx}
\batchinput{pdfcolparcolumns.dtx}
Modified: trunk/Master/texmf-dist/source/latex/oberdiek/oberdiek.tex
===================================================================
--- trunk/Master/texmf-dist/source/latex/oberdiek/oberdiek.tex 2022-09-22 20:05:30 UTC (rev 64462)
+++ trunk/Master/texmf-dist/source/latex/oberdiek/oberdiek.tex 2022-09-22 20:06:18 UTC (rev 64463)
@@ -10,7 +10,7 @@
\newcommand*{\Author}{Heiko Oberdiek}
\newcommand*{\Email}{ho-tex at tug.org}
-\newcommand*{\Date}{2021/11/15}
+\newcommand*{\Date}{2022/09/21}
% Copyright (C) 2006-2016 by
% Heiko Oberdiek
@@ -212,10 +212,6 @@
[\entrysep]
\entry{iflang}{Checks for the current language}%
[\entrysep]
-\entry{pagegrid}{Print page grid in background}%
-[\entrysep]
-\entry{pdfcol}{Handle new color stacks for \hologo{pdfTeX}}%
-[\entrysep]
\entry{pdfcolfoot}{Color stack for footnotes with \hologo{pdfTeX}}%
[\entrysep]
\entry{pdfcolparallel}{Color stacks support for parallel}%
@@ -450,26 +446,6 @@
\tocinclude{iflang}
\newpage
-\subsection{\pkgsectformat{pagegrid}}
-\label{pagegrid}
-\begin{abstract}
-The \LaTeX\ package prints a page grid in the background.
-\end{abstract}
-\tocinclude{pagegrid}
-
-\newpage
-\subsection{\pkgsectformat{pdfcol}}
-\label{pdfcol}
-\begin{abstract}
-Since version 1.40 \pdfTeX\ supports color stacks.
-The driver file \xfile{pdftex.def} for package \xpackage{color}
-defines and uses a main color stack since version v0.04b.
-Package \xpackage{pdfcol} is intended for package writers.
-It defines macros for setting and maintaining new color stacks.
-\end{abstract}
-\tocinclude{pdfcol}
-
-\newpage
\subsection{\pkgsectformat{pdfcolfoot}}
\label{pdfcolfoot}
\begin{abstract}
Deleted: trunk/Master/texmf-dist/source/latex/oberdiek/pagegrid.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/oberdiek/pagegrid.dtx 2022-09-22 20:05:30 UTC (rev 64462)
+++ trunk/Master/texmf-dist/source/latex/oberdiek/pagegrid.dtx 2022-09-22 20:06:18 UTC (rev 64463)
@@ -1,955 +0,0 @@
-% \iffalse meta-comment
-%
-% File: pagegrid.dtx
-% Version: 2016/05/16 v1.5
-% Info: Print page grid in background
-%
-% Copyright (C)
-% 2009 Heiko Oberdiek
-% 2016-2019 Oberdiek Package Support Group
-% https://github.com/ho-tex/oberdiek/issues
-%
-% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either
-% version 1.3c of this license or (at your option) any later
-% version. This version of this license is in
-% https://www.latex-project.org/lppl/lppl-1-3c.txt
-% and the latest version of this license is in
-% https://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of
-% LaTeX version 2005/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainers of this work are
-% Heiko Oberdiek and the Oberdiek Package Support Group
-% https://github.com/ho-tex/oberdiek/issues
-%
-% This work consists of the main source file pagegrid.dtx
-% and the derived files
-% pagegrid.sty, pagegrid.pdf, pagegrid.ins, pagegrid.drv,
-% pagegrid-test1.tex.
-%
-% Distribution:
-% CTAN:macros/latex/contrib/oberdiek/pagegrid.dtx
-% CTAN:macros/latex/contrib/oberdiek/pagegrid.pdf
-%
-% Unpacking:
-% (a) If pagegrid.ins is present:
-% tex pagegrid.ins
-% (b) Without pagegrid.ins:
-% tex pagegrid.dtx
-% (c) If you insist on using LaTeX
-% latex \let\install=y\input{pagegrid.dtx}
-% (quote the arguments according to the demands of your shell)
-%
-% Documentation:
-% (a) If pagegrid.drv is present:
-% latex pagegrid.drv
-% (b) Without pagegrid.drv:
-% latex pagegrid.dtx; ...
-% The class ltxdoc loads the configuration file ltxdoc.cfg
-% if available. Here you can specify further options, e.g.
-% use A4 as paper format:
-% \PassOptionsToClass{a4paper}{article}
-%
-% Programm calls to get the documentation (example):
-% pdflatex pagegrid.dtx
-% makeindex -s gind.ist pagegrid.idx
-% pdflatex pagegrid.dtx
-% makeindex -s gind.ist pagegrid.idx
-% pdflatex pagegrid.dtx
-%
-% Installation:
-% TDS:tex/latex/oberdiek/pagegrid.sty
-% TDS:doc/latex/oberdiek/pagegrid.pdf
-% TDS:source/latex/oberdiek/pagegrid.dtx
-%
-%<*ignore>
-\begingroup
- \catcode123=1 %
- \catcode125=2 %
- \def\x{LaTeX2e}%
-\expandafter\endgroup
-\ifcase 0\ifx\install y1\fi\expandafter
- \ifx\csname processbatchFile\endcsname\relax\else1\fi
- \ifx\fmtname\x\else 1\fi\relax
-\else\csname fi\endcsname
-%</ignore>
-%<*install>
-\input docstrip.tex
-\Msg{************************************************************************}
-\Msg{* Installation}
-\Msg{* Package: pagegrid 2016/05/16 v1.5 Print page grid in background (HO)}
-\Msg{************************************************************************}
-
-\keepsilent
-\askforoverwritefalse
-
-\let\MetaPrefix\relax
-\preamble
-
-This is a generated file.
-
-Project: pagegrid
-Version: 2016/05/16 v1.5
-
-Copyright (C)
- 2009 Heiko Oberdiek
- 2016-2019 Oberdiek Package Support Group
-
-This work may be distributed and/or modified under the
-conditions of the LaTeX Project Public License, either
-version 1.3c of this license or (at your option) any later
-version. This version of this license is in
- https://www.latex-project.org/lppl/lppl-1-3c.txt
-and the latest version of this license is in
- https://www.latex-project.org/lppl.txt
-and version 1.3 or later is part of all distributions of
-LaTeX version 2005/12/01 or later.
-
-This work has the LPPL maintenance status "maintained".
-
-The Current Maintainers of this work are
-Heiko Oberdiek and the Oberdiek Package Support Group
-https://github.com/ho-tex/oberdiek/issues
-
-
-This work consists of the main source file pagegrid.dtx
-and the derived files
- pagegrid.sty, pagegrid.pdf, pagegrid.ins, pagegrid.drv,
- pagegrid-test1.tex.
-
-\endpreamble
-\let\MetaPrefix\DoubleperCent
-
-\generate{%
- \file{pagegrid.ins}{\from{pagegrid.dtx}{install}}%
- \file{pagegrid.drv}{\from{pagegrid.dtx}{driver}}%
- \usedir{tex/latex/oberdiek}%
- \file{pagegrid.sty}{\from{pagegrid.dtx}{package}}%
-% \usedir{doc/latex/oberdiek/test}%
-% \file{pagegrid-test1.tex}{\from{pagegrid.dtx}{test1}}%
-}
-
-\catcode32=13\relax% active space
-\let =\space%
-\Msg{************************************************************************}
-\Msg{*}
-\Msg{* To finish the installation you have to move the following}
-\Msg{* file into a directory searched by TeX:}
-\Msg{*}
-\Msg{* pagegrid.sty}
-\Msg{*}
-\Msg{* To produce the documentation run the file `pagegrid.drv'}
-\Msg{* through LaTeX.}
-\Msg{*}
-\Msg{* Happy TeXing!}
-\Msg{*}
-\Msg{************************************************************************}
-
-\endbatchfile
-%</install>
-%<*ignore>
-\fi
-%</ignore>
-%<*driver>
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{pagegrid.drv}%
- [2016/05/16 v1.5 Print page grid in background (HO)]%
-\documentclass{ltxdoc}
-\usepackage{holtxdoc}[2011/11/22]
-\begin{document}
- \DocInput{pagegrid.dtx}%
-\end{document}
-%</driver>
-% \fi
-%
-%
-%
-% \GetFileInfo{pagegrid.drv}
-%
-% \title{The \xpackage{pagegrid} package}
-% \date{2016/05/16 v1.5}
-% \author{Heiko Oberdiek\thanks
-% {Please report any issues at \url{https://github.com/ho-tex/oberdiek/issues}}}
-%
-% \maketitle
-%
-% \begin{abstract}
-% The \LaTeX\ package prints a page grid in the background.
-% \end{abstract}
-%
-% \tableofcontents
-%
-% \section{Documentation}
-%
-% The package puts a grid on the paper. It was written for
-% developers of a class or package
-% who have to put elements on definite locations on a page
-% (e.g. letter class). The grid allows a faster optical check,
-% whether the positions are correct. If the previewer already
-% offers features for measuring, the package might be obsolete.
-% Otherwise it saves the developer from printing the page and
-% measuring by hand.
-%
-% \subsection{Options}
-%
-% Options are evaluated in the following order:
-% \begin{enumerate}
-% \item
-% Configuration file \xfile{pagegrid.cfg} using \cs{pagegridsetup}
-% if the file exists.
-% \item
-% Package options given for \cs{usepackage}.
-% \item
-% Later calls of \cs{pagegridsetup}.
-% \end{enumerate}
-% \begin{declcs}{pagegridsetup}\M{option list}
-% \end{declcs}
-% The options are key value options. Boolean options are enabled by
-% default (without value) or by using the explicit value \texttt{true}.
-% Value \texttt{false} disable the option.
-%
-% \subsubsection{Options \xoption{enable}, \xoption{disable}}
-%
-% \begin{description}
-% \item[\xoption{enable}:] This boolean option controls whether the page grid
-% is drawn. As default the page grid drawing is activated.
-% \item[\xoption{disable}:] It is the opposite
-% of option \xoption{enable}. It was added for convenience and
-% allows the abbreviation \texttt{disable} for \texttt{enable=false}.
-% \end{description}
-%
-% \subsubsection{Grid origins}
-%
-% The package supports up to two grids on a page allowing
-% measurement from opposite directions. As default two grids are drawn,
-% the first from bottom left to top right. The origin of the second
-% grid is at the opposite top right corner.
-% The origins are controlled by the following options.
-% The number of grids (one or two) depend on the number of these options
-% in one call of \cs{pagegridsetup}.
-% The following frame shows a paper and in its corners are the
-% corresponding options. At the left and right side alias names
-% are given for the options inside the paper.
-% \begin{quote}
-% \begin{tabular}{@{}r|@{\,}l@{\qquad}r@{\,}|l@{}}
-% \cline{2-3}
-% \xoption{left-top}, \xoption{lt}, \xoption{top-left}
-% & \vphantom{\"U}\xoption{tl} & \xoption{tr}
-% & \xoption{top-right}, \xoption{rt}, \xoption{right-top}\\
-% &&&\\
-% \xoption{left-bottom}, \xoption{lb}, \xoption{bottom-left}
-% & \xoption{bl} & \xoption{br}
-% & \xoption{bottom-right}, \xoption{rb}, \xoption{right-bottom}\\
-% \cline{2-3}
-% \end{tabular}
-% \end{quote}
-% Examples:
-% \begin{quote}
-% |\pagegridsetup{bl,tr}|
-% \end{quote}
-% This is the default setting with two grids as described previously.
-% The following setups one grid only. Its origin is the upper left
-% corner:
-% \begin{quote}
-% |\pagegridsetup{top-left}|
-% \end{quote}
-%
-% \subsubsection{Grid unit}
-%
-% \begin{description}
-% \item[\xoption{step}] This option takes a length and
-% setups the unit for the grid. The page width and page height
-% should be multiples of this unit.
-% Currently the default is \texttt{1mm}. But this might change
-% later by a heuristic based on the paper size.
-% \end{description}
-%
-% \subsubsection{Color options}
-%
-% The basic grid lines are drawn as ultra thin help lines and is only
-% drawn for the first grid.
-% Each tenth and fiftyth line of the basic net is drawn thicker in a special
-% color for the two grids.
-% \begin{description}
-% \item[\xoption{firstcolor}:] Color for the thicker lines and the arrows
-% of the first grid. Default value is \texttt{red}.
-% \item[\xoption{secondcolor}:] Color for the thicker lines and the arrows
-% of the second grid. Default value is \texttt{blue}.
-% \end{description}
-% Use a color specification that package \xpackage{tikz} understands.
-% (The grid is drawn with \xpackage{pgf}/\xpackage{tikz}.)
-%
-% \subsubsection{Arrow options}
-%
-% Arrows are put at the origin at the grid to show the grid start
-% and the direction of the grid.
-% \begin{description}
-% \item[\xoption{arrows}:] This boolean option turns the arrows on or off.
-% As default arrows are enabled.
-% \item[\xoption{arrowlength}:] The length given as value is the
-% length of the edge of a square at the origin within the
-% arrow is put as diagonal. Default is 10 times the grid unit (10\,mm).
-% The real arrow length is this length multiplied by $\sqrt2$.
-% \end{description}
-%
-% \subsubsection{Miscellaneous options}
-%
-% \begin{description}
-% \item[\xoption{double}:] The output page is doubled, one without page
-% grid and the other with page grid. Possible values are shown in the
-% following table:
-% \begin{quote}
-% \begin{tabular}{ll}
-% Option & Meaning\\
-% \hline
-% |false| & Turns option off.\\
-% |first| & Grid page comes first.\\
-% |last| & Grid page comes after the page without grid.\\
-% |true| & Same as |last|.\\
-% \meta{no value} & Same as |true|.\\
-% \end{tabular}
-% \end{quote}
-% \textbf{Note:}
-% The double output of the page has side effects.
-% All whatits are executed twice, for example: file writing
-% and anchor setting. Some unwanted actions are catched such
-% as multiple \cs{label} definitions, duplicate entries in
-% the table of contents. For bookmarks, use package \xpackage{bookmarks}.
-% \item[\xoption{foreground}:] Boolean option, default is \texttt{false}.
-% Sometimes there might be elements on the page (e.g. large images)
-% that hide the grid. Then option \xoption{foreground} puts the grids
-% over the current output page.
-% \end{description}
-%
-% \StopEventually{
-% }
-%
-% \section{Implementation}
-% \begin{macrocode}
-%<*package>
-% \end{macrocode}
-% Reload check, especially if the package is not used with \LaTeX.
-% \begin{macrocode}
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode35=6 % #
- \catcode39=12 % '
- \catcode44=12 % ,
- \catcode45=12 % -
- \catcode46=12 % .
- \catcode58=12 % :
- \catcode64=11 % @
- \catcode123=1 % {
- \catcode125=2 % }
- \expandafter\let\expandafter\x\csname ver at pagegrid.sty\endcsname
- \ifx\x\relax % plain-TeX, first loading
- \else
- \def\empty{}%
- \ifx\x\empty % LaTeX, first loading,
- % variable is initialized, but \ProvidesPackage not yet seen
- \else
- \expandafter\ifx\csname PackageInfo\endcsname\relax
- \def\x#1#2{%
- \immediate\write-1{Package #1 Info: #2.}%
- }%
- \else
- \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
- \fi
- \x{pagegrid}{The package is already loaded}%
- \aftergroup\endinput
- \fi
- \fi
-\endgroup%
-% \end{macrocode}
-% Package identification:
-% \begin{macrocode}
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode35=6 % #
- \catcode39=12 % '
- \catcode40=12 % (
- \catcode41=12 % )
- \catcode44=12 % ,
- \catcode45=12 % -
- \catcode46=12 % .
- \catcode47=12 % /
- \catcode58=12 % :
- \catcode64=11 % @
- \catcode91=12 % [
- \catcode93=12 % ]
- \catcode123=1 % {
- \catcode125=2 % }
- \expandafter\ifx\csname ProvidesPackage\endcsname\relax
- \def\x#1#2#3[#4]{\endgroup
- \immediate\write-1{Package: #3 #4}%
- \xdef#1{#4}%
- }%
- \else
- \def\x#1#2[#3]{\endgroup
- #2[{#3}]%
- \ifx#1\@undefined
- \xdef#1{#3}%
- \fi
- \ifx#1\relax
- \xdef#1{#3}%
- \fi
- }%
- \fi
-\expandafter\x\csname ver at pagegrid.sty\endcsname
-\ProvidesPackage{pagegrid}%
- [2016/05/16 v1.5 Print page grid in background (HO)]%
-% \end{macrocode}
-%
-% \begin{macrocode}
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode123=1 % {
- \catcode125=2 % }
- \catcode64=11 % @
- \def\x{\endgroup
- \expandafter\edef\csname pagegrid at AtEnd\endcsname{%
- \endlinechar=\the\endlinechar\relax
- \catcode13=\the\catcode13\relax
- \catcode32=\the\catcode32\relax
- \catcode35=\the\catcode35\relax
- \catcode61=\the\catcode61\relax
- \catcode64=\the\catcode64\relax
- \catcode123=\the\catcode123\relax
- \catcode125=\the\catcode125\relax
- }%
- }%
-\x\catcode61\catcode48\catcode32=10\relax%
-\catcode13=5 % ^^M
-\endlinechar=13 %
-\catcode35=6 % #
-\catcode64=11 % @
-\catcode123=1 % {
-\catcode125=2 % }
-\def\TMP at EnsureCode#1#2{%
- \edef\pagegrid at AtEnd{%
- \pagegrid at AtEnd
- \catcode#1=\the\catcode#1\relax
- }%
- \catcode#1=#2\relax
-}
-\TMP at EnsureCode{9}{10}% (tab)
-\TMP at EnsureCode{10}{12}% ^^J
-\TMP at EnsureCode{33}{12}% !
-\TMP at EnsureCode{34}{12}% "
-\TMP at EnsureCode{36}{3}% $
-\TMP at EnsureCode{38}{4}% &
-\TMP at EnsureCode{39}{12}% '
-\TMP at EnsureCode{40}{12}% (
-\TMP at EnsureCode{41}{12}% )
-\TMP at EnsureCode{42}{12}% *
-\TMP at EnsureCode{43}{12}% +
-\TMP at EnsureCode{44}{12}% ,
-\TMP at EnsureCode{45}{12}% -
-\TMP at EnsureCode{46}{12}% .
-\TMP at EnsureCode{47}{12}% /
-\TMP at EnsureCode{58}{12}% :
-\TMP at EnsureCode{59}{12}% ;
-\TMP at EnsureCode{60}{12}% <
-\TMP at EnsureCode{62}{12}% >
-\TMP at EnsureCode{63}{12}% ?
-\TMP at EnsureCode{91}{12}% [
-\TMP at EnsureCode{93}{12}% ]
-\TMP at EnsureCode{94}{7}% ^ (superscript)
-\TMP at EnsureCode{95}{8}% _ (subscript)
-\TMP at EnsureCode{96}{12}% `
-\TMP at EnsureCode{124}{12}% |
-\edef\pagegrid at AtEnd{\pagegrid at AtEnd\noexpand\endinput}
-% \end{macrocode}
-%
-% \begin{macrocode}
-\RequirePackage{tikz}
-\RequirePackage{atbegshi}[2009/12/02]
-\RequirePackage{kvoptions}[2009/07/17]
-% \end{macrocode}
-% \begin{macrocode}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname stockwidth\endcsname\relax
- \def\pagegrid at width{\paperwidth}%
- \def\pagegrid at height{\paperheight}%
-\else
- \def\pagegrid at width{\stockwidth}%
- \def\pagegrid at height{\stockheight}%
-\fi
-% \end{macrocode}
-%
-% \begin{macrocode}
-\SetupKeyvalOptions{%
- family=pagegrid,%
- prefix=pagegrid@,%
-}
-\def\pagegrid at init{%
- \let\pagegrid at origin@a\@empty
- \let\pagegrid at origin@b\@empty
- \let\pagegrid at init\relax
-}
-\let\pagegrid@@init\pagegrid at init
-\def\pagegrid at origin@a{bl}
-\def\pagegrid at origin@b{tr}
-\def\pagegrid at SetOrigin#1{%
- \pagegrid at init
- \ifx\pagegrid at origin@a\@empty
- \def\pagegrid at origin@a{#1}%
- \else
- \ifx\pagegrid at origin@b\@empty
- \else
- \let\pagegrid at origin@a\pagegrid at origin@b
- \fi
- \def\pagegrid at origin@b{#1}%
- \fi
-}
-\def\pagegrid at temp#1{%
- \DeclareVoidOption{#1}{\pagegrid at SetOrigin{#1}}%
- \@namedef{pagegrid at N@#1}{#1}%
-}
-\pagegrid at temp{bl}
-\pagegrid at temp{br}
-\pagegrid at temp{tl}
-\pagegrid at temp{tr}
-\def\pagegrid at temp#1#2{%
- \DeclareVoidOption{#2}{\pagegrid at SetOrigin{#1}}%
-}%
-\pagegrid at temp{bl}{lb}
-\pagegrid at temp{br}{rb}
-\pagegrid at temp{tl}{lt}
-\pagegrid at temp{tr}{rt}
-\pagegrid at temp{bl}{bottom-left}
-\pagegrid at temp{br}{bottom-right}
-\pagegrid at temp{tl}{top-left}
-\pagegrid at temp{tr}{top-right}
-\pagegrid at temp{bl}{left-bottom}
-\pagegrid at temp{br}{right-bottom}
-\pagegrid at temp{tl}{left-top}
-\pagegrid at temp{tr}{right-top}
-% \end{macrocode}
-% \begin{macrocode}
-\DeclareBoolOption[true]{enable}
-\DeclareComplementaryOption{disable}{enable}
-% \end{macrocode}
-% \begin{macrocode}
-\DeclareBoolOption{foreground}
-% \end{macrocode}
-% \begin{macrocode}
-\newlength{\pagegrid at step}
-\define at key{pagegrid}{step}{%
- \setlength{\pagegrid at step}{#1}%
-}
-% \end{macrocode}
-% \begin{macrocode}
-\DeclareStringOption[red]{firstcolor}
-\DeclareStringOption[blue]{secondcolor}
-% \end{macrocode}
-% \begin{macrocode}
-\DeclareBoolOption[true]{arrows}
-\newlength\pagegrid at arrowlength
-\pagegrid at arrowlength=\z@
-\define at key{pagegrid}{arrowlength}{%
- \setlength{\pagegrid at arrowlength}{#1}%
-}
-% \end{macrocode}
-% \begin{macrocode}
-\define at key{pagegrid}{double}[true]{%
- \@ifundefined{pagegrid at double@#1}{%
- \PackageWarning{pagegrid}{%
- Unsupported value `#1' for option `double'.\MessageBreak
- Known values are:\MessageBreak
- `false', `first', `last', `true'.\MessageBreak
- Now `false' is used%
- }%
- \chardef\pagegrid at double\z@
- }{%
- \chardef\pagegrid at double\csname pagegrid at double@#1\endcsname\relax
- }%
-}
-\@namedef{pagegrid at double@false}{0}
-\@namedef{pagegrid at double@first}{1}
-\@namedef{pagegrid at double@last}{2}
-\@namedef{pagegrid at double@true}{2}
-\chardef\pagegrid at double\z@
-% \end{macrocode}
-% \begin{macrocode}
-\newcommand*{\pagegridsetup}{%
- \let\pagegrid at init\pagegrid@@init
- \setkeys{pagegrid}%
-}
-% \end{macrocode}
-% \begin{macrocode}
-\pagegridsetup{%
- step=1mm%
-}
-\InputIfFileExists{pagegrid.cfg}{}%
-\ProcessKeyvalOptions*\relax
-\AtBeginDocument{%
- \ifdim\pagegrid at arrowlength>\z@
- \else
- \pagegrid at arrowlength=10\pagegrid at step
- \fi
-}
-% \end{macrocode}
-%
-% \begin{macrocode}
-\def\pagegridShipoutDoubleBegin{%
- \begingroup
- \let\newlabel\@gobbletwo
- \let\zref at newlabel\@gobbletwo
- \let\@writefile\@gobbletwo
- \let\select at language\@gobble
-}
-\def\pagegridShipoutDoubleEnd{%
- \endgroup
-}
-\def\pagegrid at WriteDouble#1#2{%
- \immediate\write#1{%
- \@backslashchar csname %
- pagegridShipoutDouble#2%
- \@backslashchar endcsname%
- }%
-}
-\def\pagegrid at ShipoutDouble#1{%
- \begingroup
- \if at filesw
- \pagegrid at WriteDouble\@mainaux{Begin}%
- \ifx\@auxout\@partaux
- \pagegrid at WriteDouble\@partaux{Begin}%
- \def\pagegrid at temp{%
- \pagegrid at WriteDouble\@mainaux{End}%
- \pagegrid at WriteDouble\@partaux{End}%
- }%
- \else
- \def\pagegrid at temp{%
- \pagegrid at WriteDouble\@mainaux{End}%
- }%
- \fi
- \else
- \def\pagegrid at temp{}%
- \fi
- \let\protect\noexpand
- \AtBeginShipoutOriginalShipout\copy#1\relax
- \pagegrid at temp
- \endgroup
-}
-% \end{macrocode}
-%
-% \begin{macrocode}
-\AtBeginShipout{%
- \ifdim\pagegrid at step>\z@
- \else
- \pagegrid at enablefalse
- \fi
- \ifpagegrid at enable
- \ifnum\pagegrid at double=\@ne
- \pagegrid at ShipoutDouble\AtBeginShipoutBox
- \else
- \ifnum\pagegrid at double=\tw@
- \@ifundefined{pagegrid at DoubleBox}{%
- \newbox\pagegrid at DoubleBox
- }{}%
- \setbox\pagegrid at DoubleBox=\copy\AtBeginShipoutBox
- \fi
- \fi
- \ifpagegrid at foreground
- \expandafter\AtBeginShipoutUpperLeftForeground
- \else
- \expandafter\AtBeginShipoutUpperLeft
- \fi
- {%
- \put(0,0){%
- \makebox(0,0)[lt]{%
- \begin{tikzpicture}[%
- bl/.style={},%
- br/.style={xshift=\pagegrid at width,xscale=-1},%
- tl/.style={yshift=\pagegrid at height,yscale=-1},%
- tr/.style={xshift=\pagegrid at width,%
- yshift=\pagegrid at height,scale=-1}%
- ]%
- \useasboundingbox
- (0mm,\pagegrid at height) rectangle (0mm,\pagegrid at height);%
- \draw[%
- \pagegrid at origin@a,%
- step=\pagegrid at step,%
- style=help lines,%
- ultra thin%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \ifx\pagegrid at origin@b\@empty
- \else
- \draw[%
- \pagegrid at origin@b,%
- step=10\pagegrid at step,%
- {\pagegrid at secondcolor},%
- very thin%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \fi
- \draw[%
- \pagegrid at origin@a,%
- step=10\pagegrid at step,%
- {\pagegrid at firstcolor},%
- very thin%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \ifx\pagegrid at origin@b\@empty
- \else
- \draw[%
- \pagegrid at origin@b,%
- step=50\pagegrid at step,%
- {\pagegrid at secondcolor},%
- thick%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \fi
- \draw[%
- \pagegrid at origin@a,%
- step=50\pagegrid at step,%
- {\pagegrid at firstcolor},%
- thick%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \ifpagegrid at arrows
- \ifx\pagegrid at origin@b\@empty
- \else
- \draw[%
- \pagegrid at origin@b,%
- {\pagegrid at secondcolor},%
- stroke,%
- line width=1pt,%
- line cap=round%
- ] (0mm,0mm) %
- -- (\pagegrid at arrowlength,\pagegrid at arrowlength) %
- (\pagegrid at arrowlength,.5\pagegrid at arrowlength) %
- -- (\pagegrid at arrowlength,\pagegrid at arrowlength) %
- -- (.5\pagegrid at arrowlength,\pagegrid at arrowlength);%
- \fi
- \draw[%
- \pagegrid at origin@a,%
- {\pagegrid at firstcolor},%
- stroke,%
- line width=1pt,%
- line cap=round%
- ] (0mm,0mm) %
- -- (\pagegrid at arrowlength,\pagegrid at arrowlength) %
- (\pagegrid at arrowlength,.5\pagegrid at arrowlength) %
- -- (\pagegrid at arrowlength,\pagegrid at arrowlength) %
- -- (.5\pagegrid at arrowlength,\pagegrid at arrowlength);%
- \fi
- \end{tikzpicture}%
- }%
- }%
- }%
- \ifnum\pagegrid at double=\tw@
- \pagegrid at ShipoutDouble\pagegrid at DoubleBox
- \fi
- \fi
-}
-% \end{macrocode}
-%
-% \begin{macrocode}
-\pagegrid at AtEnd%
-%</package>
-% \end{macrocode}
-%% \section{Installation}
-%
-% \subsection{Download}
-%
-% \paragraph{Package.} This package is available on
-% CTAN\footnote{\CTANpkg{pagegrid}}:
-% \begin{description}
-% \item[\CTAN{macros/latex/contrib/oberdiek/pagegrid.dtx}] The source file.
-% \item[\CTAN{macros/latex/contrib/oberdiek/pagegrid.pdf}] Documentation.
-% \end{description}
-%
-%
-% \paragraph{Bundle.} All the packages of the bundle `oberdiek'
-% are also available in a TDS compliant ZIP archive. There
-% the packages are already unpacked and the documentation files
-% are generated. The files and directories obey the TDS standard.
-% \begin{description}
-% \item[\CTANinstall{install/macros/latex/contrib/oberdiek.tds.zip}]
-% \end{description}
-% \emph{TDS} refers to the standard ``A Directory Structure
-% for \TeX\ Files'' (\CTANpkg{tds}). Directories
-% with \xfile{texmf} in their name are usually organized this way.
-%
-% \subsection{Bundle installation}
-%
-% \paragraph{Unpacking.} Unpack the \xfile{oberdiek.tds.zip} in the
-% TDS tree (also known as \xfile{texmf} tree) of your choice.
-% Example (linux):
-% \begin{quote}
-% |unzip oberdiek.tds.zip -d ~/texmf|
-% \end{quote}
-%
-% \subsection{Package installation}
-%
-% \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
-% \docstrip\ archive. The files are extracted by running the
-% \xfile{.dtx} through \plainTeX:
-% \begin{quote}
-% \verb|tex pagegrid.dtx|
-% \end{quote}
-%
-% \paragraph{TDS.} Now the different files must be moved into
-% the different directories in your installation TDS tree
-% (also known as \xfile{texmf} tree):
-% \begin{quote}
-% \def\t{^^A
-% \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
-% pagegrid.sty & tex/latex/oberdiek/pagegrid.sty\\
-% pagegrid.pdf & doc/latex/oberdiek/pagegrid.pdf\\
-% pagegrid.dtx & source/latex/oberdiek/pagegrid.dtx\\
-% \end{tabular}^^A
-% }^^A
-% \sbox0{\t}^^A
-% \ifdim\wd0>\linewidth
-% \begingroup
-% \advance\linewidth by\leftmargin
-% \advance\linewidth by\rightmargin
-% \edef\x{\endgroup
-% \def\noexpand\lw{\the\linewidth}^^A
-% }\x
-% \def\lwbox{^^A
-% \leavevmode
-% \hbox to \linewidth{^^A
-% \kern-\leftmargin\relax
-% \hss
-% \usebox0
-% \hss
-% \kern-\rightmargin\relax
-% }^^A
-% }^^A
-% \ifdim\wd0>\lw
-% \sbox0{\small\t}^^A
-% \ifdim\wd0>\linewidth
-% \ifdim\wd0>\lw
-% \sbox0{\footnotesize\t}^^A
-% \ifdim\wd0>\linewidth
-% \ifdim\wd0>\lw
-% \sbox0{\scriptsize\t}^^A
-% \ifdim\wd0>\linewidth
-% \ifdim\wd0>\lw
-% \sbox0{\tiny\t}^^A
-% \ifdim\wd0>\linewidth
-% \lwbox
-% \else
-% \usebox0
-% \fi
-% \else
-% \lwbox
-% \fi
-% \else
-% \usebox0
-% \fi
-% \else
-% \lwbox
-% \fi
-% \else
-% \usebox0
-% \fi
-% \else
-% \lwbox
-% \fi
-% \else
-% \usebox0
-% \fi
-% \else
-% \lwbox
-% \fi
-% \else
-% \usebox0
-% \fi
-% \end{quote}
-% If you have a \xfile{docstrip.cfg} that configures and enables \docstrip's
-% TDS installing feature, then some files can already be in the right
-% place, see the documentation of \docstrip.
-%
-% \subsection{Refresh file name databases}
-%
-% If your \TeX~distribution
-% (\TeX\,Live, \mikTeX, \dots) relies on file name databases, you must refresh
-% these. For example, \TeX\,Live\ users run \verb|texhash| or
-% \verb|mktexlsr|.
-%
-% \subsection{Some details for the interested}
-%
-% \paragraph{Unpacking with \LaTeX.}
-% The \xfile{.dtx} chooses its action depending on the format:
-% \begin{description}
-% \item[\plainTeX:] Run \docstrip\ and extract the files.
-% \item[\LaTeX:] Generate the documentation.
-% \end{description}
-% If you insist on using \LaTeX\ for \docstrip\ (really,
-% \docstrip\ does not need \LaTeX), then inform the autodetect routine
-% about your intention:
-% \begin{quote}
-% \verb|latex \let\install=y\input{pagegrid.dtx}|
-% \end{quote}
-% Do not forget to quote the argument according to the demands
-% of your shell.
-%
-% \paragraph{Generating the documentation.}
-% You can use both the \xfile{.dtx} or the \xfile{.drv} to generate
-% the documentation. The process can be configured by the
-% configuration file \xfile{ltxdoc.cfg}. For instance, put this
-% line into this file, if you want to have A4 as paper format:
-% \begin{quote}
-% \verb|\PassOptionsToClass{a4paper}{article}|
-% \end{quote}
-% An example follows how to generate the
-% documentation with pdf\LaTeX:
-% \begin{quote}
-%\begin{verbatim}
-%pdflatex pagegrid.dtx
-%makeindex -s gind.ist pagegrid.idx
-%pdflatex pagegrid.dtx
-%makeindex -s gind.ist pagegrid.idx
-%pdflatex pagegrid.dtx
-%\end{verbatim}
-% \end{quote}
-%
-% \section{Acknowledgement}
-%
-% \begin{description}
-% \item[Klaus Braune:]
-% He provided the idea and the first \xpackage{tikz} code.
-% \end{description}
-%
-% \begin{History}
-% \begin{Version}{2009/11/06 v1.0}
-% \item
-% The first version.
-% \end{Version}
-% \begin{Version}{2009/11/06 v1.1}
-% \item
-% Option \xoption{foreground} added.
-% \end{Version}
-% \begin{Version}{2009/12/02 v1.2}
-% \item
-% Color options, arrow options added.
-% \item
-% Names for origin options changed.
-% \end{Version}
-% \begin{Version}{2009/12/03 v1.3}
-% \item
-% Option \xoption{double} added.
-% \item
-% First CTAN release.
-% \end{Version}
-% \begin{Version}{2009/12/04 v1.4}
-% \item
-% Option \xoption{double}: Some unwanted side effects removed.
-% \end{Version}
-% \begin{Version}{2016/05/16 v1.5}
-% \item
-% Documentation updates.
-% \end{Version}
-% \end{History}
-%
-% \PrintIndex
-%
-% \Finale
-\endinput
Deleted: trunk/Master/texmf-dist/source/latex/oberdiek/pdfcol.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/oberdiek/pdfcol.dtx 2022-09-22 20:05:30 UTC (rev 64462)
+++ trunk/Master/texmf-dist/source/latex/oberdiek/pdfcol.dtx 2022-09-22 20:06:18 UTC (rev 64463)
@@ -1,939 +0,0 @@
-% \iffalse meta-comment
-%
-% File: pdfcol.dtx
-% Version: 2019/12/29 v1.6
-% Info: Handle new color stacks for pdfTeX
-%
-% Copyright (C)
-% 2007 Heiko Oberdiek
-% 2016-2019 Oberdiek Package Support Group
-% https://github.com/ho-tex/oberdiek/issues
-%
-% This work may be distributed and/or modified under the
-% conditions of the LaTeX Project Public License, either
-% version 1.3c of this license or (at your option) any later
-% version. This version of this license is in
-% https://www.latex-project.org/lppl/lppl-1-3c.txt
-% and the latest version of this license is in
-% https://www.latex-project.org/lppl.txt
-% and version 1.3 or later is part of all distributions of
-% LaTeX version 2005/12/01 or later.
-%
-% This work has the LPPL maintenance status "maintained".
-%
-% The Current Maintainers of this work are
-% Heiko Oberdiek and the Oberdiek Package Support Group
-% https://github.com/ho-tex/oberdiek/issues
-%
-% The Base Interpreter refers to any `TeX-Format',
-% because some files are installed in TDS:tex/generic//.
-%
-% This work consists of the main source file pdfcol.dtx
-% and the derived files
-% pdfcol.sty, pdfcol.pdf, pdfcol.ins, pdfcol.drv, pdfcol-test1.tex,
-% pdfcol-test2.tex, pdfcol-test3.tex, pdfcol-test4.tex.
-%
-% Distribution:
-% CTAN:macros/latex/contrib/oberdiek/pdfcol.dtx
-% CTAN:macros/latex/contrib/oberdiek/pdfcol.pdf
-%
-% Unpacking:
-% (a) If pdfcol.ins is present:
-% tex pdfcol.ins
-% (b) Without pdfcol.ins:
-% tex pdfcol.dtx
-% (c) If you insist on using LaTeX
-% latex \let\install=y\input{pdfcol.dtx}
-% (quote the arguments according to the demands of your shell)
-%
-% Documentation:
-% (a) If pdfcol.drv is present:
-% latex pdfcol.drv
-% (b) Without pdfcol.drv:
-% latex pdfcol.dtx; ...
-% The class ltxdoc loads the configuration file ltxdoc.cfg
-% if available. Here you can specify further options, e.g.
-% use A4 as paper format:
-% \PassOptionsToClass{a4paper}{article}
-%
-% Programm calls to get the documentation (example):
-% pdflatex pdfcol.dtx
-% makeindex -s gind.ist pdfcol.idx
-% pdflatex pdfcol.dtx
-% makeindex -s gind.ist pdfcol.idx
-% pdflatex pdfcol.dtx
-%
-% Installation:
-% TDS:tex/generic/oberdiek/pdfcol.sty
-% TDS:doc/latex/oberdiek/pdfcol.pdf
-% TDS:source/latex/oberdiek/pdfcol.dtx
-%
-%<*ignore>
-\begingroup
- \catcode123=1 %
- \catcode125=2 %
- \def\x{LaTeX2e}%
-\expandafter\endgroup
-\ifcase 0\ifx\install y1\fi\expandafter
- \ifx\csname processbatchFile\endcsname\relax\else1\fi
- \ifx\fmtname\x\else 1\fi\relax
-\else\csname fi\endcsname
-%</ignore>
-%<*install>
-\input docstrip.tex
-\Msg{************************************************************************}
-\Msg{* Installation}
-\Msg{* Package: pdfcol 2019/12/29 v1.6 Handle new color stacks for pdfTeX (HO)}
-\Msg{************************************************************************}
-
-\keepsilent
-\askforoverwritefalse
-
-\let\MetaPrefix\relax
-\preamble
-
-This is a generated file.
-
-Project: pdfcol
-Version: 2019/12/29 v1.6
-
-Copyright (C)
- 2007 Heiko Oberdiek
- 2016-2019 Oberdiek Package Support Group
-
-This work may be distributed and/or modified under the
-conditions of the LaTeX Project Public License, either
-version 1.3c of this license or (at your option) any later
-version. This version of this license is in
- https://www.latex-project.org/lppl/lppl-1-3c.txt
-and the latest version of this license is in
- https://www.latex-project.org/lppl.txt
-and version 1.3 or later is part of all distributions of
-LaTeX version 2005/12/01 or later.
-
-This work has the LPPL maintenance status "maintained".
-
-The Current Maintainers of this work are
-Heiko Oberdiek and the Oberdiek Package Support Group
-https://github.com/ho-tex/oberdiek/issues
-
-
-The Base Interpreter refers to any `TeX-Format',
-because some files are installed in TDS:tex/generic//.
-
-This work consists of the main source file pdfcol.dtx
-and the derived files
- pdfcol.sty, pdfcol.pdf, pdfcol.ins, pdfcol.drv, pdfcol-test1.tex,
- pdfcol-test2.tex, pdfcol-test3.tex, pdfcol-test4.tex.
-
-\endpreamble
-\let\MetaPrefix\DoubleperCent
-
-\generate{%
- \file{pdfcol.ins}{\from{pdfcol.dtx}{install}}%
- \file{pdfcol.drv}{\from{pdfcol.dtx}{driver}}%
- \usedir{tex/generic/oberdiek}%
- \file{pdfcol.sty}{\from{pdfcol.dtx}{package}}%
-% \usedir{doc/latex/oberdiek/test}%
-% \file{pdfcol-test1.tex}{\from{pdfcol.dtx}{test1}}%
-% \file{pdfcol-test2.tex}{\from{pdfcol.dtx}{test2}}%
-% \file{pdfcol-test3.tex}{\from{pdfcol.dtx}{test3}}%
-% \file{pdfcol-test4.tex}{\from{pdfcol.dtx}{test4}}%
-}
-
-\catcode32=13\relax% active space
-\let =\space%
-\Msg{************************************************************************}
-\Msg{*}
-\Msg{* To finish the installation you have to move the following}
-\Msg{* file into a directory searched by TeX:}
-\Msg{*}
-\Msg{* pdfcol.sty}
-\Msg{*}
-\Msg{* To produce the documentation run the file `pdfcol.drv'}
-\Msg{* through LaTeX.}
-\Msg{*}
-\Msg{* Happy TeXing!}
-\Msg{*}
-\Msg{************************************************************************}
-
-\endbatchfile
-%</install>
-%<*ignore>
-\fi
-%</ignore>
-%<*driver>
-\NeedsTeXFormat{LaTeX2e}
-\ProvidesFile{pdfcol.drv}%
- [2019/12/29 v1.6 Handle new color stacks for pdfTeX (HO)]%
-\documentclass{ltxdoc}
-\usepackage{holtxdoc}[2011/11/22]
-\begin{document}
- \DocInput{pdfcol.dtx}%
-\end{document}
-%</driver>
-% \fi
-%
-%
-%
-% \GetFileInfo{pdfcol.drv}
-%
-% \title{The \xpackage{pdfcol} package}
-% \date{2019/12/29 v1.6}
-% \author{Heiko Oberdiek\thanks
-% {Please report any issues at \url{https://github.com/ho-tex/oberdiek/issues}}}
-%
-% \maketitle
-%
-% \begin{abstract}
-% Since version 1.40 \pdfTeX\ supports color stacks.
-% The driver file \xfile{pdftex.def} for package \xpackage{color}
-% defines and uses a main color stack since version v0.04b.
-% Package \xpackage{pdfcol} is intended for package writers.
-% It defines macros for setting and maintaining new color stacks.
-% \end{abstract}
-%
-% \tableofcontents
-%
-% \section{Documentation}
-%
-% Version 1.40 of \pdfTeX\ adds new primitives \cs{pdfcolorstackinit}
-% and \cs{pdfcolorstack}. Now color stacks can be defined and used.
-% A main color stack is maintained by the driver file \xfile{pdftex.def}
-% similar to dvips or dvipdfm. However the number of color stacks
-% is not limited to one in \pdfTeX. Thus further color problems
-% can now be solved, such as footnotes across pages or text
-% that is set in parallel columns (e.g. packages \xpackage{parallel}
-% or \xpackage{parcolumn}). Unlike the main color stack,
-% the support by additional color stacks cannot be done in
-% a transparent manner.
-%
-% This package \xpackage{pdfcol} provides an easier interface to
-% additional color stacks without the need to use the
-% low level primitives.
-%
-% \subsection{Requirements}
-% \label{sec:req}
-%
-% \begin{itemize}
-% \item
-% \pdfTeX\ 1.40 or greater.
-% \item
-% \pdfTeX in PDF mode. (I don't know a DVI driver that
-% support several color stacks.)
-% \item
-% \xfile{pdftex.def} 2007/01/02 v0.04b.
-% \end{itemize}
-% Package \xpackage{pdfcol} checks the requirements and
-% sets switch \cs{ifpdfcolAvailable} accordingly.
-%
-% \subsection{Interface}
-%
-% \begin{declcs}{ifpdfcolAvailable}
-% \end{declcs}
-% If the requirements of section \ref{sec:req} are met the
-% switch \cs{ifpdfcolAvailable} behaves as \cs{iftrue}.
-% Otherwise the other interface macros in this section will
-% be disabled with a message. Also the first use of such a
-% macro will print a message. The messages are print to
-% the \xext{log} file only if \pdfTeX\ is not used in PDF mode.
-%
-% \begin{declcs}{pdfcolErrorNoStacks}
-% \end{declcs}
-% The first call of \cs{pdfcolErrorNoStacks} prints an error
-% message, if color stacks are not available.
-%
-% \begin{declcs}{pdfcolInitStack} \M{name}
-% \end{declcs}
-% A new color stack is initialized by \cs{pdfcolInitStack}.
-% The \meta{name} is used for indentifying the stack. It usually
-% consists of letters and digits. (The name must survive a \cs{csname}.)
-%
-% The intension of the macro is the definition of an additional
-% color stack. Thus the stack is not page bounded like the
-% main color stack. Black (\texttt{0 g 0 G}) is used as initial
-% color value. And colors are written with modifier \texttt{direct}
-% that means without setting the current transfer matrix and changing
-% the current point (see documentation of \pdfTeX\ for
-% |\pdfliteral direct{...}|).
-%
-% \begin{declcs}{pdfcolIfStackExists} \M{name} \M{then} \M{else}
-% \end{declcs}
-% Macro \cs{pdfcolIfStackExists} checks whether color stack \meta{name}
-% exists. In case of success argument \meta{then} is executed
-% and \meta{else} otherwise.
-%
-% \begin{declcs}{pdfcolSwitchStack} \M{name}
-% \end{declcs}
-% Macro \cs{pdfcolSwitchStack} switches the color stack. The color macros
-% of package \xpackage{color} (or \xpackage{xcolor}) now uses the
-% new color stack with name \meta{name}.
-%
-% \begin{declcs}{pdfcolSetCurrentColor}
-% \end{declcs}
-% Macro \cs{pdfcolSetCurrentColor} replaces the topmost
-% entry of the stack by the current color (\cs{current at color}).
-%
-% \begin{declcs}{pdfcolSetCurrent} \M{name}
-% \end{declcs}
-% Macro \cs{pdfcolSetCurrent} sets the color that is read in
-% the top-most entry of color stack \meta{name}. If \meta{name}
-% is empty, the default color stack is used.
-%
-% \StopEventually{
-% }
-%
-% \section{Implementation}
-%
-% \begin{macrocode}
-%<*package>
-% \end{macrocode}
-%
-% \subsection{Reload check and package identification}
-% Reload check, especially if the package is not used with \LaTeX.
-% \begin{macrocode}
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode35=6 % #
- \catcode39=12 % '
- \catcode44=12 % ,
- \catcode45=12 % -
- \catcode46=12 % .
- \catcode58=12 % :
- \catcode64=11 % @
- \catcode123=1 % {
- \catcode125=2 % }
- \expandafter\let\expandafter\x\csname ver at pdfcol.sty\endcsname
- \ifx\x\relax % plain-TeX, first loading
- \else
- \def\empty{}%
- \ifx\x\empty % LaTeX, first loading,
- % variable is initialized, but \ProvidesPackage not yet seen
- \else
- \expandafter\ifx\csname PackageInfo\endcsname\relax
- \def\x#1#2{%
- \immediate\write-1{Package #1 Info: #2.}%
- }%
- \else
- \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
- \fi
- \x{pdfcol}{The package is already loaded}%
- \aftergroup\endinput
- \fi
- \fi
-\endgroup%
-% \end{macrocode}
-% Package identification:
-% \begin{macrocode}
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode35=6 % #
- \catcode39=12 % '
- \catcode40=12 % (
- \catcode41=12 % )
- \catcode44=12 % ,
- \catcode45=12 % -
- \catcode46=12 % .
- \catcode47=12 % /
- \catcode58=12 % :
- \catcode64=11 % @
- \catcode91=12 % [
- \catcode93=12 % ]
- \catcode123=1 % {
- \catcode125=2 % }
- \expandafter\ifx\csname ProvidesPackage\endcsname\relax
- \def\x#1#2#3[#4]{\endgroup
- \immediate\write-1{Package: #3 #4}%
- \xdef#1{#4}%
- }%
- \else
- \def\x#1#2[#3]{\endgroup
- #2[{#3}]%
- \ifx#1\@undefined
- \xdef#1{#3}%
- \fi
- \ifx#1\relax
- \xdef#1{#3}%
- \fi
- }%
- \fi
-\expandafter\x\csname ver at pdfcol.sty\endcsname
-\ProvidesPackage{pdfcol}%
- [2019/12/29 v1.6 Handle new color stacks for pdfTeX (HO)]%
-% \end{macrocode}
-%
-% \subsection{Catcodes}
-%
-% \begin{macrocode}
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode123=1 % {
- \catcode125=2 % }
- \catcode64=11 % @
- \def\x{\endgroup
- \expandafter\edef\csname PDFCOL at AtEnd\endcsname{%
- \endlinechar=\the\endlinechar\relax
- \catcode13=\the\catcode13\relax
- \catcode32=\the\catcode32\relax
- \catcode35=\the\catcode35\relax
- \catcode61=\the\catcode61\relax
- \catcode64=\the\catcode64\relax
- \catcode123=\the\catcode123\relax
- \catcode125=\the\catcode125\relax
- }%
- }%
-\x\catcode61\catcode48\catcode32=10\relax%
-\catcode13=5 % ^^M
-\endlinechar=13 %
-\catcode35=6 % #
-\catcode64=11 % @
-\catcode123=1 % {
-\catcode125=2 % }
-\def\TMP at EnsureCode#1#2{%
- \edef\PDFCOL at AtEnd{%
- \PDFCOL at AtEnd
- \catcode#1=\the\catcode#1\relax
- }%
- \catcode#1=#2\relax
-}
-\TMP at EnsureCode{39}{12}% '
-\TMP at EnsureCode{40}{12}% (
-\TMP at EnsureCode{41}{12}% )
-\TMP at EnsureCode{43}{12}% +
-\TMP at EnsureCode{44}{12}% ,
-\TMP at EnsureCode{46}{12}% .
-\TMP at EnsureCode{47}{12}% /
-\TMP at EnsureCode{91}{12}% [
-\TMP at EnsureCode{93}{12}% ]
-\TMP at EnsureCode{96}{12}% `
-\edef\PDFCOL at AtEnd{\PDFCOL at AtEnd\noexpand\endinput}
-% \end{macrocode}
-%
-% \subsection{Check requirements}
-%
-% \begin{macro}{\PDFCOL at RequirePackage}
-% \begin{macrocode}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname RequirePackage\endcsname\relax
- \def\PDFCOL at RequirePackage#1[#2]{\input #1.sty\relax}%
-\else
- \def\PDFCOL at RequirePackage#1[#2]{%
- \RequirePackage{#1}[{#2}]%
- }%
-\fi
-% \end{macrocode}
-% \end{macro}
-%
-% LuaTeX Compatability
-% \begin{macrocode}
-\ifx\pdfextension\@undefined\else
- \def\pdfcolorstackinit {\pdffeedback colorstackinit}
- \protected\def\pdfcolorstack {\pdfextension colorstack}
-\fi
-% \end{macrocode}
-%
-% \begin{macrocode}
-\PDFCOL at RequirePackage{ltxcmds}[2010/03/01]
-% \end{macrocode}
-%
-% \begin{macro}{ifpdfcolAvailable}
-% \begin{macrocode}
-\ltx at newif\ifpdfcolAvailable
-\pdfcolAvailabletrue
-% \end{macrocode}
-% \end{macro}
-%
-% \subsubsection{Check package \xpackage{luacolor}}
-%
-% \begin{macrocode}
-\ltx at newif\ifPDFCOL at luacolor
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname ver at luacolor.sty\endcsname\relax
- \PDFCOL at luacolorfalse
-\else
- \PDFCOL at luacolortrue
-\fi
-% \end{macrocode}
-%
-% \subsubsection{Check PDF mode}
-%
-% \begin{macrocode}
-\PDFCOL at RequirePackage{infwarerr}[2007/09/09]
-\PDFCOL at RequirePackage{iftex}[2019/11/07]
-\ifcase\ifpdf\ifPDFCOL at luacolor 1\fi\else 1\fi0 %
- \def\PDFCOL at Message{%
- \@PackageWarningNoLine{pdfcol}%
- }%
-\else
- \pdfcolAvailablefalse
- \def\PDFCOL at Message{%
- \@PackageInfoNoLine{pdfcol}%
- }%
- \PDFCOL at Message{%
- Interface disabled because of %
- \ifPDFCOL at luacolor
- package `luacolor'%
- \else
- missing PDF mode of pdfTeX%
- \fi
- }%
-\fi
-% \end{macrocode}
-%
-% \subsubsection{Check version of \pdfTeX}
-%
-% \begin{macrocode}
-\ifpdfcolAvailable
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname pdfcolorstack\endcsname\relax
- \pdfcolAvailablefalse
- \PDFCOL at Message{%
- Interface disabled because of too old pdfTeX.\MessageBreak
- Required is version 1.40+ for \string\pdfcolorstack
- }%
- \fi
-\fi
-\ifpdfcolAvailable
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname pdfcolorstack\endcsname\relax
- \pdfcolAvailablefalse
- \PDFCOL at Message{%
- Interface disabled because of too old pdfTeX.\MessageBreak
- Required is version 1.40+ for \string\pdfcolorstackinit
- }%
- \fi
-\fi
-% \end{macrocode}
-%
-% \subsubsection{Check \xfile{pdftex.def}}
-%
-% \begin{macrocode}
-\ifpdfcolAvailable
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname @pdfcolorstack\endcsname\relax
-% \end{macrocode}
-% Try to load package color if it is not yet loaded (\LaTeX\ case).
-% \begin{macrocode}
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname ver at color.sty\endcsname\relax
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname documentclass\endcsname\relax
- \else
- \RequirePackage[pdftex]{color}\relax
- \fi
- \fi
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname @pdfcolorstack\endcsname\relax
- \pdfcolAvailablefalse
- \PDFCOL at Message{%
- Interface disabled because `pdftex.def'\MessageBreak
- is not loaded or it is too old.\MessageBreak
- Required is version 0.04b or greater%
- }%
- \fi
- \fi
-\fi
-% \end{macrocode}
-%
-% \begin{macrocode}
-\let\pdfcolAvailabletrue\relax
-\let\pdfcolAvailablefalse\relax
-% \end{macrocode}
-%
-% \subsection{Enabled interface macros}
-%
-% \begin{macrocode}
-\ifpdfcolAvailable
-% \end{macrocode}
-%
-% \begin{macro}{\pdfcolErrorNoStacks}
-% \begin{macrocode}
- \let\pdfcolErrorNoStacks\relax
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcol at Value}
-% \begin{macrocode}
- \expandafter\ifx\csname pdfcol at Value\endcsname\relax
- \def\pdfcol at Value{0 g 0 G}%
- \fi
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcol at LiteralModifier}
-% \begin{macrocode}
- \expandafter\ifx\csname pdfcol at LiteralModifier\endcsname\relax
- \def\pdfcol at LiteralModifier{direct}%
- \fi
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolInitStack}
-% \begin{macrocode}
- \def\pdfcolInitStack#1{%
- \expandafter\ifx\csname pdfcol at Stack@#1\endcsname\relax
- \global\expandafter\chardef\csname pdfcol at Stack@#1\endcsname=%
- \pdfcolorstackinit\pdfcol at LiteralModifier{\pdfcol at Value}%
- \relax
- \@PackageInfo{pdfcol}{%
- New color stack `#1' = \number\csname pdfcol at Stack@#1\endcsname
- }%
- \else
- \@PackageError{pdfcol}{%
- Stack `#1' is already defined%
- }\@ehc
- \fi
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolIfStackExists}
-% \begin{macrocode}
- \def\pdfcolIfStackExists#1{%
- \expandafter\ifx\csname pdfcol at Stack@#1\endcsname\relax
- \expandafter\@secondoftwo
- \else
- \expandafter\@firstoftwo
- \fi
- }%
-% \end{macrocode}
-% \end{macro}
-% \begin{macro}{\@firstoftwo}
-% \begin{macrocode}
- \expandafter\ifx\csname @firstoftwo\endcsname\relax
- \long\def\@firstoftwo#1#2{#1}%
- \fi
-% \end{macrocode}
-% \end{macro}
-% \begin{macro}{\@secondoftwo}
-% \begin{macrocode}
- \expandafter\ifx\csname @secondoftwo\endcsname\relax
- \long\def\@secondoftwo#1#2{#2}%
- \fi
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolSwitchStack}
-% \begin{macrocode}
- \def\pdfcolSwitchStack#1{%
- \pdfcolIfStackExists{#1}{%
- \expandafter\let\expandafter\@pdfcolorstack
- \csname pdfcol at Stack@#1\endcsname
- }{%
- \pdfcol at ErrorNoStack{#1}%
- }%
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolSetCurrentColor}
-% \begin{macrocode}
- \def\pdfcolSetCurrentColor{%
- \pdfcolorstack\@pdfcolorstack set{\current at color}%
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolSetCurrent}
-% \begin{macrocode}
- \def\pdfcolSetCurrent#1{%
- \ifx\\#1\\%
- \pdfcolorstack\@pdfcolorstack current\relax
- \else
- \pdfcolIfStackExists{#1}{%
- \pdfcolorstack\csname pdfcol at Stack@#1\endcsname current\relax
- }{%
- \pdfcol at ErrorNoStack{#1}%
- }%
- \fi
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcol at ErrorNoStack}
-% \begin{macrocode}
- \def\pdfcol at ErrorNoStack#1{%
- \@PackageError{pdfcol}{Stack `#1' does not exists}\@ehc
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \subsection{Disabled interface macros}
-%
-% \begin{macrocode}
-\else
-% \end{macrocode}
-%
-% \begin{macro}{\pdfcolErrorNoStacks}
-% \begin{macrocode}
- \def\pdfcolErrorNoStacks{%
- \@PackageError{pdfcol}{%
- Color stacks are not available%
- }{%
- Update pdfTeX (1.40) and `pdftex.def' (0.04b) %
- if necessary.\MessageBreak
- Ensure that `pdftex.def' is loaded %
- (package `color' or `xcolor').\MessageBreak
- Further messages can be found in TeX's %
- protocol file `\jobname.log'.\MessageBreak
- \MessageBreak
- \@ehc
- }%
- \global\let\pdfcolErrorNoStacks\relax
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\PDFCOL at Disabled}
-% \begin{macrocode}
- \def\PDFCOL at Disabled{%
- \PDFCOL at Message{%
- pdfTeX's color stacks are not available%
- }%
- \global\let\PDFCOL at Disabled\relax
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolInitStack}
-% \begin{macrocode}
- \def\pdfcolInitStack#1{%
- \PDFCOL at Disabled
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolIfStackExists}
-% \begin{macrocode}
- \long\def\pdfcolIfStackExists#1#2#3{#3}%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolSwitchStack}
-% \begin{macrocode}
- \def\pdfcolSwitchStack#1{%
- \PDFCOL at Disabled
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolSetCurrentColor}
-% \begin{macrocode}
- \def\pdfcolSetCurrentColor{%
- \PDFCOL at Disabled
- }%
-% \end{macrocode}
-% \end{macro}
-%
-% \begin{macro}{\pdfcolSetCurrent}
-% \begin{macrocode}
- \def\pdfcolSetCurrent#1{%
- \PDFCOL at Disabled
- }%
-% \end{macrocode}
-% \end{macro}
-% \begin{macrocode}
-\fi
-% \end{macrocode}
-%
-% \begin{macrocode}
-\PDFCOL at AtEnd%
-%</package>
-% \end{macrocode}
-%% \section{Installation}
-%
-% \subsection{Download}
-%
-% \paragraph{Package.} This package is available on
-% CTAN\footnote{\CTANpkg{pdfcol}}:
-% \begin{description}
-% \item[\CTAN{macros/latex/contrib/oberdiek/pdfcol.dtx}] The source file.
-% \item[\CTAN{macros/latex/contrib/oberdiek/pdfcol.pdf}] Documentation.
-% \end{description}
-%
-%
-% \paragraph{Bundle.} All the packages of the bundle `oberdiek'
-% are also available in a TDS compliant ZIP archive. There
-% the packages are already unpacked and the documentation files
-% are generated. The files and directories obey the TDS standard.
-% \begin{description}
-% \item[\CTANinstall{install/macros/latex/contrib/oberdiek.tds.zip}]
-% \end{description}
-% \emph{TDS} refers to the standard ``A Directory Structure
-% for \TeX\ Files'' (\CTANpkg{tds}). Directories
-% with \xfile{texmf} in their name are usually organized this way.
-%
-% \subsection{Bundle installation}
-%
-% \paragraph{Unpacking.} Unpack the \xfile{oberdiek.tds.zip} in the
-% TDS tree (also known as \xfile{texmf} tree) of your choice.
-% Example (linux):
-% \begin{quote}
-% |unzip oberdiek.tds.zip -d ~/texmf|
-% \end{quote}
-%
-% \subsection{Package installation}
-%
-% \paragraph{Unpacking.} The \xfile{.dtx} file is a self-extracting
-% \docstrip\ archive. The files are extracted by running the
-% \xfile{.dtx} through \plainTeX:
-% \begin{quote}
-% \verb|tex pdfcol.dtx|
-% \end{quote}
-%
-% \paragraph{TDS.} Now the different files must be moved into
-% the different directories in your installation TDS tree
-% (also known as \xfile{texmf} tree):
-% \begin{quote}
-% \def\t{^^A
-% \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
-% pdfcol.sty & tex/generic/oberdiek/pdfcol.sty\\
-% pdfcol.pdf & doc/latex/oberdiek/pdfcol.pdf\\
-% pdfcol.dtx & source/latex/oberdiek/pdfcol.dtx\\
-% \end{tabular}^^A
-% }^^A
-% \sbox0{\t}^^A
-% \ifdim\wd0>\linewidth
-% \begingroup
-% \advance\linewidth by\leftmargin
-% \advance\linewidth by\rightmargin
-% \edef\x{\endgroup
-% \def\noexpand\lw{\the\linewidth}^^A
-% }\x
-% \def\lwbox{^^A
-% \leavevmode
-% \hbox to \linewidth{^^A
-% \kern-\leftmargin\relax
-% \hss
-% \usebox0
-% \hss
-% \kern-\rightmargin\relax
-% }^^A
-% }^^A
-% \ifdim\wd0>\lw
-% \sbox0{\small\t}^^A
-% \ifdim\wd0>\linewidth
-% \ifdim\wd0>\lw
-% \sbox0{\footnotesize\t}^^A
-% \ifdim\wd0>\linewidth
-% \ifdim\wd0>\lw
-% \sbox0{\scriptsize\t}^^A
-% \ifdim\wd0>\linewidth
-% \ifdim\wd0>\lw
-% \sbox0{\tiny\t}^^A
-% \ifdim\wd0>\linewidth
-% \lwbox
-% \else
-% \usebox0
-% \fi
-% \else
-% \lwbox
-% \fi
-% \else
-% \usebox0
-% \fi
-% \else
-% \lwbox
-% \fi
-% \else
-% \usebox0
-% \fi
-% \else
-% \lwbox
-% \fi
-% \else
-% \usebox0
-% \fi
-% \else
-% \lwbox
-% \fi
-% \else
-% \usebox0
-% \fi
-% \end{quote}
-% If you have a \xfile{docstrip.cfg} that configures and enables \docstrip's
-% TDS installing feature, then some files can already be in the right
-% place, see the documentation of \docstrip.
-%
-% \subsection{Refresh file name databases}
-%
-% If your \TeX~distribution
-% (\TeX\,Live, \mikTeX, \dots) relies on file name databases, you must refresh
-% these. For example, \TeX\,Live\ users run \verb|texhash| or
-% \verb|mktexlsr|.
-%
-% \subsection{Some details for the interested}
-%
-% \paragraph{Unpacking with \LaTeX.}
-% The \xfile{.dtx} chooses its action depending on the format:
-% \begin{description}
-% \item[\plainTeX:] Run \docstrip\ and extract the files.
-% \item[\LaTeX:] Generate the documentation.
-% \end{description}
-% If you insist on using \LaTeX\ for \docstrip\ (really,
-% \docstrip\ does not need \LaTeX), then inform the autodetect routine
-% about your intention:
-% \begin{quote}
-% \verb|latex \let\install=y\input{pdfcol.dtx}|
-% \end{quote}
-% Do not forget to quote the argument according to the demands
-% of your shell.
-%
-% \paragraph{Generating the documentation.}
-% You can use both the \xfile{.dtx} or the \xfile{.drv} to generate
-% the documentation. The process can be configured by the
-% configuration file \xfile{ltxdoc.cfg}. For instance, put this
-% line into this file, if you want to have A4 as paper format:
-% \begin{quote}
-% \verb|\PassOptionsToClass{a4paper}{article}|
-% \end{quote}
-% An example follows how to generate the
-% documentation with pdf\LaTeX:
-% \begin{quote}
-%\begin{verbatim}
-%pdflatex pdfcol.dtx
-%makeindex -s gind.ist pdfcol.idx
-%pdflatex pdfcol.dtx
-%makeindex -s gind.ist pdfcol.idx
-%pdflatex pdfcol.dtx
-%\end{verbatim}
-% \end{quote}
-%
-% \begin{History}
-% \begin{Version}{2007/09/09 v1.0}
-% \item
-% First version.
-% \end{Version}
-% \begin{Version}{2007/12/09 v1.1}
-% \item
-% \cs{pdfcolSetCurrentColor} added.
-% \end{Version}
-% \begin{Version}{2007/12/12 v1.2}
-% \item
-% Detection for package \xpackage{luacolor} added.
-% \end{Version}
-% \begin{Version}{2016/05/16 v1.3}
-% \item
-% Documentation updates.
-% \end{Version}
-% \begin{Version}{2016/05/17 v1.4}
-% \item
-% Use luatex85 package for new luatex compatibility
-% \end{Version}
-% \begin{Version}{2018/11/01 v1.5}
-% \item
-% Remove luatex85 dependency
-% \end{Version}
-% \begin{Version}{2019/12/29 v1.6}
-% \item
-% \xpackage{iftex} package.
-% \end{Version}
-% \end{History}
-%
-% \PrintIndex
-%
-% \Finale
-\endinput
Deleted: trunk/Master/texmf-dist/tex/generic/oberdiek/pdfcol.sty
===================================================================
--- trunk/Master/texmf-dist/tex/generic/oberdiek/pdfcol.sty 2022-09-22 20:05:30 UTC (rev 64462)
+++ trunk/Master/texmf-dist/tex/generic/oberdiek/pdfcol.sty 2022-09-22 20:06:18 UTC (rev 64463)
@@ -1,339 +0,0 @@
-%%
-%% This is file `pdfcol.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% pdfcol.dtx (with options: `package')
-%%
-%% This is a generated file.
-%%
-%% Project: pdfcol
-%% Version: 2019/12/29 v1.6
-%%
-%% Copyright (C)
-%% 2007 Heiko Oberdiek
-%% 2016-2019 Oberdiek Package Support Group
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% https://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% https://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% The Current Maintainers of this work are
-%% Heiko Oberdiek and the Oberdiek Package Support Group
-%% https://github.com/ho-tex/oberdiek/issues
-%%
-%%
-%% The Base Interpreter refers to any `TeX-Format',
-%% because some files are installed in TDS:tex/generic//.
-%%
-%% This work consists of the main source file pdfcol.dtx
-%% and the derived files
-%% pdfcol.sty, pdfcol.pdf, pdfcol.ins, pdfcol.drv, pdfcol-test1.tex,
-%% pdfcol-test2.tex, pdfcol-test3.tex, pdfcol-test4.tex.
-%%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode35=6 % #
- \catcode39=12 % '
- \catcode44=12 % ,
- \catcode45=12 % -
- \catcode46=12 % .
- \catcode58=12 % :
- \catcode64=11 % @
- \catcode123=1 % {
- \catcode125=2 % }
- \expandafter\let\expandafter\x\csname ver at pdfcol.sty\endcsname
- \ifx\x\relax % plain-TeX, first loading
- \else
- \def\empty{}%
- \ifx\x\empty % LaTeX, first loading,
- % variable is initialized, but \ProvidesPackage not yet seen
- \else
- \expandafter\ifx\csname PackageInfo\endcsname\relax
- \def\x#1#2{%
- \immediate\write-1{Package #1 Info: #2.}%
- }%
- \else
- \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
- \fi
- \x{pdfcol}{The package is already loaded}%
- \aftergroup\endinput
- \fi
- \fi
-\endgroup%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode35=6 % #
- \catcode39=12 % '
- \catcode40=12 % (
- \catcode41=12 % )
- \catcode44=12 % ,
- \catcode45=12 % -
- \catcode46=12 % .
- \catcode47=12 % /
- \catcode58=12 % :
- \catcode64=11 % @
- \catcode91=12 % [
- \catcode93=12 % ]
- \catcode123=1 % {
- \catcode125=2 % }
- \expandafter\ifx\csname ProvidesPackage\endcsname\relax
- \def\x#1#2#3[#4]{\endgroup
- \immediate\write-1{Package: #3 #4}%
- \xdef#1{#4}%
- }%
- \else
- \def\x#1#2[#3]{\endgroup
- #2[{#3}]%
- \ifx#1\@undefined
- \xdef#1{#3}%
- \fi
- \ifx#1\relax
- \xdef#1{#3}%
- \fi
- }%
- \fi
-\expandafter\x\csname ver at pdfcol.sty\endcsname
-\ProvidesPackage{pdfcol}%
- [2019/12/29 v1.6 Handle new color stacks for pdfTeX (HO)]%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode123=1 % {
- \catcode125=2 % }
- \catcode64=11 % @
- \def\x{\endgroup
- \expandafter\edef\csname PDFCOL at AtEnd\endcsname{%
- \endlinechar=\the\endlinechar\relax
- \catcode13=\the\catcode13\relax
- \catcode32=\the\catcode32\relax
- \catcode35=\the\catcode35\relax
- \catcode61=\the\catcode61\relax
- \catcode64=\the\catcode64\relax
- \catcode123=\the\catcode123\relax
- \catcode125=\the\catcode125\relax
- }%
- }%
-\x\catcode61\catcode48\catcode32=10\relax%
-\catcode13=5 % ^^M
-\endlinechar=13 %
-\catcode35=6 % #
-\catcode64=11 % @
-\catcode123=1 % {
-\catcode125=2 % }
-\def\TMP at EnsureCode#1#2{%
- \edef\PDFCOL at AtEnd{%
- \PDFCOL at AtEnd
- \catcode#1=\the\catcode#1\relax
- }%
- \catcode#1=#2\relax
-}
-\TMP at EnsureCode{39}{12}% '
-\TMP at EnsureCode{40}{12}% (
-\TMP at EnsureCode{41}{12}% )
-\TMP at EnsureCode{43}{12}% +
-\TMP at EnsureCode{44}{12}% ,
-\TMP at EnsureCode{46}{12}% .
-\TMP at EnsureCode{47}{12}% /
-\TMP at EnsureCode{91}{12}% [
-\TMP at EnsureCode{93}{12}% ]
-\TMP at EnsureCode{96}{12}% `
-\edef\PDFCOL at AtEnd{\PDFCOL at AtEnd\noexpand\endinput}
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname RequirePackage\endcsname\relax
- \def\PDFCOL at RequirePackage#1[#2]{\input #1.sty\relax}%
-\else
- \def\PDFCOL at RequirePackage#1[#2]{%
- \RequirePackage{#1}[{#2}]%
- }%
-\fi
-\ifx\pdfextension\@undefined\else
- \def\pdfcolorstackinit {\pdffeedback colorstackinit}
- \protected\def\pdfcolorstack {\pdfextension colorstack}
-\fi
-\PDFCOL at RequirePackage{ltxcmds}[2010/03/01]
-\ltx at newif\ifpdfcolAvailable
-\pdfcolAvailabletrue
-\ltx at newif\ifPDFCOL at luacolor
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname ver at luacolor.sty\endcsname\relax
- \PDFCOL at luacolorfalse
-\else
- \PDFCOL at luacolortrue
-\fi
-\PDFCOL at RequirePackage{infwarerr}[2007/09/09]
-\PDFCOL at RequirePackage{iftex}[2019/11/07]
-\ifcase\ifpdf\ifPDFCOL at luacolor 1\fi\else 1\fi0 %
- \def\PDFCOL at Message{%
- \@PackageWarningNoLine{pdfcol}%
- }%
-\else
- \pdfcolAvailablefalse
- \def\PDFCOL at Message{%
- \@PackageInfoNoLine{pdfcol}%
- }%
- \PDFCOL at Message{%
- Interface disabled because of %
- \ifPDFCOL at luacolor
- package `luacolor'%
- \else
- missing PDF mode of pdfTeX%
- \fi
- }%
-\fi
-\ifpdfcolAvailable
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname pdfcolorstack\endcsname\relax
- \pdfcolAvailablefalse
- \PDFCOL at Message{%
- Interface disabled because of too old pdfTeX.\MessageBreak
- Required is version 1.40+ for \string\pdfcolorstack
- }%
- \fi
-\fi
-\ifpdfcolAvailable
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname pdfcolorstack\endcsname\relax
- \pdfcolAvailablefalse
- \PDFCOL at Message{%
- Interface disabled because of too old pdfTeX.\MessageBreak
- Required is version 1.40+ for \string\pdfcolorstackinit
- }%
- \fi
-\fi
-\ifpdfcolAvailable
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname @pdfcolorstack\endcsname\relax
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname ver at color.sty\endcsname\relax
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname documentclass\endcsname\relax
- \else
- \RequirePackage[pdftex]{color}\relax
- \fi
- \fi
- \begingroup\expandafter\expandafter\expandafter\endgroup
- \expandafter\ifx\csname @pdfcolorstack\endcsname\relax
- \pdfcolAvailablefalse
- \PDFCOL at Message{%
- Interface disabled because `pdftex.def'\MessageBreak
- is not loaded or it is too old.\MessageBreak
- Required is version 0.04b or greater%
- }%
- \fi
- \fi
-\fi
-\let\pdfcolAvailabletrue\relax
-\let\pdfcolAvailablefalse\relax
-\ifpdfcolAvailable
- \let\pdfcolErrorNoStacks\relax
- \expandafter\ifx\csname pdfcol at Value\endcsname\relax
- \def\pdfcol at Value{0 g 0 G}%
- \fi
- \expandafter\ifx\csname pdfcol at LiteralModifier\endcsname\relax
- \def\pdfcol at LiteralModifier{direct}%
- \fi
- \def\pdfcolInitStack#1{%
- \expandafter\ifx\csname pdfcol at Stack@#1\endcsname\relax
- \global\expandafter\chardef\csname pdfcol at Stack@#1\endcsname=%
- \pdfcolorstackinit\pdfcol at LiteralModifier{\pdfcol at Value}%
- \relax
- \@PackageInfo{pdfcol}{%
- New color stack `#1' = \number\csname pdfcol at Stack@#1\endcsname
- }%
- \else
- \@PackageError{pdfcol}{%
- Stack `#1' is already defined%
- }\@ehc
- \fi
- }%
- \def\pdfcolIfStackExists#1{%
- \expandafter\ifx\csname pdfcol at Stack@#1\endcsname\relax
- \expandafter\@secondoftwo
- \else
- \expandafter\@firstoftwo
- \fi
- }%
- \expandafter\ifx\csname @firstoftwo\endcsname\relax
- \long\def\@firstoftwo#1#2{#1}%
- \fi
- \expandafter\ifx\csname @secondoftwo\endcsname\relax
- \long\def\@secondoftwo#1#2{#2}%
- \fi
- \def\pdfcolSwitchStack#1{%
- \pdfcolIfStackExists{#1}{%
- \expandafter\let\expandafter\@pdfcolorstack
- \csname pdfcol at Stack@#1\endcsname
- }{%
- \pdfcol at ErrorNoStack{#1}%
- }%
- }%
- \def\pdfcolSetCurrentColor{%
- \pdfcolorstack\@pdfcolorstack set{\current at color}%
- }%
- \def\pdfcolSetCurrent#1{%
- \ifx\\#1\\%
- \pdfcolorstack\@pdfcolorstack current\relax
- \else
- \pdfcolIfStackExists{#1}{%
- \pdfcolorstack\csname pdfcol at Stack@#1\endcsname current\relax
- }{%
- \pdfcol at ErrorNoStack{#1}%
- }%
- \fi
- }%
- \def\pdfcol at ErrorNoStack#1{%
- \@PackageError{pdfcol}{Stack `#1' does not exists}\@ehc
- }%
-\else
- \def\pdfcolErrorNoStacks{%
- \@PackageError{pdfcol}{%
- Color stacks are not available%
- }{%
- Update pdfTeX (1.40) and `pdftex.def' (0.04b) %
- if necessary.\MessageBreak
- Ensure that `pdftex.def' is loaded %
- (package `color' or `xcolor').\MessageBreak
- Further messages can be found in TeX's %
- protocol file `\jobname.log'.\MessageBreak
- \MessageBreak
- \@ehc
- }%
- \global\let\pdfcolErrorNoStacks\relax
- }%
- \def\PDFCOL at Disabled{%
- \PDFCOL at Message{%
- pdfTeX's color stacks are not available%
- }%
- \global\let\PDFCOL at Disabled\relax
- }%
- \def\pdfcolInitStack#1{%
- \PDFCOL at Disabled
- }%
- \long\def\pdfcolIfStackExists#1#2#3{#3}%
- \def\pdfcolSwitchStack#1{%
- \PDFCOL at Disabled
- }%
- \def\pdfcolSetCurrentColor{%
- \PDFCOL at Disabled
- }%
- \def\pdfcolSetCurrent#1{%
- \PDFCOL at Disabled
- }%
-\fi
-\PDFCOL at AtEnd%
-%% \section{Installation}
-\endinput
-%%
-%% End of file `pdfcol.sty'.
Deleted: trunk/Master/texmf-dist/tex/latex/oberdiek/pagegrid.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/oberdiek/pagegrid.sty 2022-09-22 20:05:30 UTC (rev 64462)
+++ trunk/Master/texmf-dist/tex/latex/oberdiek/pagegrid.sty 2022-09-22 20:06:18 UTC (rev 64463)
@@ -1,421 +0,0 @@
-%%
-%% This is file `pagegrid.sty',
-%% generated with the docstrip utility.
-%%
-%% The original source files were:
-%%
-%% pagegrid.dtx (with options: `package')
-%%
-%% This is a generated file.
-%%
-%% Project: pagegrid
-%% Version: 2016/05/16 v1.5
-%%
-%% Copyright (C)
-%% 2009 Heiko Oberdiek
-%% 2016-2019 Oberdiek Package Support Group
-%%
-%% This work may be distributed and/or modified under the
-%% conditions of the LaTeX Project Public License, either
-%% version 1.3c of this license or (at your option) any later
-%% version. This version of this license is in
-%% https://www.latex-project.org/lppl/lppl-1-3c.txt
-%% and the latest version of this license is in
-%% https://www.latex-project.org/lppl.txt
-%% and version 1.3 or later is part of all distributions of
-%% LaTeX version 2005/12/01 or later.
-%%
-%% This work has the LPPL maintenance status "maintained".
-%%
-%% The Current Maintainers of this work are
-%% Heiko Oberdiek and the Oberdiek Package Support Group
-%% https://github.com/ho-tex/oberdiek/issues
-%%
-%%
-%% This work consists of the main source file pagegrid.dtx
-%% and the derived files
-%% pagegrid.sty, pagegrid.pdf, pagegrid.ins, pagegrid.drv,
-%% pagegrid-test1.tex.
-%%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode35=6 % #
- \catcode39=12 % '
- \catcode44=12 % ,
- \catcode45=12 % -
- \catcode46=12 % .
- \catcode58=12 % :
- \catcode64=11 % @
- \catcode123=1 % {
- \catcode125=2 % }
- \expandafter\let\expandafter\x\csname ver at pagegrid.sty\endcsname
- \ifx\x\relax % plain-TeX, first loading
- \else
- \def\empty{}%
- \ifx\x\empty % LaTeX, first loading,
- % variable is initialized, but \ProvidesPackage not yet seen
- \else
- \expandafter\ifx\csname PackageInfo\endcsname\relax
- \def\x#1#2{%
- \immediate\write-1{Package #1 Info: #2.}%
- }%
- \else
- \def\x#1#2{\PackageInfo{#1}{#2, stopped}}%
- \fi
- \x{pagegrid}{The package is already loaded}%
- \aftergroup\endinput
- \fi
- \fi
-\endgroup%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode35=6 % #
- \catcode39=12 % '
- \catcode40=12 % (
- \catcode41=12 % )
- \catcode44=12 % ,
- \catcode45=12 % -
- \catcode46=12 % .
- \catcode47=12 % /
- \catcode58=12 % :
- \catcode64=11 % @
- \catcode91=12 % [
- \catcode93=12 % ]
- \catcode123=1 % {
- \catcode125=2 % }
- \expandafter\ifx\csname ProvidesPackage\endcsname\relax
- \def\x#1#2#3[#4]{\endgroup
- \immediate\write-1{Package: #3 #4}%
- \xdef#1{#4}%
- }%
- \else
- \def\x#1#2[#3]{\endgroup
- #2[{#3}]%
- \ifx#1\@undefined
- \xdef#1{#3}%
- \fi
- \ifx#1\relax
- \xdef#1{#3}%
- \fi
- }%
- \fi
-\expandafter\x\csname ver at pagegrid.sty\endcsname
-\ProvidesPackage{pagegrid}%
- [2016/05/16 v1.5 Print page grid in background (HO)]%
-\begingroup\catcode61\catcode48\catcode32=10\relax%
- \catcode13=5 % ^^M
- \endlinechar=13 %
- \catcode123=1 % {
- \catcode125=2 % }
- \catcode64=11 % @
- \def\x{\endgroup
- \expandafter\edef\csname pagegrid at AtEnd\endcsname{%
- \endlinechar=\the\endlinechar\relax
- \catcode13=\the\catcode13\relax
- \catcode32=\the\catcode32\relax
- \catcode35=\the\catcode35\relax
- \catcode61=\the\catcode61\relax
- \catcode64=\the\catcode64\relax
- \catcode123=\the\catcode123\relax
- \catcode125=\the\catcode125\relax
- }%
- }%
-\x\catcode61\catcode48\catcode32=10\relax%
-\catcode13=5 % ^^M
-\endlinechar=13 %
-\catcode35=6 % #
-\catcode64=11 % @
-\catcode123=1 % {
-\catcode125=2 % }
-\def\TMP at EnsureCode#1#2{%
- \edef\pagegrid at AtEnd{%
- \pagegrid at AtEnd
- \catcode#1=\the\catcode#1\relax
- }%
- \catcode#1=#2\relax
-}
-\TMP at EnsureCode{9}{10}% (tab)
-\TMP at EnsureCode{10}{12}% ^^J
-\TMP at EnsureCode{33}{12}% !
-\TMP at EnsureCode{34}{12}% "
-\TMP at EnsureCode{36}{3}% $
-\TMP at EnsureCode{38}{4}% &
-\TMP at EnsureCode{39}{12}% '
-\TMP at EnsureCode{40}{12}% (
-\TMP at EnsureCode{41}{12}% )
-\TMP at EnsureCode{42}{12}% *
-\TMP at EnsureCode{43}{12}% +
-\TMP at EnsureCode{44}{12}% ,
-\TMP at EnsureCode{45}{12}% -
-\TMP at EnsureCode{46}{12}% .
-\TMP at EnsureCode{47}{12}% /
-\TMP at EnsureCode{58}{12}% :
-\TMP at EnsureCode{59}{12}% ;
-\TMP at EnsureCode{60}{12}% <
-\TMP at EnsureCode{62}{12}% >
-\TMP at EnsureCode{63}{12}% ?
-\TMP at EnsureCode{91}{12}% [
-\TMP at EnsureCode{93}{12}% ]
-\TMP at EnsureCode{94}{7}% ^ (superscript)
-\TMP at EnsureCode{95}{8}% _ (subscript)
-\TMP at EnsureCode{96}{12}% `
-\TMP at EnsureCode{124}{12}% |
-\edef\pagegrid at AtEnd{\pagegrid at AtEnd\noexpand\endinput}
-\RequirePackage{tikz}
-\RequirePackage{atbegshi}[2009/12/02]
-\RequirePackage{kvoptions}[2009/07/17]
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname stockwidth\endcsname\relax
- \def\pagegrid at width{\paperwidth}%
- \def\pagegrid at height{\paperheight}%
-\else
- \def\pagegrid at width{\stockwidth}%
- \def\pagegrid at height{\stockheight}%
-\fi
-\SetupKeyvalOptions{%
- family=pagegrid,%
- prefix=pagegrid@,%
-}
-\def\pagegrid at init{%
- \let\pagegrid at origin@a\@empty
- \let\pagegrid at origin@b\@empty
- \let\pagegrid at init\relax
-}
-\let\pagegrid@@init\pagegrid at init
-\def\pagegrid at origin@a{bl}
-\def\pagegrid at origin@b{tr}
-\def\pagegrid at SetOrigin#1{%
- \pagegrid at init
- \ifx\pagegrid at origin@a\@empty
- \def\pagegrid at origin@a{#1}%
- \else
- \ifx\pagegrid at origin@b\@empty
- \else
- \let\pagegrid at origin@a\pagegrid at origin@b
- \fi
- \def\pagegrid at origin@b{#1}%
- \fi
-}
-\def\pagegrid at temp#1{%
- \DeclareVoidOption{#1}{\pagegrid at SetOrigin{#1}}%
- \@namedef{pagegrid at N@#1}{#1}%
-}
-\pagegrid at temp{bl}
-\pagegrid at temp{br}
-\pagegrid at temp{tl}
-\pagegrid at temp{tr}
-\def\pagegrid at temp#1#2{%
- \DeclareVoidOption{#2}{\pagegrid at SetOrigin{#1}}%
-}%
-\pagegrid at temp{bl}{lb}
-\pagegrid at temp{br}{rb}
-\pagegrid at temp{tl}{lt}
-\pagegrid at temp{tr}{rt}
-\pagegrid at temp{bl}{bottom-left}
-\pagegrid at temp{br}{bottom-right}
-\pagegrid at temp{tl}{top-left}
-\pagegrid at temp{tr}{top-right}
-\pagegrid at temp{bl}{left-bottom}
-\pagegrid at temp{br}{right-bottom}
-\pagegrid at temp{tl}{left-top}
-\pagegrid at temp{tr}{right-top}
-\DeclareBoolOption[true]{enable}
-\DeclareComplementaryOption{disable}{enable}
-\DeclareBoolOption{foreground}
-\newlength{\pagegrid at step}
-\define at key{pagegrid}{step}{%
- \setlength{\pagegrid at step}{#1}%
-}
-\DeclareStringOption[red]{firstcolor}
-\DeclareStringOption[blue]{secondcolor}
-\DeclareBoolOption[true]{arrows}
-\newlength\pagegrid at arrowlength
-\pagegrid at arrowlength=\z@
-\define at key{pagegrid}{arrowlength}{%
- \setlength{\pagegrid at arrowlength}{#1}%
-}
-\define at key{pagegrid}{double}[true]{%
- \@ifundefined{pagegrid at double@#1}{%
- \PackageWarning{pagegrid}{%
- Unsupported value `#1' for option `double'.\MessageBreak
- Known values are:\MessageBreak
- `false', `first', `last', `true'.\MessageBreak
- Now `false' is used%
- }%
- \chardef\pagegrid at double\z@
- }{%
- \chardef\pagegrid at double\csname pagegrid at double@#1\endcsname\relax
- }%
-}
-\@namedef{pagegrid at double@false}{0}
-\@namedef{pagegrid at double@first}{1}
-\@namedef{pagegrid at double@last}{2}
-\@namedef{pagegrid at double@true}{2}
-\chardef\pagegrid at double\z@
-\newcommand*{\pagegridsetup}{%
- \let\pagegrid at init\pagegrid@@init
- \setkeys{pagegrid}%
-}
-\pagegridsetup{%
- step=1mm%
-}
-\InputIfFileExists{pagegrid.cfg}{}%
-\ProcessKeyvalOptions*\relax
-\AtBeginDocument{%
- \ifdim\pagegrid at arrowlength>\z@
- \else
- \pagegrid at arrowlength=10\pagegrid at step
- \fi
-}
-\def\pagegridShipoutDoubleBegin{%
- \begingroup
- \let\newlabel\@gobbletwo
- \let\zref at newlabel\@gobbletwo
- \let\@writefile\@gobbletwo
- \let\select at language\@gobble
-}
-\def\pagegridShipoutDoubleEnd{%
- \endgroup
-}
-\def\pagegrid at WriteDouble#1#2{%
- \immediate\write#1{%
- \@backslashchar csname %
- pagegridShipoutDouble#2%
- \@backslashchar endcsname%
- }%
-}
-\def\pagegrid at ShipoutDouble#1{%
- \begingroup
- \if at filesw
- \pagegrid at WriteDouble\@mainaux{Begin}%
- \ifx\@auxout\@partaux
- \pagegrid at WriteDouble\@partaux{Begin}%
- \def\pagegrid at temp{%
- \pagegrid at WriteDouble\@mainaux{End}%
- \pagegrid at WriteDouble\@partaux{End}%
- }%
- \else
- \def\pagegrid at temp{%
- \pagegrid at WriteDouble\@mainaux{End}%
- }%
- \fi
- \else
- \def\pagegrid at temp{}%
- \fi
- \let\protect\noexpand
- \AtBeginShipoutOriginalShipout\copy#1\relax
- \pagegrid at temp
- \endgroup
-}
-\AtBeginShipout{%
- \ifdim\pagegrid at step>\z@
- \else
- \pagegrid at enablefalse
- \fi
- \ifpagegrid at enable
- \ifnum\pagegrid at double=\@ne
- \pagegrid at ShipoutDouble\AtBeginShipoutBox
- \else
- \ifnum\pagegrid at double=\tw@
- \@ifundefined{pagegrid at DoubleBox}{%
- \newbox\pagegrid at DoubleBox
- }{}%
- \setbox\pagegrid at DoubleBox=\copy\AtBeginShipoutBox
- \fi
- \fi
- \ifpagegrid at foreground
- \expandafter\AtBeginShipoutUpperLeftForeground
- \else
- \expandafter\AtBeginShipoutUpperLeft
- \fi
- {%
- \put(0,0){%
- \makebox(0,0)[lt]{%
- \begin{tikzpicture}[%
- bl/.style={},%
- br/.style={xshift=\pagegrid at width,xscale=-1},%
- tl/.style={yshift=\pagegrid at height,yscale=-1},%
- tr/.style={xshift=\pagegrid at width,%
- yshift=\pagegrid at height,scale=-1}%
- ]%
- \useasboundingbox
- (0mm,\pagegrid at height) rectangle (0mm,\pagegrid at height);%
- \draw[%
- \pagegrid at origin@a,%
- step=\pagegrid at step,%
- style=help lines,%
- ultra thin%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \ifx\pagegrid at origin@b\@empty
- \else
- \draw[%
- \pagegrid at origin@b,%
- step=10\pagegrid at step,%
- {\pagegrid at secondcolor},%
- very thin%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \fi
- \draw[%
- \pagegrid at origin@a,%
- step=10\pagegrid at step,%
- {\pagegrid at firstcolor},%
- very thin%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \ifx\pagegrid at origin@b\@empty
- \else
- \draw[%
- \pagegrid at origin@b,%
- step=50\pagegrid at step,%
- {\pagegrid at secondcolor},%
- thick%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \fi
- \draw[%
- \pagegrid at origin@a,%
- step=50\pagegrid at step,%
- {\pagegrid at firstcolor},%
- thick%
- ] (0mm,0mm) grid (\pagegrid at width,\pagegrid at height);%
- \ifpagegrid at arrows
- \ifx\pagegrid at origin@b\@empty
- \else
- \draw[%
- \pagegrid at origin@b,%
- {\pagegrid at secondcolor},%
- stroke,%
- line width=1pt,%
- line cap=round%
- ] (0mm,0mm) %
- -- (\pagegrid at arrowlength,\pagegrid at arrowlength) %
- (\pagegrid at arrowlength,.5\pagegrid at arrowlength) %
- -- (\pagegrid at arrowlength,\pagegrid at arrowlength) %
- -- (.5\pagegrid at arrowlength,\pagegrid at arrowlength);%
- \fi
- \draw[%
- \pagegrid at origin@a,%
- {\pagegrid at firstcolor},%
- stroke,%
- line width=1pt,%
- line cap=round%
- ] (0mm,0mm) %
- -- (\pagegrid at arrowlength,\pagegrid at arrowlength) %
- (\pagegrid at arrowlength,.5\pagegrid at arrowlength) %
- -- (\pagegrid at arrowlength,\pagegrid at arrowlength) %
- -- (.5\pagegrid at arrowlength,\pagegrid at arrowlength);%
- \fi
- \end{tikzpicture}%
- }%
- }%
- }%
- \ifnum\pagegrid at double=\tw@
- \pagegrid at ShipoutDouble\pagegrid at DoubleBox
- \fi
- \fi
-}
-\pagegrid at AtEnd%
-%% \section{Installation}
-\endinput
-%%
-%% End of file `pagegrid.sty'.
More information about the tex-live-commits
mailing list.