summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/oberdiek/pdfcol.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'macros/latex/contrib/oberdiek/pdfcol.dtx')
-rw-r--r--macros/latex/contrib/oberdiek/pdfcol.dtx202
1 files changed, 1 insertions, 201 deletions
diff --git a/macros/latex/contrib/oberdiek/pdfcol.dtx b/macros/latex/contrib/oberdiek/pdfcol.dtx
index e9a5cd552e..c86a2e6720 100644
--- a/macros/latex/contrib/oberdiek/pdfcol.dtx
+++ b/macros/latex/contrib/oberdiek/pdfcol.dtx
@@ -66,10 +66,6 @@
% Installation:
% TDS:tex/generic/oberdiek/pdfcol.sty
% TDS:doc/latex/oberdiek/pdfcol.pdf
-% TDS:doc/latex/oberdiek/test/pdfcol-test1.tex
-% TDS:doc/latex/oberdiek/test/pdfcol-test2.tex
-% TDS:doc/latex/oberdiek/test/pdfcol-test3.tex
-% TDS:doc/latex/oberdiek/test/pdfcol-test4.tex
% TDS:source/latex/oberdiek/pdfcol.dtx
%
%<*ignore>
@@ -143,10 +139,6 @@ and the derived files
% \file{pdfcol-test2.tex}{\from{pdfcol.dtx}{test2}}%
% \file{pdfcol-test3.tex}{\from{pdfcol.dtx}{test3}}%
% \file{pdfcol-test4.tex}{\from{pdfcol.dtx}{test4}}%
- \nopreamble
- \nopostamble
-% \usedir{source/latex/oberdiek/catalogue}%
-% \file{pdfcol.xml}{\from{pdfcol.dtx}{catalogue}}%
}
\catcode32=13\relax% active space
@@ -183,21 +175,6 @@ and the derived files
% \fi
%
%
-% \CharacterTable
-% {Upper-case \A\B\C\D\E\F\G\H\I\J\K\L\M\N\O\P\Q\R\S\T\U\V\W\X\Y\Z
-% Lower-case \a\b\c\d\e\f\g\h\i\j\k\l\m\n\o\p\q\r\s\t\u\v\w\x\y\z
-% Digits \0\1\2\3\4\5\6\7\8\9
-% Exclamation \! Double quote \" Hash (number) \#
-% Dollar \$ Percent \% Ampersand \&
-% Acute accent \' Left paren \( Right paren \)
-% Asterisk \* Plus \+ Comma \,
-% Minus \- Point \. Solidus \/
-% Colon \: Semicolon \; Less than \<
-% Equals \= Greater than \> Question mark \?
-% Commercial at \@ Left bracket \[ Backslash \\
-% Right bracket \] Circumflex \^ Underscore \_
-% Grave accent \` Left brace \{ Vertical bar \|
-% Right brace \} Tilde \~}
%
% \GetFileInfo{pdfcol.drv}
%
@@ -766,180 +743,7 @@ and the derived files
\PDFCOL@AtEnd%
%</package>
% \end{macrocode}
-%
-% \section{Test}
-%
-% \subsection{Catcode checks for loading}
-%
-% \begin{macrocode}
-%<*test1>
-% \end{macrocode}
-% \begin{macrocode}
-\catcode`\{=1 %
-\catcode`\}=2 %
-\catcode`\#=6 %
-\catcode`\@=11 %
-\expandafter\ifx\csname count@\endcsname\relax
- \countdef\count@=255 %
-\fi
-\expandafter\ifx\csname @gobble\endcsname\relax
- \long\def\@gobble#1{}%
-\fi
-\expandafter\ifx\csname @firstofone\endcsname\relax
- \long\def\@firstofone#1{#1}%
-\fi
-\expandafter\ifx\csname loop\endcsname\relax
- \expandafter\@firstofone
-\else
- \expandafter\@gobble
-\fi
-{%
- \def\loop#1\repeat{%
- \def\body{#1}%
- \iterate
- }%
- \def\iterate{%
- \body
- \let\next\iterate
- \else
- \let\next\relax
- \fi
- \next
- }%
- \let\repeat=\fi
-}%
-\def\RestoreCatcodes{}
-\count@=0 %
-\loop
- \edef\RestoreCatcodes{%
- \RestoreCatcodes
- \catcode\the\count@=\the\catcode\count@\relax
- }%
-\ifnum\count@<255 %
- \advance\count@ 1 %
-\repeat
-
-\def\RangeCatcodeInvalid#1#2{%
- \count@=#1\relax
- \loop
- \catcode\count@=15 %
- \ifnum\count@<#2\relax
- \advance\count@ 1 %
- \repeat
-}
-\def\RangeCatcodeCheck#1#2#3{%
- \count@=#1\relax
- \loop
- \ifnum#3=\catcode\count@
- \else
- \errmessage{%
- Character \the\count@\space
- with wrong catcode \the\catcode\count@\space
- instead of \number#3%
- }%
- \fi
- \ifnum\count@<#2\relax
- \advance\count@ 1 %
- \repeat
-}
-\def\space{ }
-\expandafter\ifx\csname LoadCommand\endcsname\relax
- \def\LoadCommand{\input pdfcol.sty\relax}%
-\fi
-\def\Test{%
- \RangeCatcodeInvalid{0}{47}%
- \RangeCatcodeInvalid{58}{64}%
- \RangeCatcodeInvalid{91}{96}%
- \RangeCatcodeInvalid{123}{255}%
- \catcode`\@=12 %
- \catcode`\\=0 %
- \catcode`\%=14 %
- \LoadCommand
- \RangeCatcodeCheck{0}{36}{15}%
- \RangeCatcodeCheck{37}{37}{14}%
- \RangeCatcodeCheck{38}{47}{15}%
- \RangeCatcodeCheck{48}{57}{12}%
- \RangeCatcodeCheck{58}{63}{15}%
- \RangeCatcodeCheck{64}{64}{12}%
- \RangeCatcodeCheck{65}{90}{11}%
- \RangeCatcodeCheck{91}{91}{15}%
- \RangeCatcodeCheck{92}{92}{0}%
- \RangeCatcodeCheck{93}{96}{15}%
- \RangeCatcodeCheck{97}{122}{11}%
- \RangeCatcodeCheck{123}{255}{15}%
- \RestoreCatcodes
-}
-\Test
-\csname @@end\endcsname
-\end
-% \end{macrocode}
-% \begin{macrocode}
-%</test1>
-% \end{macrocode}
-%
-% \subsection{Very simple test}
-%
-% \begin{macrocode}
-%<*test2|test3>
-\NeedsTeXFormat{LaTeX2e}
-\nofiles
-\documentclass{article}
-\usepackage{pdfcol}[2018/11/01]
-\usepackage{qstest}
-\IncludeTests{*}
-\LogTests{log}{*}{*}
-\begin{document}
- \begin{qstest}{pdfcol}{}%
- \makeatletter
-%<*test2>
- \Expect*{\ifpdfcolAvailable true\else false\fi}{false}%
-%</test2>
-%<*test3>
- \Expect*{\ifpdfcolAvailable true\else false\fi}{true}%
- \Expect*{\number\@pdfcolorstack}{0}%
-%</test3>
- \setbox0=\hbox{%
- \pdfcolInitStack{test}%
-%<*test3>
- \Expect*{\number\pdfcol@Stack@test}{1}%
- \Expect*{\number\@pdfcolorstack}{0}%
-%</test3>
- \pdfcolSwitchStack{test}%
-%<*test3>
- \Expect*{\number\@pdfcolorstack}{1}%
-%</test3>
- \pdfcolSetCurrent{test}%
- \pdfcolSetCurrent{}%
- }%
- \Expect*{\the\wd0}{0.0pt}%
-%<*test3>
- \Expect*{\number\@pdfcolorstack}{0}%
- \Expect*{\number\pdfcol@Stack@test}{1}%
- \Expect*{\pdfcolIfStackExists{test}{true}{false}}{true}%
-%</test3>
- \Expect*{\pdfcolIfStackExists{dummy}{true}{false}}{false}%
- \end{qstest}%
-\end{document}
-%</test2|test3>
-% \end{macrocode}
-%
-% \subsection{Detection of package \xpackage{luacolor}}
-%
-% \begin{macrocode}
-%<*test4>
-\NeedsTeXFormat{LaTeX2e}
-\documentclass{article}
-\usepackage{luacolor}
-\usepackage{pdfcol}
-\makeatletter
-\ifpdfcolAvailable
- \@latex@error{Detection of package luacolor failed}%
-\fi
-\csname @@end\endcsname
-%</test4>
-% \end{macrocode}
-%
-% \section{Installation}
+%% \section{Installation}
%
% \subsection{Download}
%
@@ -988,10 +792,6 @@ and the derived files
% \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
% pdfcol.sty & tex/generic/oberdiek/pdfcol.sty\\
% pdfcol.pdf & doc/latex/oberdiek/pdfcol.pdf\\
-% test/pdfcol-test1.tex & doc/latex/oberdiek/test/pdfcol-test1.tex\\
-% test/pdfcol-test2.tex & doc/latex/oberdiek/test/pdfcol-test2.tex\\
-% test/pdfcol-test3.tex & doc/latex/oberdiek/test/pdfcol-test3.tex\\
-% test/pdfcol-test4.tex & doc/latex/oberdiek/test/pdfcol-test4.tex\\
% pdfcol.dtx & source/latex/oberdiek/pdfcol.dtx\\
% \end{tabular}^^A
% }^^A