diff options
Diffstat (limited to 'Master/texmf-dist/source/latex/oberdiek/engord.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/engord.dtx | 109 |
1 files changed, 94 insertions, 15 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/engord.dtx b/Master/texmf-dist/source/latex/oberdiek/engord.dtx index 02dd0afd063..a8ef4e5e11f 100644 --- a/Master/texmf-dist/source/latex/oberdiek/engord.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/engord.dtx @@ -17,7 +17,8 @@ % % This work consists of the main source file engord.dtx % and the derived files -% engord.sty, engord.pdf, engord.ins, engord.drv. +% engord.sty, engord.pdf, engord.ins, engord.drv, +% engord-test1.tex. % % Distribution: % CTAN:macros/latex/contrib/oberdiek/engord.dtx @@ -52,6 +53,7 @@ % Installation: % TDS:tex/generic/oberdiek/engord.sty % TDS:doc/latex/oberdiek/engord.pdf +% TDS:doc/latex/oberdiek/engord-test1.tex % TDS:source/latex/oberdiek/engord.dtx % %<*ignore> @@ -67,7 +69,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: engord 2007/04/26 v1.4 Provides the ifpdf switch (HO)} +\Msg{* Package: engord 2007/09/09 v1.5 Provides the ifpdf switch (HO)} \Msg{************************************************************************} \keepsilent @@ -94,7 +96,8 @@ This Current Maintainer of this work is Heiko Oberdiek. This work consists of the main source file engord.dtx and the derived files - engord.sty, engord.pdf, engord.ins, engord.drv. + engord.sty, engord.pdf, engord.ins, engord.drv, + engord-test1.tex. \endpreamble @@ -103,6 +106,8 @@ and the derived files \file{engord.drv}{\from{engord.dtx}{driver}}% \usedir{tex/generic/oberdiek}% \file{engord.sty}{\from{engord.dtx}{package}}% + \usedir{doc/latex/oberdiek}% + \file{engord-test1.tex}{\from{engord.dtx}{test1}}% } \obeyspaces @@ -128,7 +133,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{engord.drv}% - [2007/04/26 v1.4 Provides the ifpdf switch (HO)]% + [2007/09/09 v1.5 Provides the ifpdf switch (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc} \begin{document} @@ -137,7 +142,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{281} +% \CheckSum{369} % % \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 @@ -158,7 +163,7 @@ and the derived files % \GetFileInfo{engord.drv} % % \title{The \xpackage{engord} package} -% \date{2007/04/26 v1.4} +% \date{2007/09/09 v1.5} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -318,18 +323,33 @@ and the derived files \fi \expandafter\x\csname ver@engord.sty\endcsname \ProvidesPackage{engord}% - [2007/04/26 v1.4 Provides the ifpdf switch (HO)] + [2007/09/09 v1.5 Provides the ifpdf switch (HO)] % \end{macrocode} % % \subsection{Help commands for plain compatibility} % -% \begin{macro}{\EO@atcode} -% Save catcode of |@|. % \begin{macrocode} -\expandafter\chardef\csname EO@atcode\endcsname\catcode`\@ -\catcode`\@=11 % +\expandafter\edef\csname EO@AtEnd\endcsname{% + \catcode64 \the\catcode64\relax +} +\catcode64 11 % @ +\def\TMP@EnsureCode#1#2{% + \edef\EO@AtEnd{% + \EO@AtEnd + \catcode#1 \the\catcode#1\relax + }% + \catcode#1 #2\relax +} +\TMP@EnsureCode{33}{12}% ! +\TMP@EnsureCode{36}{3}% $ +\TMP@EnsureCode{39}{12}% ' +\TMP@EnsureCode{42}{12}% * +\TMP@EnsureCode{46}{12}% . +\TMP@EnsureCode{47}{12}% / +\TMP@EnsureCode{60}{12}% < +\TMP@EnsureCode{94}{7}% ^(superscript) +\TMP@EnsureCode{96}{12}% ` % \end{macrocode} -% \end{macro} % % \begin{macro}{\EO@def} % Definitions, \cs{newcommand} does not exist in \plainTeX. @@ -350,7 +370,7 @@ and the derived files \expandafter\ifx\csname RequirePackage\endcsname\relax \input infwarerr.sty\relax \else - \RequirePackage{infwarerr}% + \RequirePackage{infwarerr}[2007/09/09]% \fi % \end{macrocode} % @@ -556,14 +576,68 @@ and the derived files % \end{macrocode} % \end{macro} % -% Restore catcode of |@|. % \begin{macrocode} -\catcode`\@=\EO@atcode +\EO@AtEnd % \end{macrocode} % % \begin{macrocode} %</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 engord.sty\relax + \RestoreCatcodes +} +\Test +\csname @@end\endcsname +\end +% \end{macrocode} +% \begin{macrocode} +%</test1> +% \end{macrocode} +% % \section{Installation} % % \subsection{Download} @@ -625,6 +699,7 @@ and the derived files % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}} % engord.sty & tex/generic/oberdiek/engord.sty\\ % engord.pdf & doc/latex/oberdiek/engord.pdf\\ +% engord-test1.tex & doc/latex/oberdiek/engord-test1.tex\\ % engord.dtx & source/latex/oberdiek/engord.dtx\\ % \end{tabular}^^A % }^^A @@ -774,6 +849,10 @@ and the derived files % \item % Use of package \xpackage{infwarerr}. % \end{Version} +% \begin{Version}{2007/09/09 v1.5} +% \item +% Catcode section added. +% \end{Version} % \end{History} % % \PrintIndex |