diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/catchfile-test1.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/oberdiek/catchfile-test1.tex | 63 |
1 files changed, 41 insertions, 22 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/catchfile-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/catchfile-test1.tex index dfc71ac43e0..db2fbc18b9e 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/catchfile-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/catchfile-test1.tex @@ -25,31 +25,50 @@ %% This work consists of the main source file catchfile.dtx %% and the derived files %% catchfile.sty, catchfile.pdf, catchfile.ins, catchfile.drv, -%% catchfile-test1.tex, catchfile-test2.tex. +%% catchfile-test1.tex, catchfile-test2.tex, +%% catchfile-test3.tex. %% -\NeedsTeXFormat{LaTeX2e} -\nofiles -\listfiles -\documentclass{minimal} -\usepackage{catchfile}[2007/05/30] -\makeatletter -\def\mysetup{% - \let\do\@makeother - \dospecials -} -\makeatother -\begin{document} - -\CatchFileDef\contents{catchfile.sty}\mysetup -\typeout{\meaning\contents} +\catcode`\@=11 % +\def\RestoreCatcodes{} +\count@=0 % +\loop + \edef\RestoreCatcodes{% + \RestoreCatcodes + \catcode\the\count@=\the\catcode\count@\relax + }% +\ifnum\count@<255 % + \advance\count@\@ne +\repeat -\CatchFileEdef\contents{catchfile.sty}{% - \mysetup - \def\par{^^J}% - \obeylines +\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 catchfile.sty\relax + \RestoreCatcodes } -\typeout{\contents} -\end{document} +\Test +\csname @@end\endcsname +\end \endinput %% %% End of file `catchfile-test1.tex'. |