diff options
author | Karl Berry <karl@freefriends.org> | 2019-12-04 22:54:28 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2019-12-04 22:54:28 +0000 |
commit | 892c21b6bddf968f85a4de0de3d289ff9f27da5f (patch) | |
tree | d5a8870e9518c9a9bd53b56e2f1ddc18e8f5f1b1 /Master/texmf-dist/source/latex/oberdiek/hopatch.dtx | |
parent | 70220b77fcae855692634cec42e89f758fd050d4 (diff) |
oberdiek trimmed more; move some of the new packages among collections per usage
git-svn-id: svn://tug.org/texlive/trunk@53027 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/hopatch.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/hopatch.dtx | 204 |
1 files changed, 6 insertions, 198 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx b/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx index 4957ec3e836..17712fc2cc2 100644 --- a/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/hopatch.dtx @@ -63,8 +63,6 @@ % Installation: % TDS:tex/latex/oberdiek/hopatch.sty % TDS:doc/latex/oberdiek/hopatch.pdf -% TDS:doc/latex/oberdiek/test/hopatch-test1.tex -% TDS:doc/latex/oberdiek/test/hopatch-test2.tex % TDS:source/latex/oberdiek/hopatch.dtx % %<*ignore> @@ -133,10 +131,6 @@ and the derived files % \usedir{doc/latex/oberdiek/test}% % \file{hopatch-test1.tex}{\from{hopatch.dtx}{test1}}% % \file{hopatch-test2.tex}{\from{hopatch.dtx}{test2}}% - \nopreamble - \nopostamble -% \usedir{source/latex/oberdiek/catalogue}% -% \file{hopatch.xml}{\from{hopatch.dtx}{catalogue}}% } \catcode32=13\relax% active space @@ -177,21 +171,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{hopatch.drv} % @@ -517,176 +496,7 @@ and the derived files % \begin{macrocode} %</package> % \end{macrocode} -% -% \section{Test} -% -% \begin{macrocode} -%<*test1> -\def\LoadCommand{\RequirePackage{hopatch}[2016/05/16]} -%</test1> -% \end{macrocode} -% \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 hopatch.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} -% -% \begin{macrocode} -%<*test2> -\NeedsTeXFormat{LaTeX2e} -\providecommand\variant{0} -\RequirePackage{filecontents} -\begin{filecontents}{foo.sty} -\ProvidesPackage{foo} -\def\msg#{\immediate\write16} -\def\foo#1{% - \msg{\fooformat{#1}}% -} -\def\fooformat#1{[#1]}% hash-ok -\foo{* Executing foo at package loading} -\end{filecontents} - -\ifnum\variant=1 % - \documentclass{memoir}% -\else - \documentclass{article}% -\fi - -\ifcase\variant\relax -\or % 1 -\or % 2 - \usepackage{etoolbox}% -\or % 3 - \usepackage{scrlfile}% -\or % 4 - \usepackage{filehook}% -\fi - -\AtBeginDocument{\foo{* AtBeginDocument before hopatch}} -\usepackage{hopatch} -\AtBeginDocument{\foo{* AtBeginDocument after hopatch}} - -\makeatletter -\hopatch@AfterPackage{foo}{% - \def\fooformat#1{<<#1>>}% -} -\makeatother - -\AtBeginDocument{\foo{* AtBeginDocument before foo}} -\usepackage{foo} -\AtBeginDocument{\foo{* AtBeginDocument after foo}} - -\foo{* Executing in preamble} - -\begin{document} -\foo{* Executing in document} -\end{document} -%</test2> -% \end{macrocode} -% -% \section{Installation} +%% \section{Installation} % % \subsection{Download} % @@ -735,8 +545,6 @@ and the derived files % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}} % hopatch.sty & tex/latex/oberdiek/hopatch.sty\\ % hopatch.pdf & doc/latex/oberdiek/hopatch.pdf\\ -% test/hopatch-test1.tex & doc/latex/oberdiek/test/hopatch-test1.tex\\ -% test/hopatch-test2.tex & doc/latex/oberdiek/test/hopatch-test2.tex\\ % hopatch.dtx & source/latex/oberdiek/hopatch.dtx\\ % \end{tabular}^^A % }^^A @@ -854,31 +662,31 @@ and the derived files % Philipp Lehman: % \textit{The etoolbox Package} % 2011-01-03. -% \CTAN{macros/latex/contrib/etoolbox/etoolbox.pdf} +% \CTANpkg{etoolbox} % % \bibitem{filehook} % Martin Scharrer: % \textit{The filehook Package}; % 2011-01-09. -% \CTAN{macros/latex/contrib/filehook/filehook.pdf} +% \CTANpkg{filehook} % % \bibitem{ltxcmds} % Heiko Oberdiek: % \textit{The ltxcmds Package}; % 2010-12-12. -% \CTAN{macros/latex/contrib/oberdiek/ltxcmds.pdf} +% \CTANpkg{ltxcmds} % % \bibitem{memoir} % Peter Wilson, Lars Madsen: % \textit{The Memoir Class for Configurable Typesetting, User Guide}; % 2010. -% \CTAN{macros/latex/contrib/memoir/memman.pdf} +% \CTANpkg{memoir} % % \bibitem{scrlfile} % Markus Kohm, Jens-Uwe Morawski: % \textit{The Guide KOMA-Script}; % 2011-01-20. -% \CTAN{macros/latex/contrib/koma-script/scrguien.pdf} +% \CTANpkg{koma-script} % % \end{thebibliography} % |