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/ifvtex.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/ifvtex.dtx')
-rw-r--r-- | Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx | 108 |
1 files changed, 101 insertions, 7 deletions
diff --git a/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx b/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx index 7c49345733b..3b81603977f 100644 --- a/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx +++ b/Master/texmf-dist/source/latex/oberdiek/ifvtex.dtx @@ -17,7 +17,8 @@ % % This work consists of the main source file ifvtex.dtx % and the derived files -% ifvtex.sty, ifvtex.pdf, ifvtex.ins, ifvtex.drv. +% ifvtex.sty, ifvtex.pdf, ifvtex.ins, ifvtex.drv, +% ifvtex-test1.tex. % % Distribution: % CTAN:macros/latex/contrib/oberdiek/ifvtex.dtx @@ -52,6 +53,7 @@ % Installation: % TDS:tex/generic/oberdiek/ifvtex.sty % TDS:doc/latex/oberdiek/ifvtex.pdf +% TDS:doc/latex/oberdiek/ifvtex-test1.tex % TDS:source/latex/oberdiek/ifvtex.dtx % %<*ignore> @@ -67,7 +69,7 @@ \input docstrip.tex \Msg{************************************************************************} \Msg{* Installation} -\Msg{* Package: ifvtex 2007/01/10 v1.2 Switches for detecting VTeX and its modes (HO)} +\Msg{* Package: ifvtex 2007/09/09 v1.3 Switches for detecting VTeX and its modes (HO)} \Msg{************************************************************************} \keepsilent @@ -94,7 +96,8 @@ This Current Maintainer of this work is Heiko Oberdiek. This work consists of the main source file ifvtex.dtx and the derived files - ifvtex.sty, ifvtex.pdf, ifvtex.ins, ifvtex.drv. + ifvtex.sty, ifvtex.pdf, ifvtex.ins, ifvtex.drv, + ifvtex-test1.tex. \endpreamble @@ -103,6 +106,8 @@ and the derived files \file{ifvtex.drv}{\from{ifvtex.dtx}{driver}}% \usedir{tex/generic/oberdiek}% \file{ifvtex.sty}{\from{ifvtex.dtx}{package}}% + \usedir{doc/latex/oberdiek}% + \file{ifvtex-test1.tex}{\from{ifvtex.dtx}{test1}}% } \obeyspaces @@ -128,7 +133,7 @@ and the derived files %<*driver> \NeedsTeXFormat{LaTeX2e} \ProvidesFile{ifvtex.drv}% - [2007/01/10 v1.2 Switches for detecting VTeX and its modes (HO)]% + [2007/09/09 v1.3 Switches for detecting VTeX and its modes (HO)]% \documentclass{ltxdoc} \usepackage{holtxdoc} \begin{document} @@ -137,7 +142,7 @@ and the derived files %</driver> % \fi % -% \CheckSum{237} +% \CheckSum{340} % % \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{ifvtex.drv} % % \title{The \xpackage{ifvtex} package} -% \date{2007/01/10 v1.2} +% \date{2007/09/09 v1.3} % \author{Heiko Oberdiek\\\xemail{oberdiek@uni-freiburg.de}} % % \maketitle @@ -277,9 +282,36 @@ and the derived files \fi \expandafter\x\csname ver@ifvtex.sty\endcsname \ProvidesPackage{ifvtex}% - [2007/01/10 v1.2 Switches for detecting VTeX and its modes (HO)] + [2007/09/09 v1.3 Switches for detecting VTeX and its modes (HO)] % \end{macrocode} % +% \subsection{Catcodes} +% +% \begin{macrocode} +\expandafter\edef\csname ifvtex@AtEnd\endcsname{% + \catcode64 \the\catcode64\relax +} +\catcode64 11 % @ +\def\TMP@EnsureCode#1#2{% + \edef\ifvtex@AtEnd{% + \ifvtex@AtEnd + \catcode#1 \the\catcode#1\relax + }% + \catcode#1 #2\relax +} +\TMP@EnsureCode{10}{12}% ^^J +\TMP@EnsureCode{39}{12}% ' +\TMP@EnsureCode{44}{12}% , +\TMP@EnsureCode{45}{12}% - +\TMP@EnsureCode{46}{12}% . +\TMP@EnsureCode{47}{12}% / +\TMP@EnsureCode{58}{12}% : +\TMP@EnsureCode{60}{12}% < +\TMP@EnsureCode{61}{12}% = +\TMP@EnsureCode{62}{12}% > +\TMP@EnsureCode{94}{7}% ^ +\TMP@EnsureCode{96}{12}% ` +% \end{macrocode} % % \subsection{Check for previously defined \cs{ifvtex}} % @@ -307,6 +339,7 @@ and the derived files therefore package loading is aborted.% }% \endgroup + \ifvtex@AtEnd \expandafter\endinput \fi \endgroup @@ -394,8 +427,64 @@ and the derived files % \end{macrocode} % % \begin{macrocode} +\ifvtex@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 ifvtex.sty\relax + \RestoreCatcodes +} +\Test +\csname @@end\endcsname +\end +% \end{macrocode} +% \begin{macrocode} +%</test1> +% \end{macrocode} +% % \section{Installation} % % \subsection{Download} @@ -457,6 +546,7 @@ and the derived files % \begin{tabular}{@{}>{\ttfamily}l@{ $\rightarrow$ }>{\ttfamily}l@{}} % ifvtex.sty & tex/generic/oberdiek/ifvtex.sty\\ % ifvtex.pdf & doc/latex/oberdiek/ifvtex.pdf\\ +% ifvtex-test1.tex & doc/latex/oberdiek/ifvtex-test1.tex\\ % ifvtex.dtx & source/latex/oberdiek/ifvtex.dtx\\ % \end{tabular}^^A % }^^A @@ -592,6 +682,10 @@ and the derived files % \item % Fix of the \cs{ProvidesPackage} description. % \end{Version} +% \begin{Version}{2007/09/09 v1.3} +% \item +% Catcode section added. +% \end{Version} % \end{History} % % \PrintIndex |