From 2905ee4c8de47cfdeea4787e465eb827f9b99e8b Mon Sep 17 00:00:00 2001
From: Norbert Preining <norbert@preining.info>
Date: Thu, 5 Dec 2019 03:00:50 +0000
Subject: CTAN sync 201912050300

---
 macros/latex/contrib/oberdiek/refcount.dtx | 440 +----------------------------
 1 file changed, 1 insertion(+), 439 deletions(-)

(limited to 'macros/latex/contrib/oberdiek/refcount.dtx')

diff --git a/macros/latex/contrib/oberdiek/refcount.dtx b/macros/latex/contrib/oberdiek/refcount.dtx
index 3a2c961431..b70bd4799e 100644
--- a/macros/latex/contrib/oberdiek/refcount.dtx
+++ b/macros/latex/contrib/oberdiek/refcount.dtx
@@ -64,11 +64,6 @@
 % Installation:
 %    TDS:tex/latex/oberdiek/refcount.sty
 %    TDS:doc/latex/oberdiek/refcount.pdf
-%    TDS:doc/latex/oberdiek/test/refcount-test1.tex
-%    TDS:doc/latex/oberdiek/test/refcount-test2.tex
-%    TDS:doc/latex/oberdiek/test/refcount-test3.tex
-%    TDS:doc/latex/oberdiek/test/refcount-test4.tex
-%    TDS:doc/latex/oberdiek/test/refcount-test5.tex
 %    TDS:source/latex/oberdiek/refcount.dtx
 %
 %<*ignore>
@@ -141,10 +136,6 @@ and the derived files
 %  \file{refcount-test3.tex}{\from{refcount.dtx}{test3}}%
 %  \file{refcount-test4.tex}{\from{refcount.dtx}{test3,test4}}%
 %  \file{refcount-test5.tex}{\from{refcount.dtx}{test5}}%
-  \nopreamble
-  \nopostamble
-%  \usedir{source/latex/oberdiek/catalogue}%
-%  \file{refcount.xml}{\from{refcount.dtx}{catalogue}}%
 }
 
 \catcode32=13\relax% active space
@@ -181,21 +172,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{refcount.drv}
 %
@@ -899,416 +875,7 @@ and the derived files
 \rc@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 refcount.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{Macro tests}
