diff options
author | Karl Berry <karl@freefriends.org> | 2007-09-16 00:07:34 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2007-09-16 00:07:34 +0000 |
commit | d85f248e3b38ea0ecda38c5340e3cadd08d65346 (patch) | |
tree | 52e17f32b395006895b3917bc7729c7ac1514ae3 /Master/texmf-dist/source/latex/oberdiek/infwarerr.dtx | |
parent | 2389552f283181e0d8c610037712ade989112da3 (diff) |
oberdiek update (14sep07)
git-svn-id: svn://tug.org/texlive/trunk@4947 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/infwarerr.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/infwarerr.dtx | 162 |
1 files changed, 111 insertions, 51 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/infwarerr.dtx b/Master/texmf-dist/source/latex/oberdiek/infwarerr.dtx index 52e9e4fae56..6d9adc0fae2 100644 --- a/Master/texmf-dist/source/latex/oberdiek/infwarerr.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/infwarerr.dtx @@ -17,7 +17,8 @@ % This work consists of the main source file infwarerr.dtx % and the derived files % infwarerr.sty, infwarerr.pdf, infwarerr.ins, infwarerr.drv, -% infwarerr-test1.tex, infwarerr-test2.tex. +% infwarerr-test1.tex, infwarerr-test2.tex, +% infwarerr-test3.tex. % % Distribution: % CTAN:macros/latex/contrib/oberdiek/infwarerr.dtx @@ -54,6 +55,7 @@ % TDS:doc/latex/oberdiek/infwarerr.pdf % TDS:doc/latex/oberdiek/infwarerr-test1.tex % TDS:doc/latex/oberdiek/infwarerr-test2.tex +% TDS:doc/latex/oberdiek/infwarerr-test3.tex % TDS:source/latex/oberdiek/infwarerr.dtx % %<*ignore> @@ -69,7 +71,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: infwarerr 2007/06/14 v1.1 Providing info/warning/message (HO)} +\Msg{* Package: infwarerr 2007/09/09 v1.2 Providing info/warning/message (HO)} \Msg{************************************************************************} \keepsilent @@ -96,7 +98,8 @@ This Current Maintainer of this work is Heiko Oberdiek. This work consists of the main source file infwarerr.dtx and the derived files infwarerr.sty, infwarerr.pdf, infwarerr.ins, infwarerr.drv, - infwarerr-test1.tex, infwarerr-test2.tex. + infwarerr-test1.tex, infwarerr-test2.tex, + infwarerr-test3.tex. \endpreamble @@ -108,6 +111,7 @@ and the derived files \usedir{doc/latex/oberdiek}% \file{infwarerr-test1.tex}{\from{infwarerr.dtx}{test1}}% \file{infwarerr-test2.tex}{\from{infwarerr.dtx}{test2}}% + \file{infwarerr-test3.tex}{\from{infwarerr.dtx}{test3}}% } \obeyspaces @@ -133,7 +137,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{infwarerr.drv}% - [2007/06/14 v1.1 Providing info/warning/message (HO)]% + [2007/09/09 v1.2 Providing info/warning/message (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc} \begin{document} @@ -142,7 +146,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{657} +% \CheckSum{692} % % \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 @@ -163,7 +167,7 @@ and the derived files % \GetFileInfo{infwarerr.drv} % % \title{The \xpackage{infwarerr} package} -% \date{2007/06/14 v1.1} +% \date{2007/09/09 v1.2} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -270,39 +274,35 @@ and the derived files \fi \expandafter\x\csname ver@infwarerr.sty\endcsname \ProvidesPackage{infwarerr}% - [2007/06/14 v1.1 Providing info/warning/message (HO)] + [2007/09/09 v1.2 Providing info/warning/message (HO)] % \end{macrocode} % % \subsection{Catcodes} % % \begin{macrocode} -\expandafter\edef\csname InfWarErr@End\endcsname{% - \catcode39 \the\catcode39\relax % ' - \catcode40 \the\catcode40\relax % ( - \catcode41 \the\catcode41\relax % ) - \catcode44 \the\catcode44\relax % , - \catcode45 \the\catcode45\relax % - - \catcode46 \the\catcode46\relax % . - \catcode58 \the\catcode58\relax % : - \catcode60 \the\catcode60\relax % < - \catcode61 \the\catcode61\relax % = - \catcode62 \the\catcode62\relax % > - \catcode64 \the\catcode64\relax % @ - \catcode94 \the\catcode94\relax % ^ - \noexpand\endinput +\expandafter\edef\csname InfWarErr@AtEnd\endcsname{% + \catcode64 \the\catcode64\relax } -\catcode39 12 % ' -\catcode40 12 % ( -\catcode41 12 % ) -\catcode44 12 % , -\catcode45 12 % - -\catcode46 12 % . -\catcode58 12 % : -\catcode60 12 % < -\catcode61 12 % = -\catcode62 12 % > \catcode64 11 % @ -\catcode94 7 % ^ +\def\TMP@EnsureCode#1#2{% + \edef\InfWarErr@AtEnd{% + \InfWarErr@AtEnd + \catcode#1 \the\catcode#1\relax + }% + \catcode#1 #2\relax +} +\TMP@EnsureCode{10}{12}% ^^J +\TMP@EnsureCode{39}{12}% ' +\TMP@EnsureCode{40}{12}% ( +\TMP@EnsureCode{41}{12}% ) +\TMP@EnsureCode{44}{12}% , +\TMP@EnsureCode{45}{12}% - +\TMP@EnsureCode{46}{12}% . +\TMP@EnsureCode{58}{12}% : +\TMP@EnsureCode{60}{12}% < +\TMP@EnsureCode{61}{12}% = +\TMP@EnsureCode{62}{12}% > +\TMP@EnsureCode{94}{7}% ^ % \end{macrocode} % % \subsection{\LaTeX\ detection} @@ -388,8 +388,8 @@ and the derived files % \end{macrocode} % \end{macro} % \begin{macrocode} - \csname fi\endcsname - \InfWarErr@End + \InfWarErr@AtEnd + \expandafter\endinput \fi % \end{macrocode} % @@ -604,38 +604,92 @@ and the derived files % \end{macro} % % \begin{macrocode} -\InfWarErr@End +\InfWarErr@AtEnd %</package> % \end{macrocode} % % \section{Test} % +% \subsection{Catcode checks for loading} +% % \begin{macrocode} %<*test1> +% \end{macrocode} +% \begin{macrocode} +\catcode`\@=11 % +\def\RestoreCatcodes{} +\count@=0 % +\loop + \edef\RestoreCatcodes{% + \RestoreCatcodes + \catcode\the\count@=\the\catcode\count@\relax + }% +\ifnum\count@<255 % + \advance\count@\@ne +\repeat + +\def\RangeCatcodeInvalid#1#2{% + \count@=#1\relax + \loop + \catcode\count@=15 % + \ifnum\count@<#2\relax + \advance\count@\@ne + \repeat +} +\def\Test{% + \RangeCatcodeInvalid{0}{47}% + \RangeCatcodeInvalid{58}{64}% + \RangeCatcodeInvalid{91}{96}% + \RangeCatcodeInvalid{123}{255}% + \catcode`\@=12 % + \catcode`\\=0 % + \catcode`\{=1 % + \catcode`\}=2 % + \catcode`\#=6 % + \catcode`\[=12 % + \catcode`\]=12 % + \catcode`\%=14 % + \catcode`\ =10 % + \catcode13=5 % + \input infwarerr.sty\relax + \RestoreCatcodes +} +\Test +\csname @@end\endcsname +\end +% \end{macrocode} +% \begin{macrocode} +%</test1> +% \end{macrocode} +% +% \subsection{Macro tests} +% +% \begin{macrocode} +%<*test2> \let\PackageInfo\relax \input infwarerr.sty\relax \let\OrgWrite\write \chardef\WriteUnused=16 % \def\msg#{\immediate\OrgWrite\WriteUnused} -\msg{File: infwarerr-test1.tex 2007/06/14 v1.1 Test file for plain-TeX} +\msg{File: infwarerr-test2.tex 2007/09/09 v1.2 Test file for plain-TeX} \catcode64=11 % -%</test1> +%</test2> % \end{macrocode} % % \begin{macrocode} -%<*test2> +%<*test3> \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{infwarerr-test2.tex}[2007/06/14 v1.1 Test file for LaTeX] -\RequirePackage{infwarerr} +\ProvidesFile{infwarerr-test3.tex}[2007/09/09 v1.2 Test file for LaTeX] +\RequirePackage{infwarerr}[2007/09/09] \makeatletter \let\OrgWrite\write \chardef\WriteUnused=\@unused \def\msg#{\immediate\OrgWrite\WriteUnused} -%</test2> +%</test3> % \end{macrocode} % % \begin{macrocode} -%<*test1|test2> +%<*test2|test3> \def\pkgname{PACKAGE} \def\clsname{CLASS} \def\msgtext{MESSAGE\MessageBreak SECOND LINE} @@ -736,9 +790,9 @@ and the derived files }% } \def\TestError{% -%<test2> \let\write\OrgWrite -%<test2> \def\plaindots{} -%<test1> \def\plaindots{.^^J ...^^J} +%<test3> \let\write\OrgWrite +%<test3> \def\plaindots{} +%<test2> \def\plaindots{.^^J ...^^J} \@PackageError\pkgname\msgtext\hlptext \@TestError\@PackageError{% ! Package PACKAGE Error: MESSAGE^^J% @@ -788,8 +842,8 @@ and the derived files \begingroup \let~\space \edef\x{#2}% -%<test2> \@onelevel@sanitize\x -%<test2> \@onelevel@sanitize\ErrMessage +%<test3> \@onelevel@sanitize\x +%<test3> \@onelevel@sanitize\ErrMessage \ifx\x\ErrMessage \else \msg{}% @@ -813,11 +867,12 @@ and the derived files \TestInfo \TestWarning \TestError -%</test1|test2> -%<test1>\end -%<test2>\@@end +%</test2|test3> +%<test2>\end +%<test3>\@@end % \end{macrocode} % +% % \section{Installation} % % \subsection{Download} @@ -881,6 +936,7 @@ and the derived files % infwarerr.pdf & doc/latex/oberdiek/infwarerr.pdf\\ % infwarerr-test1.tex & doc/latex/oberdiek/infwarerr-test1.tex\\ % infwarerr-test2.tex & doc/latex/oberdiek/infwarerr-test2.tex\\ +% infwarerr-test3.tex & doc/latex/oberdiek/infwarerr-test3.tex\\ % infwarerr.dtx & source/latex/oberdiek/infwarerr.dtx\\ % \end{tabular}^^A % }^^A @@ -1008,7 +1064,11 @@ and the derived files % \end{Version} % \begin{Version}{2007/06/14 v1.1} % \item -% Small fixes +% Small fixes. +% \end{Version} +% \begin{Version}{2007/09/09 v1.2} +% \item +% Catcode section extended. % \end{Version} % \end{History} % |