-%
-%    \begin{macrocode}
-%<*test2>
-\errorcontextlines=10000 %
-\showboxbreadth=10000 %
-\showboxdepth=10000 %
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname RequirePackage\endcsname\relax
-  \input refcount.sty\relax
-\else
-  \RequirePackage{refcount}[2016/05/16]%
-\fi
-\catcode`\@=11 %
-\begingroup\expandafter\expandafter\expandafter\endgroup
-\expandafter\ifx\csname @onelevel@sanitize\endcsname\relax
-  \begingroup\expandafter\expandafter\expandafter\endgroup
-  \expandafter\ifx\csname detokenize\endcsname\relax
-    \def\strip@prefix#1->{}%
-    \def\@onelevel@sanitize#1{%
-      \edef#1{%
-        \expandafter\strip@prefix\meaning#1%
-      }%
-    }%
-  \else
-    \def\@onelevel@sanitize#1{%
-      \edef#1{%
-        \detokenize\expandafter{#1}%
-      }%
-    }%
-  \fi
-\fi
-\def\msg#{\immediate\write16}
-\def\empty{}
-\def\space{ }
-%    \end{macrocode}
-%    \begin{macrocode}
-\def\r@foo{{\empty 1}{\empty 2}}
-\long\def\test#1#2{%
-  \begingroup
-    \setbox0=\hbox{%
-      \def\TestTask{#1}%
-      \@onelevel@sanitize\TestTask
-      \msg{* \TestTask}%
-      \expandafter\expandafter\expandafter\def
-      \expandafter\expandafter\expandafter\TestResult
-      \expandafter\expandafter\expandafter{%
-        #1%
-      }%
-      \def\TestExpected{#2}%
-      \ifx\TestResult\TestExpected
-        \msg{ \space ok.}%
-      \else
-        \@onelevel@sanitize\TestResult
-        \@onelevel@sanitize\TestExpected
-        \msg{ \space Result: \space\space[\TestResult]}%
-        \msg{ \space Expected: [\TestExpected]}%
-        \errmessage{Test failed!}%
-      \fi
-    }%
-    \ifdim\wd0=0pt %
-    \else
-      \showbox0 %
-    \fi
-  \endgroup
-}
-\test{\getrefnumber{foo}}{\empty 1}
-\test{\getpagerefnumber{foo}}{\empty 2}
-\test{\getrefbykeydefault{foo}{}{\empty default}}{\empty 1}
-\test{\getrefbykeydefault{foo}{page}{\empty default}}{\empty 2}
-\test{\getrefbykeydefault{foo}{name}{\empty default}}{\empty default}
-\test{\getrefbykeydefault{foo}{anchor}{\empty default}}{\empty default}
-\test{\getrefbykeydefault{foo}{url}{\empty default}}{\empty default}
-\test{\getrefbykeydefault{foo}{title}{\empty default}}{\empty default}
-\msg{}
-\def\r@foo{{}{}{}{}{}{}{}{}{}{}}
-\def\Test#1#2\\{%
-  \test{#1{foo}#2}{}%
-}
-\def\TestGroup{%
-  \Test\getrefnumber\\%
-  \Test\getpagerefnumber\\%
-  \Test\getrefbykeydefault{}{}\\%
-  \Test\getrefbykeydefault{page}{}\\%
-  \Test\getrefbykeydefault{anchor}{}\\%
-  \Test\getrefbykeydefault{name}{}\\%
-  \Test\getrefbykeydefault{url}{}\\%
-}
-\TestGroup
-\Test\getrefbykeydefault{title}{}\\%
-\msg{}
-\def\r@foo{\par\par\par\par\par\par\par\par}
-\long\def\Test#1#2\\{%
-  \test{#1{foo}#2}{\par}%
-}
-\TestGroup
-\test{\getrefbykeydefault{title}{}{}}{}
-\msg{}
-\def\r@foo{{ }{ }{ }{ }{ }}
-\def\Test#1#2\\{%
-  \test{#1{foo}#2}{ }%
-}
-\TestGroup
-\msg{}
-\long\def\TestDefault#1{%
-  \begingroup
-    \setrefcountdefault{#1}%
-    \test{\getrefnumber{foo}}{#1}%
-    \test{\getpagerefnumber{foo}}{#1}%
-  \endgroup
-}
-\def\TestDefaultX{%
-  \TestDefault{}%
-  \TestDefault{\par}%
-  \TestDefault{ }%
-  \TestDefault{\space}%
-}
-\let\r@foo\@undefined
-\TestDefaultX
-\let\r@foo\relax
-\TestDefaultX
-\def\r@foo{}
-\TestDefaultX
-%    \end{macrocode}
-%    \begin{macrocode}
-\msg{}
-\long\def\Test#1#2#3#4{%
-  \begingroup
-    \def\TestTask{#1}%
-    \@onelevel@sanitize\TestTask
-    \msg{* [\TestTask]}%
-    \edef\TestResultA{\IfRefUndefinedExpandable{#1}{#2}{#3}}%
-    \IfRefUndefinedBabel{#1}{%
-      \def\TestResultB{#2}%
-    }{%
-      \def\TestResultB{#3}%
-    }%
-    \def\TestExpected{#4}%
-    \ifx\TestResultA\TestExpected
-      \msg{ \space ok.}%
-    \else
-      \begingroup
-        \@onelevel@sanitize\TestResultA
-        \@onelevel@sanitize\TestExpected
-        \msg{ \space Result: \space\space[\TestResultA]}%
-        \msg{ \space Expected: [\TestExpected]}%
-        \errmessage{Test failed!}%
-      \endgroup
-    \fi
-    \ifx\TestResultB\TestExpected
-      \msg{ \space ok.}%
-    \else
-      \begingroup
-        \@onelevel@sanitize\TestResultB
-        \@onelevel@sanitize\TestExpected
-        \msg{ \space Result: \space\space[\TestResultB]}%
-        \msg{ \space Expected: [\TestExpected]}%
-        \errmessage{Test failed!}%
-      \endgroup
-    \fi
-  \endgroup
-}
-\begingroup
-  \def\r@foo{{}{}}%
-  \let\r@bar\@undefined
-  \let\r@xyz\relax
-  \Test{foo}{true}{false}{false}%
-  \Test{bar}{true}{false}{true}%
-  \Test{xyz}{true}{false}{true}%
-\endgroup
-%    \end{macrocode}
-%    \begin{macrocode}
-\csname @@end\endcsname\end
-%</test2>
-%    \end{macrocode}
-% \subsection{Test with package \xpackage{titleref}}
-%
-%    \begin{macrocode}
-%<*test3>
-\NeedsTeXFormat{LaTeX2e}
-\documentclass{article}
-\usepackage{refcount}[2016/05/16]
-%<test4>\usepackage{nameref}
-\usepackage{titleref}
-\begin{document}
-\section{Hello World}
-\label{sec:hello}
-\section{\hbox{xy}}
-\label{sec:foo}
-%
-\makeatletter
-\@ifundefined{r@sec:hello}{%
-  \typeout{==> Compile twice!}%
-}{%
-  \def\test#1#2{%
-    \begingroup
-      \def\TestTask{#1}%
-      \@onelevel@sanitize\TestTask
-      \typeout{* \TestTask}%
-      \expandafter\expandafter\expandafter\def
-      \expandafter\expandafter\expandafter\TestResult
-      \expandafter\expandafter\expandafter{%
-        #1%
-      }%
-      \def\TestExpected{#2}%
-      \ifx\TestResult\TestExpected
-        \typeout{ \space ok.}%
-      \else
-        \@onelevel@sanitize\TestResult
-        \@onelevel@sanitize\TestExpected
-        \typeout{ \space Result: \space\space[\TestResult]}%
-        \typeout{ \space Expected: [\TestExpected]}%
-        \errmessage{Test failed!}%
-      \fi
-    \endgroup
-  }%
-  \test{\getrefbykeydefault{sec:hello}{title}{}}{Hello World}%
-  \test{\getrefbykeydefault{sec:foo}{title}{}}{\hbox{xy}}%
-  \begingroup
-    \def\hbox#1{[#1]}% hash-ok
-    \test{\getrefbykeydefault{sec:foo}{title}{}}{\hbox{xy}}%
-  \endgroup
-}
-\makeatother
-%    \end{macrocode}
-%    \begin{macrocode}
-\end{document}
-%</test3>
-%    \end{macrocode}
-%    \begin{macrocode}
-%<*test5>
-\NeedsTeXFormat{LaTeX2e}
-\documentclass{book}
-\usepackage{refcount}[2016/05/16]
-\usepackage{zref-runs}
-\newcounter{test}
-\begin{document}
-\ifnum\zruns>1 %
-  \makeatletter
-  \def\Test#1#2#3{%
-    \begingroup
-      \setcounter{test}{10}%
-      \sbox0{%
-        #1{test}{#2}%
-        \ifnum#3=\value{test}%
-        \else
-          \PackageError{test}{\string#1{#2} <> #3 (\the\value{test})}%
-        \fi
-      }%
-      \ifdim\wd0=0pt %
-      \else
-        \PackageError{test}{Non-empty box}\@ehc
-      \fi
-    \endgroup
-  }%
-  \makeatother
-  \Test\setcounterpageref{ch:two}{1}%
-  \Test\setcounterpageref{ch:three}{3}%
-  \Test\setcounterpageref{ch:four}{5}%
-  \Test\setcounterpageref{ch:five}{7}%
-  \Test\setcounterpageref{ch:six}{9}%
-  \Test\setcounterpageref{ch:seven}{13}%
-  \Test\addtocounterpageref{ch:two}{11}%
-  \Test\addtocounterpageref{ch:three}{13}%
-  \Test\addtocounterpageref{ch:four}{15}%
-  \Test\addtocounterpageref{ch:five}{17}%
-  \Test\addtocounterpageref{ch:six}{19}%
-  \Test\addtocounterpageref{ch:seven}{23}%
-  \Test\setcounterref{ch:two}{1}%
-  \Test\setcounterref{ch:three}{2}%
-  \Test\setcounterref{ch:four}{11}%
-  \Test\addtocounterref{ch:two}{11}%
-  \Test\addtocounterref{ch:three}{12}%
-  \Test\addtocounterref{ch:four}{21}%
-\fi
-\frontmatter
-\chapter{Chapter one}\label{ch:one}
-\cleardoublepage
-\mainmatter
-\chapter{Chapter two}\label{ch:two}
-\cleardoublepage
-\chapter{Chapter three}\label{ch:three}
-\cleardoublepage
-\setcounter{chapter}{10}
-\chapter{Chapter four}\label{ch:four}
-\cleardoublepage
-\appendix
-\chapter{Chapter five}\label{ch:five}
-\cleardoublepage
-\chapter{Chapter six}\label{ch:six}
-\cleardoublepage
-\null
-\cleardoublepage
-\chapter{Chapter seven}\label{ch:seven}
-\end{document}
-%</test5>
-%    \end{macrocode}
-%
-% \section{Installation}
+%% \section{Installation}
 %
 % \subsection{Download}
 %
@@ -1357,11 +924,6 @@ and the derived files
 % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}}
 %   refcount.sty & tex/latex/oberdiek/refcount.sty\\
 %   refcount.pdf & doc/latex/oberdiek/refcount.pdf\\
-%   test/refcount-test1.tex & doc/latex/oberdiek/test/refcount-test1.tex\\
-%   test/refcount-test2.tex & doc/latex/oberdiek/test/refcount-test2.tex\\
-%   test/refcount-test3.tex & doc/latex/oberdiek/test/refcount-test3.tex\\
-%   test/refcount-test4.tex & doc/latex/oberdiek/test/refcount-test4.tex\\
-%   test/refcount-test5.tex & doc/latex/oberdiek/test/refcount-test5.tex\\
 %   refcount.dtx & source/latex/oberdiek/refcount.dtx\\
 % \end{tabular}^^A
 % }^^A
-- 
cgit v1.2.3

