diff options
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test')
136 files changed, 4431 insertions, 495 deletions
diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/alphalph-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/alphalph-test1.tex index ffd8c873577..bec6d0bd3ef 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/alphalph-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/alphalph-test1.tex @@ -85,6 +85,22 @@ \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 alphalph.sty\relax}% \fi @@ -95,15 +111,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-a.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-a.tex index 6f119863a66..25e9f79c9b5 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-a.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-a.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-b.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-b.tex index 29a99e11b1c..9ed2da5c524 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-b.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-b.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-c.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-c.tex index bece50e5c11..fe26c1d7232 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-c.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-c.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test1.tex index 22ce3321448..c0783a48f65 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test1.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test10.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test10.tex index 298997ce844..f15f619abe9 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test10.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test10.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test11.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test11.tex index f5bd3761d7c..b764ef0dfeb 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test11.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test11.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test12.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test12.tex index bbbf382ec47..3b424d53d26 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test12.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test12.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test13.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test13.tex index b3984b99048..a39075e6f98 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test13.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test13.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test14.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test14.tex index 201e1d829d7..aefc293b6de 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test14.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test14.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test15.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test15.tex index c31ea201e2f..d42c7db326a 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test15.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test15.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test16.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test16.tex index 6a0df4090f3..190567a1d4e 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test16.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test16.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test17.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test17.tex index eab66b2acda..47624689f07 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test17.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test17.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test18.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test18.tex index 1583e0bb4cc..909175e71f7 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test18.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test18.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test19.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test19.tex index 5dbe5b96607..4fb4aac1fca 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test19.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test19.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test2.tex index 92765c39d29..ed38400536e 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test2.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test20.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test20.tex index 7bd5a1ff7a6..4309034e439 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test20.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test20.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test21.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test21.tex index 0078a29fe13..80449c70976 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test21.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test21.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test22.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test22.tex index 03b40603854..06ae7f54c8b 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test22.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test22.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test23.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test23.tex index 88302f0b0bf..f42d6692c84 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test23.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test23.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test24.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test24.tex index 602b69549f8..b932b783091 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test24.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test24.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test3.tex index 273438f4166..97eaa11d8a7 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test3.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test4.tex index 484de4d97cc..217a1de16d1 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test4.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test4.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test5.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test5.tex index 0bc550b3bc5..585820e49c6 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test5.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test5.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test6.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test6.tex index e7714c762a9..f461913c5fe 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test6.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test6.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test7.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test7.tex index b26b6f694ae..acf492ef93c 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test7.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test7.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test8.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test8.tex index c7512dec79c..de51b00cef4 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test8.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test8.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test9.tex b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test9.tex index 2611861373b..847ab82b315 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test9.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/askinclude-test9.tex @@ -9,7 +9,7 @@ %% This is a generated file. %% %% Copyright (C) 1991-1994 by Pablo A. Straub -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2008 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test1.tex index ae5199667a9..0f20d77d205 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2010 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -86,6 +86,22 @@ \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 atbegshi.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test2.tex index 24fec3288e1..3c64c1eb1dc 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2010 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -36,7 +36,7 @@ %% \input atbegshi.sty\relax \def\msg#{\immediate\write16} -\msg{File: atbegshi-test2.tex 2010/03/25 v1.12 Test file for plain-TeX} +\msg{File: atbegshi-test2.tex 2011/01/30 v1.15 Test file for plain-TeX} \def\testmsg#1#2{% \msg{}% \msg{*** Test with box (#1), expected page output [#2]}% hash-ok diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test3.tex index a699700688c..72107bd9b6b 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/atbegshi-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2010 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -35,7 +35,7 @@ %% atbegshi-test1.tex, atbegshi-test2.tex, atbegshi-test3.tex. %% \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{atbegshi-test3.tex}[2010/03/25 v1.12 Test file for LaTeX] +\ProvidesFile{atbegshi-test3.tex}[2011/01/30 v1.15 Test file for LaTeX] \RequirePackage{color} \pagecolor{yellow} \documentclass[a5paper,showtrims]{memoir} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/atveryend-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/atveryend-test1.tex index bf218150fa6..672e94b38bd 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/atveryend-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/atveryend-test1.tex @@ -82,6 +82,22 @@ \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 atveryend.sty\relax}% \fi @@ -92,15 +108,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test1.tex index 9022016595d..36967553a7a 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -86,6 +86,22 @@ \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 bigintcalc.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test2.tex index 8d66226a917..b15ff93b412 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -40,7 +40,7 @@ \makeatletter \chardef\BIC@TestMode=1 % \makeatother -\usepackage{bigintcalc}[2007/11/11] +\usepackage{bigintcalc}[2011/01/30] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test3.tex index 786a9eb675c..39019d258b0 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/bigintcalc-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -42,7 +42,7 @@ \makeatletter \chardef\BIC@TestMode=1 % \makeatother -\usepackage{bigintcalc}[2007/11/11] +\usepackage{bigintcalc}[2011/01/30] \let\numexpr\SavedNumexpr \usepackage{qstest} \IncludeTests{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test1.tex index 43c23842e29..dccc345a758 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -85,6 +85,22 @@ \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 bitset.sty\relax}% \fi @@ -95,15 +111,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test2.tex index 81c2c8d18ff..7a1dc4ac87a 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -40,7 +40,7 @@ \makeatletter \chardef\BitSet@TestMode=1 % \makeatother -\usepackage{bitset}[2007/09/28] +\usepackage{bitset}[2011/01/30] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test3.tex index d4fc4c3478b..3941b9d4440 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/bitset-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -49,7 +49,7 @@ \makeatletter \chardef\BitSet@TestMode=1 % \makeatother -\usepackage{bitset}[2007/09/28] +\usepackage{bitset}[2011/01/30] \def\ETeXEnable{% \let\numexpr\SavedNumexpr \let\ifcsname\SavedIfcsname diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test1.tex index a5bf7bac44e..757268c3cfe 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -86,6 +86,22 @@ \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 catchfile.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test2.tex index 8c479370a03..5b56dda02df 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -39,7 +39,7 @@ \listfiles \tracingnesting=2 % \documentclass{minimal} -\usepackage{catchfile}[2010/04/28] +\usepackage{catchfile}[2011/03/01] \makeatletter \def\mysetup{% \let\do\@makeother diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test3.tex index 60221d3580a..a8e183c6641 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/catchfile-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test1.tex index 24010d81065..41128b33e6f 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test1.tex @@ -30,9 +30,8 @@ %% %% This work consists of the main source file embedfile.dtx %% and the derived files -%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, -%% \immediate \write 18 {mkdir -p texmf/tex/latex/oberdiek}\edef {texmf/tex/latex/oberdiek}, dtx-attach.sty, -%% embedfile-example-plain.tex, +%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, \immediate \write 18 {mkdir -p texmf/,}\edef {texmf/,} +%% dtx-attach.sty, embedfile-example-plain.tex, %% embedfile-example-collection.tex, embedfile-test1.tex, %% embedfile-test2.tex, embedfile-test3.tex, %% embedfile-test4.tex. @@ -89,6 +88,22 @@ \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 embedfile.sty\relax}% \fi @@ -99,15 +114,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test2.tex index 8f54c1dd110..5f0cf9d3689 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test2.tex @@ -30,9 +30,8 @@ %% %% This work consists of the main source file embedfile.dtx %% and the derived files -%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, -%% \immediate \write 18 {mkdir -p texmf/tex/latex/oberdiek}\edef {texmf/tex/latex/oberdiek}, dtx-attach.sty, -%% embedfile-example-plain.tex, +%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, \immediate \write 18 {mkdir -p texmf/,}\edef {texmf/,} +%% dtx-attach.sty, embedfile-example-plain.tex, %% embedfile-example-collection.tex, embedfile-test1.tex, %% embedfile-test2.tex, embedfile-test3.tex, %% embedfile-test4.tex. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test3.tex index b12a469a08e..004a71f8d4b 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test3.tex @@ -30,9 +30,8 @@ %% %% This work consists of the main source file embedfile.dtx %% and the derived files -%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, -%% \immediate \write 18 {mkdir -p texmf/tex/latex/oberdiek}\edef {texmf/tex/latex/oberdiek}, dtx-attach.sty, -%% embedfile-example-plain.tex, +%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, \immediate \write 18 {mkdir -p texmf/,}\edef {texmf/,} +%% dtx-attach.sty, embedfile-example-plain.tex, %% embedfile-example-collection.tex, embedfile-test1.tex, %% embedfile-test2.tex, embedfile-test3.tex, %% embedfile-test4.tex. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test4.tex index 44bea5dca84..3afda387b57 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test4.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/embedfile-test4.tex @@ -30,9 +30,8 @@ %% %% This work consists of the main source file embedfile.dtx %% and the derived files -%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, -%% \immediate \write 18 {mkdir -p texmf/tex/latex/oberdiek}\edef {texmf/tex/latex/oberdiek}, dtx-attach.sty, -%% embedfile-example-plain.tex, +%% embedfile.sty, embedfile.pdf, embedfile.ins, embedfile.drv, \immediate \write 18 {mkdir -p texmf/,}\edef {texmf/,} +%% dtx-attach.sty, embedfile-example-plain.tex, %% embedfile-example-collection.tex, embedfile-test1.tex, %% embedfile-test2.tex, embedfile-test3.tex, %% embedfile-test4.tex. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/engord-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/engord-test1.tex index f67a7ecaace..da859530ae1 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/engord-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/engord-test1.tex @@ -84,6 +84,22 @@ \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 engord.sty\relax}% \fi @@ -94,15 +110,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/eolgrab-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/eolgrab-test1.tex new file mode 100644 index 00000000000..93ade7b8f58 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/eolgrab-test1.tex @@ -0,0 +1,137 @@ +%% +%% This is file `eolgrab-test1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% eolgrab.dtx (with options: `test1') +%% +%% This is a generated file. +%% +%% Copyright (C) 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file eolgrab.dtx +%% and the derived files +%% eolgrab.sty, eolgrab.pdf, eolgrab.ins, eolgrab.drv, +%% eolgrab-example-ltx.tex, eolgrab-example-env.tex, +%% eolgrab-example-sec.tex, eolgrab-test1.tex, +%% eolgrab-test2.tex. +%% +\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 eolgrab.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 +\endinput +%% +%% End of file `eolgrab-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/eolgrab-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/eolgrab-test2.tex new file mode 100644 index 00000000000..6e7b77816c4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/eolgrab-test2.tex @@ -0,0 +1,67 @@ +%% +%% This is file `eolgrab-test2.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% eolgrab.dtx (with options: `test2') +%% +%% This is a generated file. +%% +%% Copyright (C) 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file eolgrab.dtx +%% and the derived files +%% eolgrab.sty, eolgrab.pdf, eolgrab.ins, eolgrab.drv, +%% eolgrab-example-ltx.tex, eolgrab-example-env.tex, +%% eolgrab-example-sec.tex, eolgrab-test1.tex, +%% eolgrab-test2.tex. +%% +\input eolgrab.sty\relax +\catcode`\{=1 % +\catcode`\}=2 % +\eolgrab{\immediate\write16}Hello World +\def\TestExpected{foo bar} +\eolgrab{\def\TestResult}foo bar + +\ifx\TestExpected\TestResult + \immediate\write16{* Ok (foo bar)}% +\else + \errmessage{Test failed (foo bar)}% +\fi + +\begingroup + \def\TestExpected{foobar}% + \endlinechar=-1 % + \eolgrab{\def\TestResult}foo + bar + ^^M + \ifx\TestExpected\TestResult + \immediate\write16{* Ok (foobar)}% + \else + \errmessage{Test failed (foobar)}% + \fi +\endgroup + +\csname @@end\endcsname\end +\endinput +%% +%% End of file `eolgrab-test2.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/epstopdf-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/epstopdf-test1.tex index abc4ebab291..b4d72bd3437 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/epstopdf-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/epstopdf-test1.tex @@ -86,6 +86,22 @@ \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 epstopdf.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test1.tex index a3c05239b76..7c5439c09b6 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -86,6 +86,22 @@ \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 etexcmds.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test2.tex index 7e571433672..6f62457e88f 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test3.tex index f9e449bf258..757e9b8f97e 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -35,7 +35,7 @@ %% etexcmds-test4.tex. %% \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{etexcmds-test3.tex}[2010/01/28 v1.3 Test file for LaTeX] +\ProvidesFile{etexcmds-test3.tex}[2011/02/16 v1.5 Test file for LaTeX] \RequirePackage{etexcmds} \makeatletter \edef\x{\string\unexpanded} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test4.tex index e028d124350..16512cb8ebe 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test4.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/etexcmds-test4.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -35,7 +35,7 @@ %% etexcmds-test4.tex. %% \NeedsTeXFormat{LaTeX2e} -\ProvidesFile{etexcmds-test4.tex}[2010/01/28 v1.3 Test file for LaTeX] +\ProvidesFile{etexcmds-test4.tex}[2011/02/16 v1.5 Test file for LaTeX] \documentclass{article} \usepackage{m-pictex} \def\normalwritestatus#1#2{% diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/gettitlestring-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/gettitlestring-test1.tex index 39d6f48c644..8dca7f66d9f 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/gettitlestring-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/gettitlestring-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2009 by +%% Copyright (C) 2009, 2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -86,6 +86,22 @@ \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 gettitlestring.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/gettitlestring-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/gettitlestring-test2.tex index de3ebd2176f..1d2b01cd233 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/gettitlestring-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/gettitlestring-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2009 by +%% Copyright (C) 2009, 2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -36,7 +36,7 @@ %% \NeedsTeXFormat{LaTeX2e} \documentclass{minimal} -\usepackage{gettitlestring}[2009/12/18] +\usepackage{gettitlestring}[2010/12/03] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/grfext-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/grfext-test1.tex index aa3b9e29b58..5242ff9ae04 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/grfext-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/grfext-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -84,6 +84,22 @@ \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 grfext.sty\relax}% \fi @@ -94,15 +110,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/grfext-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/grfext-test2.tex index 626fd097fb5..2a1cb69deca 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/grfext-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/grfext-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007 by +%% Copyright (C) 2007, 2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -34,7 +34,7 @@ \nofiles \documentclass{article} \usepackage[pdftex]{graphics} -\usepackage{grfext}[2007/09/30] +\usepackage{grfext}[2010/08/19] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hobsub-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hobsub-test1.tex new file mode 100644 index 00000000000..ac59f8466f5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hobsub-test1.tex @@ -0,0 +1,135 @@ +%% +%% This is file `hobsub-test1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% hobsub.dtx (with options: `test1') +%% +%% This is a generated file. +%% +%% Copyright (C) 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file hobsub.dtx +%% and the derived files +%% hobsub.sty, hobsub.pdf, hobsub.ins, hobsub.drv, hobsub-generic.sty, +%% hobsub-hyperref.sty, hobsub-test1.tex. +%% +\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 hobsub.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 +\endinput +%% +%% End of file `hobsub-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hopatch-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hopatch-test1.tex new file mode 100644 index 00000000000..fcc069e2cb1 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hopatch-test1.tex @@ -0,0 +1,133 @@ +%% +%% This is file `hopatch-test1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% hopatch.dtx (with options: `test1') +%% +%% This is a generated file. +%% +%% Copyright (C) 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file hopatch.dtx +%% and the derived files +%% hopatch.sty, hopatch.pdf, hopatch.ins, hopatch.drv, +%% hopatch-test1.tex, hopatch-test2.tex. +%% +\def\LoadCommand{\RequirePackage{hopatch}[2011/01/30]} +\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 +\endinput +%% +%% End of file `hopatch-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hopatch-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hopatch-test2.tex new file mode 100644 index 00000000000..8ab9265f618 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hopatch-test2.tex @@ -0,0 +1,83 @@ +%% +%% This is file `hopatch-test2.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% hopatch.dtx (with options: `test2') +%% +%% This is a generated file. +%% +%% Copyright (C) 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file hopatch.dtx +%% and the derived files +%% hopatch.sty, hopatch.pdf, hopatch.ins, hopatch.drv, +%% hopatch-test1.tex, hopatch-test2.tex. +%% +\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} +\endinput +%% +%% End of file `hopatch-test2.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol1.tex index e16fcb52415..7d8d711e2bf 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2009 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -37,7 +37,7 @@ \nofiles \documentclass{minimal} \usepackage{xcolor} -\usepackage{xcolor-patch}[2009/12/12] +\usepackage{xcolor-patch}[2011/01/30] \makeatletter \newcommand*{\ColModList}{% rgb,% diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol2.tex index ce1a532d657..58f3a3bc6e7 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2009 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -37,7 +37,7 @@ \nofiles \documentclass{minimal} \usepackage{scrlfile} -\usepackage{xcolor-patch}[2009/12/12] +\usepackage{xcolor-patch}[2011/01/30] \usepackage{xcolor} \makeatletter \newcommand*{\ColModList}{% diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol3.tex index 60673dd01dd..918a4db9434 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2009 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -36,7 +36,7 @@ \NeedsTeXFormat{LaTeX2e} \nofiles \documentclass{minimal} -\usepackage{xcolor-patch}[2009/12/12] +\usepackage{xcolor-patch}[2011/01/30] \usepackage{xcolor} \begin{document} \makeatletter diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol4.tex index 95d8bde5eeb..201e1812a11 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol4.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test-xcol4.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2009 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -36,7 +36,7 @@ \NeedsTeXFormat{LaTeX2e} \documentclass{article} \usepackage{xcolor} -\usepackage{xcolor-patch}[2009/12/12] +\usepackage{xcolor-patch}[2011/01/30] \makeatletter \protected@edef\x{\fbox{abc}} \let\@tempa\@undefined diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test1.tex index 69ee0e64edc..9fed052945c 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2009 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,7 +33,7 @@ %% hycolor-test-xcol2.tex, hycolor-test-xcol3.tex, %% hycolor-test-xcol4.tex. %% -\ProvidesFile{hycolor-test1.tex}[2009/12/12 test file 1] +\ProvidesFile{hycolor-test1.tex}[2011/01/30 test file 1] \documentclass{article} \usepackage{qstest} @@ -73,7 +73,7 @@ \Expect*{\@ResultErrorMessage}*{\@ExpectErrorMessage}% } \usepackage{scrlfile} -\usepackage{hycolor}[2009/12/12] +\usepackage{hycolor}[2011/01/30] \begin{qstest}{NumNormalize}{num, normalize} \def\test#1#2{% \HyColor@NormalizeNum{#1}\cmd diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test2.tex index 040ccb44eb5..69396494e8d 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2009 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,7 +33,7 @@ %% hycolor-test-xcol2.tex, hycolor-test-xcol3.tex, %% hycolor-test-xcol4.tex. %% -\ProvidesFile{hycolor-test2.tex}[2009/12/12 test file 2] +\ProvidesFile{hycolor-test2.tex}[2011/01/30 test file 2] \let\pdfmatch\relax \documentclass{article} @@ -74,7 +74,7 @@ \Expect*{\@ResultErrorMessage}*{\@ExpectErrorMessage}% } \usepackage{scrlfile} -\usepackage{hycolor}[2009/12/12] +\usepackage{hycolor}[2011/01/30] \begin{qstest}{X0134 without xcolor}{X0134, noxcolor} \def\test#1#2{% \HyColor@XZeroOneThreeFour{#1}\cmd\TestPackageName\TestOptionName diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test3.tex index b680df07d00..6186567ecf2 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hycolor-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007-2009 by +%% Copyright (C) 2007-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,7 +33,7 @@ %% hycolor-test-xcol2.tex, hycolor-test-xcol3.tex, %% hycolor-test-xcol4.tex. %% -\ProvidesFile{hycolor-test3.tex}[2009/12/12 test file 3] +\ProvidesFile{hycolor-test3.tex}[2011/01/30 test file 3] \documentclass{article} \usepackage{qstest} @@ -73,7 +73,7 @@ \Expect*{\@ResultErrorMessage}*{\@ExpectErrorMessage}% } \usepackage{scrlfile} -\usepackage{hycolor}[2009/12/12] +\usepackage{hycolor}[2011/01/30] \def\atfi@SETRGBCOLORtest{set-rgb} \def\atfi@SETGRAYCOLORtest{set-gray} \def\atfi@SETCMYKCOLORtest{set-cmyk} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/hyphsubst-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/hyphsubst-test1.tex index 088c649c859..115dec7a352 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/hyphsubst-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/hyphsubst-test1.tex @@ -85,6 +85,22 @@ \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 hyphsubst.sty\relax}% \fi @@ -95,15 +111,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/iflang-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/iflang-test1.tex index 83ac7e53187..6c3775aa288 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/iflang-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/iflang-test1.tex @@ -86,6 +86,22 @@ \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 iflang.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/ifluatex-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/ifluatex-test1.tex index e474624658d..d53e442f02f 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/ifluatex-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ifluatex-test1.tex @@ -85,6 +85,22 @@ \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 ifluatex.sty\relax}% \fi @@ -95,15 +111,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/ifpdf-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/ifpdf-test1.tex index 8239218269a..4503bfa9028 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/ifpdf-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ifpdf-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2001, 2005-2010 by +%% Copyright (C) 2001, 2005-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -84,6 +84,22 @@ \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 ifpdf.sty\relax}% \fi @@ -94,15 +110,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/ifvtex-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/ifvtex-test1.tex index a3676a4b1ff..dede542bcab 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/ifvtex-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ifvtex-test1.tex @@ -84,6 +84,22 @@ \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 ifvtex.sty\relax}% \fi @@ -94,15 +110,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/infwarerr-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/infwarerr-test1.tex index 94efe8eebe5..ea66c53391e 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/infwarerr-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/infwarerr-test1.tex @@ -86,6 +86,22 @@ \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 infwarerr.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/intcalc-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/intcalc-test1.tex index 28490c915ec..1d82656d18d 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/intcalc-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/intcalc-test1.tex @@ -86,6 +86,22 @@ \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 intcalc.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvdefinekeys-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/kvdefinekeys-test1.tex index c6550a55404..8a99d858a1f 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/kvdefinekeys-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvdefinekeys-test1.tex @@ -85,6 +85,22 @@ \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 kvdefinekeys.sty\relax}% \fi @@ -95,15 +111,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test1.tex index 09f47741097..08223de7752 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test1.tex @@ -30,7 +30,8 @@ %% kvoptions.sty, kvoptions.pdf, kvoptions.ins, kvoptions.drv, %% kvoptions-patch.sty, example-mycolorsetup.sty, %% kvoptions-test1.tex, kvoptions-test2.tex, -%% kvoptions-test3.tex. +%% kvoptions-test3.tex, kvoptions-test4.tex, +%% kvoptions-test4.sty. %% %% No we don't need the option 'color'. %% With color support option 'emphcolor' will dynamically @@ -88,6 +89,22 @@ \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 kvoptions.sty\relax}% \fi @@ -98,15 +115,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test2.tex index 2e01d2acc08..34120cdeecb 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test2.tex @@ -30,7 +30,8 @@ %% kvoptions.sty, kvoptions.pdf, kvoptions.ins, kvoptions.drv, %% kvoptions-patch.sty, example-mycolorsetup.sty, %% kvoptions-test1.tex, kvoptions-test2.tex, -%% kvoptions-test3.tex. +%% kvoptions-test3.tex, kvoptions-test4.tex, +%% kvoptions-test4.sty. %% %% No we don't need the option 'color'. %% With color support option 'emphcolor' will dynamically diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test3.tex index f17d60a1cdb..d2dd9ddd991 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test3.tex @@ -30,14 +30,15 @@ %% kvoptions.sty, kvoptions.pdf, kvoptions.ins, kvoptions.drv, %% kvoptions-patch.sty, example-mycolorsetup.sty, %% kvoptions-test1.tex, kvoptions-test2.tex, -%% kvoptions-test3.tex. +%% kvoptions-test3.tex, kvoptions-test4.tex, +%% kvoptions-test4.sty. %% %% No we don't need the option 'color'. %% With color support option 'emphcolor' will dynamically %% change the color of \emph statements. \NeedsTeXFormat{LaTeX2e} \makeatletter -\RequirePackage{kvoptions}[2010/02/22] +\RequirePackage{kvoptions}[2010/12/23] \def\msg#{\immediate\write16} \define@key{testfamily}{testkey}{% \msg{[testfamily/testkey/#1]}% diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test4.sty b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test4.sty new file mode 100644 index 00000000000..e2d5e13e7b0 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test4.sty @@ -0,0 +1,57 @@ +%% +%% This is file `kvoptions-test4.sty', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% kvoptions.dtx (with options: `test4pkg') +%% +%% This is a generated file. +%% +%% Copyright (C) 2004, 2006, 2007, 2009, 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file kvoptions.dtx +%% and the derived files +%% kvoptions.sty, kvoptions.pdf, kvoptions.ins, kvoptions.drv, +%% kvoptions-patch.sty, example-mycolorsetup.sty, +%% kvoptions-test1.tex, kvoptions-test2.tex, +%% kvoptions-test3.tex, kvoptions-test4.tex, +%% kvoptions-test4.sty. +%% +%% No we don't need the option 'color'. +%% With color support option 'emphcolor' will dynamically +%% change the color of \emph statements. +\NeedsTeXFormat{LaTeX2e} +\ProvidesPackage{kvoptions-test4}[2010/12/23 package for testing] +\RequirePackage{kvoptions}[2010/12/23] +\SetupKeyvalOptions{% + family=FOO,% + prefix=foo,% + setkeys=\kvsetkeys,% +} +\DeclareStringOption{str} +\define@key{FOO}{set}{% + \setkeys{BAR}{strbar={#1}}% +} +\define@key{BAR}{strbar}{% + \def\foostr{[BAR:#1]}% +} +\ProcessKeyvalOptions* +\endinput +%% +%% End of file `kvoptions-test4.sty'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test4.tex new file mode 100644 index 00000000000..d67d26c7e61 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvoptions-test4.tex @@ -0,0 +1,55 @@ +%% +%% This is file `kvoptions-test4.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% kvoptions.dtx (with options: `test4') +%% +%% This is a generated file. +%% +%% Copyright (C) 2004, 2006, 2007, 2009, 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file kvoptions.dtx +%% and the derived files +%% kvoptions.sty, kvoptions.pdf, kvoptions.ins, kvoptions.drv, +%% kvoptions-patch.sty, example-mycolorsetup.sty, +%% kvoptions-test1.tex, kvoptions-test2.tex, +%% kvoptions-test3.tex, kvoptions-test4.tex, +%% kvoptions-test4.sty. +%% +%% No we don't need the option 'color'. +%% With color support option 'emphcolor' will dynamically +%% change the color of \emph statements. +\NeedsTeXFormat{LaTeX2e} +\ProvidesFile{kvoptions-test4.tex}[2010/12/23 test file] +\RequirePackage[% + str=A,set=B,str=C,% +]{kvoptions-test4}[2010/12/23] +\def\TestExpected{C} +\ifx\foostr\TestExpected + \typeout{* Test ok.}% +\else + \typeout{* Result: [\foostr]}% + \typeout{* Expected: [\TestExpected]}% + \errmessage{Test failed!}% +\fi +\csname @@end\endcsname\end +\endinput +%% +%% End of file `kvoptions-test4.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test1.tex index 567e089f20b..cbb5969633f 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006, 2007, 2009, 2010 by +%% Copyright (C) 2006, 2007, 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -86,6 +86,22 @@ \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 kvsetkeys.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test2.tex index 5b45cf8e193..2a0d251c667 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006, 2007, 2009, 2010 by +%% Copyright (C) 2006, 2007, 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -40,7 +40,7 @@ \makeatletter \chardef\KVS@TestMode=1 % \makeatother -\usepackage{kvsetkeys}[2010/03/01] +\usepackage{kvsetkeys}[2011/04/07] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test3.tex index 03bd01f61fc..ac611c20329 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/kvsetkeys-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006, 2007, 2009, 2010 by +%% Copyright (C) 2006, 2007, 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -42,7 +42,7 @@ \makeatletter \chardef\KVS@TestMode=1 % \makeatother -\usepackage{kvsetkeys}[2010/03/01] +\usepackage{kvsetkeys}[2011/04/07] \let\unexpanded\SavedUnexpanded \usepackage{qstest} \IncludeTests{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex index 8de8ecefe70..6b8c745d440 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2008 by +%% Copyright (C) 2008, 2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -68,7 +68,7 @@ \catcode`\%=14 % \catcode`\ =10 % \catcode13=5 % - \RequirePackage{letltxmacro}[2008/06/24]\relax + \RequirePackage{letltxmacro}[2010/09/02]\relax \RestoreCatcodes } \Test diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex index cdb6d689302..2d35854a467 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/letltxmacro-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2008 by +%% Copyright (C) 2008, 2010 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -35,7 +35,7 @@ \nofiles \documentclass{minimal} -\usepackage{letltxmacro}[2008/06/24] +\usepackage{letltxmacro}[2010/09/02] \usepackage{qstest} \IncludeTests{*} @@ -84,37 +84,59 @@ } \begin{qstest}{robust}{robust} - \DeclareRobustCommand*{\TestA}{Test}% - \SaveA - \TestDef{TestA}{\protect \TestA }% - \CheckA + \begingroup + \DeclareRobustCommand*{\TestA}{Test}% + \SaveA + \TestDef{TestA}{\protect \TestA }% + \CheckA + \DeclareRobustCommand{\TestA}{Test}% + \SaveA + \TestDef{TestA}{\protect \TestA }% + \LetLtxMacro\TestB\TestA + \TestDef{TestB}{\protect \TestB }% + \TestEquals{TestB }{TestA }% + \CheckA + \GlobalLetLtxMacro\TestC\TestA + \CheckA + \endgroup + \TestDef{TestC}{\protect \TestC }% \DeclareRobustCommand{\TestA}{Test}% - \SaveA - \TestDef{TestA}{\protect \TestA }% - \LetLtxMacro\TestB\TestA - \TestDef{TestB}{\protect \TestB }% - \TestEquals{TestB }{TestA }% - \CheckA + \TestEquals{TestC }{TestA }% \end{qstest} \begin{qstest}{default}{default} - \newcommand{\TestA}[1][\relax default \empty]{TestA #1}% - \SaveA - \TestDef - {TestA}{\@protected@testopt \TestA \\TestA {\relax default \empty }}% - \LetLtxMacro\TestB\TestA + \begingroup + \newcommand{\TestA}[1][\relax default \empty]{TestA #1}% + \SaveA + \TestDef + {TestA}{\@protected@testopt \TestA \\TestA {\relax default \empty }}% + \LetLtxMacro\TestB\TestA + \TestDef + {TestB}{\@protected@testopt \TestB \\TestB {\relax default \empty }}% + \CheckA + \TestEquals{\string\TestB}{\string\TestA}% + \GlobalLetLtxMacro\TestC\TestA + \CheckA + \endgroup \TestDef - {TestB}{\@protected@testopt \TestB \\TestB {\relax default \empty }}% - \CheckA + {TestC}{\@protected@testopt \TestC \\TestC {\relax default \empty }}% + \newcommand{\TestA}[1][\relax default \empty]{TestA #1}% + \TestEquals{\string\TestC}{\string\TestA}% \end{qstest} \begin{qstest}{robustdefault}{robustdefault} - \DeclareRobustCommand{\TestA}[1][\default]{TestA}% - \SaveA - \LetLtxMacro\TestB\TestA - \TestDef{TestB}{\protect \TestB }% - \TestDef{TestB }{\@protected@testopt \TestB \\TestB {\default }}% - \CheckA + \begingroup + \DeclareRobustCommand{\TestA}[1][\default]{TestA}% + \SaveA + \LetLtxMacro\TestB\TestA + \TestDef{TestB}{\protect \TestB }% + \TestDef{TestB }{\@protected@testopt \TestB \\TestB {\default }}% + \CheckA + \GlobalLetLtxMacro\TestC\TestA + \CheckA + \endgroup + \TestDef{TestC}{\protect \TestC }% + \TestDef{TestC }{\@protected@testopt \TestC \\TestC {\default }}% \end{qstest} \begin{qstest}{plain}{plain} @@ -135,39 +157,62 @@ \usepackage{etoolbox}[2008/06/22] \begin{qstest}{oldnewrobustcmd}{oldnewrobustcmd} - \protected\edef\TestA{% - \noexpand\@protected@testopt - \noexpand\TestA - \expandafter\noexpand\csname\string\TestA\endcsname - {\noexpand\default}% - }% - \expandafter\protected\expandafter - \def\csname\string\TestA\endcsname{TestA}% - \SaveA - \LetLtxMacro\TestB\TestA - \TestDef{TestB}{\@protected@testopt \TestB \\TestB {\default }}% + \begingroup + \protected\edef\TestA{% + \noexpand\@protected@testopt + \noexpand\TestA + \expandafter\noexpand\csname\string\TestA\endcsname + {\noexpand\default}% + }% + \expandafter\protected\expandafter + \def\csname\string\TestA\endcsname{TestA}% + \SaveA + \LetLtxMacro\TestB\TestA + \TestDef{TestB}{\@protected@testopt \TestB \\TestB {\default }}% + \protected\edef\TestC{% + \noexpand\@protected@testopt + \noexpand\TestB + \expandafter\noexpand\csname\string\TestB\endcsname + {\noexpand\default}% + }% + \TestEquals{TestB}{TestC}% + \CheckA + \GlobalLetLtxMacro\TestD\TestA + \CheckA + \endgroup + \TestDef{TestD}{\@protected@testopt \TestD \\TestD {\default }}% \protected\edef\TestC{% \noexpand\@protected@testopt - \noexpand\TestB - \expandafter\noexpand\csname\string\TestB\endcsname + \noexpand\TestD + \expandafter\noexpand\csname\string\TestD\endcsname {\noexpand\default}% }% - \TestEquals{TestB}{TestC}% - \CheckA + \TestEquals{TestD}{TestC}% \end{qstest} \begin{qstest}{newrobustcmd}{newrobustcmd} - \newrobustcmd{\TestA}[1][\default]{TestA}% - \SaveA - \LetLtxMacro\TestB\TestA - \TestDef{TestB}{\@testopt \\TestB {\default }}% + \begingroup + \newrobustcmd{\TestA}[1][\default]{TestA}% + \SaveA + \LetLtxMacro\TestB\TestA + \TestDef{TestB}{\@testopt \\TestB {\default }}% + \protected\edef\TestC{% + \noexpand\@testopt + \expandafter\noexpand\csname\string\TestB\endcsname + {\noexpand\default}% + }% + \TestEquals{TestB}{TestC}% + \CheckA + \GlobalLetLtxMacro\TestD\TestA + \CheckA + \endgroup + \TestDef{TestD}{\@testopt \\TestD {\default }}% \protected\edef\TestC{% \noexpand\@testopt - \expandafter\noexpand\csname\string\TestB\endcsname + \expandafter\noexpand\csname\string\TestD\endcsname {\noexpand\default}% }% - \TestEquals{TestB}{TestC}% - \CheckA + \TestEquals{TestD}{TestC}% \end{qstest} \begin{qstest}{robustifyopt}{robustifyopt} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-gobble.tex b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-gobble.tex index 30d471919d4..5c89ff611e4 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-gobble.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-gobble.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2009, 2010 by +%% Copyright (C) 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -31,7 +31,9 @@ %% This work consists of the main source file ltxcmds.dtx %% and the derived files %% ltxcmds.sty, ltxcmds.pdf, ltxcmds.ins, ltxcmds.drv, -%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex. +%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex, +%% ltxcmds-test-ifempty.tex, ltxcmds-test-zapspace.tex, +%% ltxcmds-test-ifboxempty.tex. %% \catcode`\{=1 % \catcode`\}=2 % @@ -39,7 +41,7 @@ \expandafter\ifx\csname RequirePackage\endcsname\relax \input ltxcmds.sty\relax \else - \RequirePackage{ltxcmds}[2010/04/26]% + \RequirePackage{ltxcmds}[2011/03/16]% \fi \catcode`\@=11 % \def\msg#{\immediate\write16}% @@ -93,6 +95,16 @@ X=X\\ \Test{-1}abc=abc\\ \Test2\par\par\relax=\relax\\ +\begingroup + \count1=2 % + \Test{\count1}abc=c\\% +\endgroup + +\ltx@IfUndefined{numexpr}{% +}{% + \Test{1+1}abc=c\\% +} + \msg{[Test \string\ltx@CdrNum]}% \long\def\Test#1=#2\\{% \edef\StrA{\ltx@CdrNum#1\@nil}% @@ -200,6 +212,7 @@ X=% \Test{-1}abc=\\ \Test2\par\par\relax=\par\par\\ \csname @@end\endcsname\end + \endinput %% %% End of file `ltxcmds-test-gobble.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-ifboxempty.tex b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-ifboxempty.tex new file mode 100644 index 00000000000..d7f5edb53db --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-ifboxempty.tex @@ -0,0 +1,130 @@ +%% +%% This is file `ltxcmds-test-ifboxempty.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ltxcmds.dtx (with options: `test-ifboxempty') +%% +%% This is a generated file. +%% +%% Copyright (C) 2009-2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file ltxcmds.dtx +%% and the derived files +%% ltxcmds.sty, ltxcmds.pdf, ltxcmds.ins, ltxcmds.drv, +%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex, +%% ltxcmds-test-ifempty.tex, ltxcmds-test-zapspace.tex, +%% ltxcmds-test-ifboxempty.tex. +%% +\catcode`\{=1 % +\catcode`\}=2 % +\catcode`\#=6 % +\catcode`\@=11 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input ltxcmds.sty\relax +\else + \RequirePackage{ltxcmds}[2011/03/16]% +\fi +\def\msg#{\immediate\write16} + % make box 0 void +\begingroup + \setbox0=\box0 % +\endgroup +\ifvoid0 % +\else + \errmessage{Voiding box 0 failed}% +\fi +\setbox2=\box0 % +\def\test#1#2{% + \@test{#1}{#2}% + \@@test{#1}{#2}% + \chardef\x=#1% + \@test\x{#2}% + \@@test\x{#2}% +} +\def\@test#1#2{% + \begingroup + \setbox9=\hbox{% + \def\TestExpected{#2}% + \ltx@IfBoxEmpty{#1}{% + \def\TestResult{Y}% + }{% + \def\TestResult{N}% + }% + \ifx\TestExpected\TestResult + \msg{* Test passed.}% + \else + \errmessage{Test failed!}% + \fi + }% + \ifdim\wd9=0pt % + \else + \errmessage{Unwanted space?}% + \fi + \endgroup +} +\def\@@test#1#2{% + \begingroup + \setbox9=\hbox{% + \def\TestExpected{#2}% + \ifvoid#1\def\TestExpected{Y}\fi + \ltx@IfBoxVoidOrEmpty{#1}{% + \def\TestResult{Y}% + }{% + \def\TestResult{N}% + }% + \ifx\TestExpected\TestResult + \msg{* Test passed.}% + \else + \errmessage{Test failed!}% + \fi + }% + \ifdim\wd9=0pt % + \else + \errmessage{Unwanted space?}% + \fi + \endgroup +} +\test0N +\test2N +\setbox0=\hbox{} +\test0Y +\setbox2=\hbox{} +\test2Y +\setbox0=\vbox{} +\test0Y +\setbox2=\vbox{} +\test0Y +\setbox0=\hbox{ }% +\test0N +\setbox2=\hbox{ }% +\test2N +\setbox0=\hbox{\penalty1}% +\test0N +\setbox2=\hbox{\penalty1}% +\test2N +\csname @@end\endcsname\end + +\endinput +%% +%% End of file `ltxcmds-test-ifboxempty.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-ifempty.tex b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-ifempty.tex new file mode 100644 index 00000000000..b4b5c00b90e --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-ifempty.tex @@ -0,0 +1,152 @@ +%% +%% This is file `ltxcmds-test-ifempty.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ltxcmds.dtx (with options: `test-ifempty') +%% +%% This is a generated file. +%% +%% Copyright (C) 2009-2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file ltxcmds.dtx +%% and the derived files +%% ltxcmds.sty, ltxcmds.pdf, ltxcmds.ins, ltxcmds.drv, +%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex, +%% ltxcmds-test-ifempty.tex, ltxcmds-test-zapspace.tex, +%% ltxcmds-test-ifboxempty.tex. +%% +\catcode`\{=1 % +\catcode`\}=2 % +\catcode`\#=6 % +\catcode`\@=11 % +\errorcontextlines=1000 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input ltxcmds.sty\relax +\else + \RequirePackage{ltxcmds}[2011/03/16]% +\fi +\def\msg#{\immediate\write16} +\def\TestY{\Y} +\def\TestN{\N} +\msg{* \string\ltx@ifempty} +\long\def\test#1{% + \begingroup + % Calculate expected test result via macro definition + \def\Stuff{#1}% + \ifx\Stuff\ltx@empty + \def\StuffEmpty{\Y}% + \else + \def\StuffEmpty{\N}% + \fi + % Test \ltx@ifempty + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\TestEmpty + \expandafter\expandafter\expandafter{% + \ltx@ifempty{#1}{\Y}{\N}% + }% + \ifx\StuffEmpty\TestEmpty + \msg{* Test OK}% + \else + \ltx@IfUndefined{detokenize}{}{% + \msg{Stuff: [\detokenize{\Stuff}]}% + }% + \errmessage{Test failed!}% + \fi + \endgroup +} +\test{} +\test{a} +\test{abc} +\test{\par} +\test{ } +\test{\if} +\test{{\if}} +\test{\else} +\test{{\else}} +\test{\fi} +\test{{}\fi} +\test{\or\ifcase} +\test{{}} +\test{{a}} +\test{{}abc} +\test{{\par}} +\test{{}\par} +\def\SpaceTwo#1{% + \def\SpaceTwo{#1#1}% +}\SpaceTwo{ } +\msg{* \string\ltx@ifblank} +\long\def\test#1{% + \begingroup + % Calculate expected test result via macro definition + \def\Stuff{#1}% + \ifx\Stuff\ltx@empty + \def\StuffEmpty{\Y}% + \else + \ifx\Stuff\ltx@space + \def\StuffEmpty{\Y}% + \else + \ifx\Stuff\SpaceTwo + \def\StuffEmpty{\Y}% + \else + \def\StuffEmpty{\N}% + \fi + \fi + \fi + % Test \ltx@ifblank + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\TestEmpty + \expandafter\expandafter\expandafter{% + \ltx@ifblank{#1}{\Y}{\N}% + }% + \ifx\StuffEmpty\TestEmpty + \msg{* Test OK}% + \else + \ltx@IfUndefined{detokenize}{}{% + \msg{Stuff: [\detokenize{\Stuff}]}% + }% + \errmessage{Test failed!}% + \fi + \endgroup +} +\test{} +\test{a} +\test{\if} +\test{\else} +\test{\fi} +\test{ \fi} +\test{\par} +\test{ \par} +\test{{}} +\test{ {}} +\def\x#1{% + \test{#1#1}% + \test{#1#1{}}% + \test{#1#1\par}% + \test{#1#1\else}% +}\x{ } +\csname @@end\endcsname\end + +\endinput +%% +%% End of file `ltxcmds-test-ifempty.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-zapspace.tex b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-zapspace.tex new file mode 100644 index 00000000000..f421a5ed6e5 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-zapspace.tex @@ -0,0 +1,105 @@ +%% +%% This is file `ltxcmds-test-zapspace.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ltxcmds.dtx (with options: `test-zapspace') +%% +%% This is a generated file. +%% +%% Copyright (C) 2009-2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file ltxcmds.dtx +%% and the derived files +%% ltxcmds.sty, ltxcmds.pdf, ltxcmds.ins, ltxcmds.drv, +%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex, +%% ltxcmds-test-ifempty.tex, ltxcmds-test-zapspace.tex, +%% ltxcmds-test-ifboxempty.tex. +%% +\catcode`\{=1 % +\catcode`\}=2 % +\catcode`\#=6 % +\catcode`\@=11 % +\errorcontextlines=1000 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input ltxcmds.sty\relax +\else + \RequirePackage{ltxcmds}[2011/03/16]% +\fi +\def\msg#{\immediate\write16} +\def\space{ } +\def\empty{} +\msg{* \string\ltx@zapspace} +\long\def\test#1#2{% + \begingroup + \def\TestInput{#1}% + \def\TestExpected{#2}% + % Test \ltx@zapspace + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\TestResult + \expandafter\expandafter\expandafter{% + \ltx@zapspace{#1}% + }% + \ifx\TestResult\TestExpected + \msg{* Test OK}% + \else + \ltx@onelevel@sanitize\TestInput + \ltx@onelevel@sanitize\TestExpected + \ltx@onelevel@sanitize\TestResult + \msg{* Input: \space\space\space[\TestInput]}% + \msg{ \space Result: \space\space[\TestResult]}% + \msg{ \space Expected: [\TestExpected]}% + \errmessage{Test failed!}% + \fi + \endgroup +} +\long\def\etest#1#2{% + \begingroup + \edef\x{\endgroup + \noexpand\test{#1}{#2}% + }% + \x +} +\catcode`\~=13 % +\let~\noexpand +\test{}{} +\test{{}}{{}} +\test{ {}}{{}} +\test{{ }}{{ }} +\test{{} }{{}} +\test{ {} }{{}} +\test{ { } }{{ }} +\test{a {b} c}{a{b}c} +\test{a bb ccc}{abbccc} +\test{{a} {bb} {ccc}}{{a}{bb}{ccc}} +\test{\par}{\par} +\test{\if}{\if} +\test{\space}{\space} +\etest{\par\space\par}{\par\par} +\etest{~\empty\space~\empty}{~\empty~\empty} +\etest{~\fi\space~\else\space}{~\fi~\else} +\csname @@end\endcsname\end + +\endinput +%% +%% End of file `ltxcmds-test-zapspace.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test1.tex index c32b748910e..83a951f4d9e 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2009, 2010 by +%% Copyright (C) 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -31,7 +31,9 @@ %% This work consists of the main source file ltxcmds.dtx %% and the derived files %% ltxcmds.sty, ltxcmds.pdf, ltxcmds.ins, ltxcmds.drv, -%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex. +%% ltxcmds-test1.tex, ltxcmds-test-gobble.tex, +%% ltxcmds-test-ifempty.tex, ltxcmds-test-zapspace.tex, +%% ltxcmds-test-ifboxempty.tex. %% \catcode`\{=1 % \catcode`\}=2 % @@ -85,6 +87,22 @@ \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 ltxcmds.sty\relax}% \fi @@ -95,20 +113,26 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 + \endinput %% %% End of file `ltxcmds-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test1.tex index f034cf476cf..c19d3f6c903 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2009, 2010 by +%% Copyright (C) 2007, 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,7 +29,8 @@ %% and the derived files %% luacolor.sty, luacolor.pdf, luacolor.ins, luacolor.drv, %% luacolor-test1.tex, luacolor-test2.tex, luacolor-test3.tex, -%% oberdiek.luacolor.lua, luacolor.lua. +%% oberdiek.luacolor.lua, luacolor.lua, +%% oberdiek.luacolor-pre065.lua, luacolor-pre065.lua. %% \documentclass{article} \usepackage{color} @@ -85,6 +86,22 @@ \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 luacolor.sty\relax}% \fi @@ -95,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test2.tex index 0e2af51ab63..de057ca1307 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2009, 2010 by +%% Copyright (C) 2007, 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,7 +29,8 @@ %% and the derived files %% luacolor.sty, luacolor.pdf, luacolor.ins, luacolor.drv, %% luacolor-test1.tex, luacolor-test2.tex, luacolor-test3.tex, -%% oberdiek.luacolor.lua, luacolor.lua. +%% oberdiek.luacolor.lua, luacolor.lua, +%% oberdiek.luacolor-pre065.lua, luacolor-pre065.lua. %% \NeedsTeXFormat{LaTeX2e} \ifcsname driver\endcsname @@ -37,7 +38,7 @@ \pdfoutput=0 % \fi \documentclass{minimal} -\usepackage{luacolor}[2010/03/09] +\usepackage{luacolor}[2011/03/29] \csname @@end\endcsname \end \endinput diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test3.tex index 4b5de40bca6..e42b4985b49 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/luacolor-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2009, 2010 by +%% Copyright (C) 2007, 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,11 +29,12 @@ %% and the derived files %% luacolor.sty, luacolor.pdf, luacolor.ins, luacolor.drv, %% luacolor-test1.tex, luacolor-test2.tex, luacolor-test3.tex, -%% oberdiek.luacolor.lua, luacolor.lua. +%% oberdiek.luacolor.lua, luacolor.lua, +%% oberdiek.luacolor-pre065.lua, luacolor-pre065.lua. %% \NeedsTeXFormat{LaTeX2e} \documentclass{minimal} -\usepackage{luacolor}[2010/03/09] +\usepackage{luacolor}[2011/03/29] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test1.tex index 5cdc6c5a172..9b52703f958 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test1.tex @@ -86,6 +86,22 @@ \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 luatex.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test2.tex index e4475edcdf2..d09569098bb 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test2.tex @@ -90,6 +90,22 @@ \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 luatex.sty\relax}% \fi @@ -100,15 +116,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test3.tex index 72782bf6ac4..27290f37069 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test3.tex @@ -90,6 +90,22 @@ \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 luatex.sty\relax}% \fi @@ -100,15 +116,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test4.tex index f5cf7fc63dc..6d4488df44f 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test4.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/luatex-test4.tex @@ -67,7 +67,11 @@ \repeat \end{qstest}% } -\Test{LaTeX}{\the\count\numexpr\TestLaTeX+\count@} +\begingroup + % luatex-unicode-letters.tex makes some slots to letters + \def\TestMax{169}% + \Test{LaTeX}{\the\count\numexpr\TestLaTeX+\count@}% +\endgroup \Test{String}{\ifnum\count@=32 10\else 12\fi} \Test{Other}{12} \luatexinitcatcodetable99 % diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test1.tex index 8edff7cb9a1..113c916ca34 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2009, 2010 by +%% Copyright (C) 2007, 2009, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -32,7 +32,7 @@ %% and the derived files %% magicnum.sty, magicnum.pdf, magicnum.ins, magicnum.drv, magicnum.txt, %% magicnum-test1.tex, magicnum-test2.tex, magicnum-test3.tex, -%% magicnum.lua, oberdiek.magicnum.lua. +%% magicnum-test4.tex, magicnum.lua, oberdiek.magicnum.lua. %% \catcode`\{=1 % \catcode`\}=2 % @@ -86,6 +86,22 @@ \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 magicnum.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test2.tex index 2301a6bf90a..a74775fab36 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2009, 2010 by +%% Copyright (C) 2007, 2009, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -32,7 +32,7 @@ %% and the derived files %% magicnum.sty, magicnum.pdf, magicnum.ins, magicnum.drv, magicnum.txt, %% magicnum-test1.tex, magicnum-test2.tex, magicnum-test3.tex, -%% magicnum.lua, oberdiek.magicnum.lua. +%% magicnum-test4.tex, magicnum.lua, oberdiek.magicnum.lua. %% \input magicnum.sty\relax \def\Test#1#2{% diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test3.tex index cd364b0fb71..a7464665e66 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2009, 2010 by +%% Copyright (C) 2007, 2009, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -32,11 +32,11 @@ %% and the derived files %% magicnum.sty, magicnum.pdf, magicnum.ins, magicnum.drv, magicnum.txt, %% magicnum-test1.tex, magicnum-test2.tex, magicnum-test3.tex, -%% magicnum.lua, oberdiek.magicnum.lua. +%% magicnum-test4.tex, magicnum.lua, oberdiek.magicnum.lua. %% \NeedsTeXFormat{LaTeX2e} \documentclass{minimal} -\usepackage{magicnum}[2010/03/09] +\usepackage{magicnum}[2011/04/10] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test4.tex new file mode 100644 index 00000000000..15bfea02430 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/magicnum-test4.tex @@ -0,0 +1,53 @@ +%% +%% This is file `magicnum-test4.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% magicnum.dtx (with options: `test4') +%% +%% This is a generated file. +%% +%% Copyright (C) 2007, 2009, 2010, 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file magicnum.dtx +%% and the derived files +%% magicnum.sty, magicnum.pdf, magicnum.ins, magicnum.drv, magicnum.txt, +%% magicnum-test1.tex, magicnum-test2.tex, magicnum-test3.tex, +%% magicnum-test4.tex, magicnum.lua, oberdiek.magicnum.lua. +%% +\catcode`\{=1 +\catcode`\}=2 +\catcode`\#=6 +\input magicnum.sty\relax +\edef\x{\magicnum{tex.catcode.15}} +\edef\y{invalid} +\def\Strip#1>{} +\edef\y{\expandafter\Strip\meaning\y} +\ifx\x\y + \immediate\write16{Ok}% +\else + \errmessage{\x<>\y}% +\fi +\csname @@end\endcsname\end +\endinput +%% +%% End of file `magicnum-test4.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/mleftright-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/mleftright-test1.tex new file mode 100644 index 00000000000..3c16de466cb --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/mleftright-test1.tex @@ -0,0 +1,135 @@ +%% +%% This is file `mleftright-test1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% mleftright.dtx (with options: `test1') +%% +%% This is a generated file. +%% +%% Copyright (C) 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file mleftright.dtx +%% and the derived files +%% mleftright.sty, mleftright.pdf, mleftright.ins, mleftright.drv, +%% mleftright-test1.tex. +%% +\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 mleftright.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 +\endinput +%% +%% End of file `mleftright-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pagegrid-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pagegrid-test1.tex index 3315ca4b3ff..0d05adafe6a 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pagegrid-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pagegrid-test1.tex @@ -25,9 +25,6 @@ %% %% This Current Maintainer of this work is Heiko Oberdiek. %% -%% The Base Interpreter refers to any `TeX-Format', -%% because some files are installed in TDS:tex/generic//. -%% %% This work consists of the main source file pagegrid.dtx %% and the derived files %% pagegrid.sty, pagegrid.pdf, pagegrid.ins, pagegrid.drv, @@ -85,6 +82,22 @@ \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 pagegrid.sty\relax}% \fi @@ -95,15 +108,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdfcol-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdfcol-test1.tex index 13a99c701d7..934e90a5eaa 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdfcol-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdfcol-test1.tex @@ -85,6 +85,22 @@ \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 pdfcol.sty\relax}% \fi @@ -95,15 +111,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test1.tex index 65df32b522f..47d8f8be1e9 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,7 +33,7 @@ %% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv, %% pdfescape-test1.tex, pdfescape-test2.tex, %% pdfescape-test3.tex, pdfescape-test4.tex, -%% pdfescape-test5.tex. +%% pdfescape-test5.tex, pdfescape-test6.tex. %% \catcode`\{=1 % \catcode`\}=2 % @@ -87,6 +87,22 @@ \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 pdfescape.sty\relax}% \fi @@ -97,15 +113,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test2.tex index ce40253af79..ec30595c9ac 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,12 +33,12 @@ %% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv, %% pdfescape-test1.tex, pdfescape-test2.tex, %% pdfescape-test3.tex, pdfescape-test4.tex, -%% pdfescape-test5.tex. +%% pdfescape-test5.tex, pdfescape-test6.tex. %% \NeedsTeXFormat{LaTeX2e} \makeatletter \ProvidesFile{pdfescape-test2.tex}% - [2010/03/01 v1.9 Test with \string\pdfescape... commands]% + [2011/04/04 v1.12 Test with \string\pdfescape... commands]% \@ifundefined{pdfescapehex}{% \PackageError{pdfescape-test2}{% Missing \string\pdfescape... commands% diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test3.tex index 48457331a73..c4314fcec37 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,12 +33,12 @@ %% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv, %% pdfescape-test1.tex, pdfescape-test2.tex, %% pdfescape-test3.tex, pdfescape-test4.tex, -%% pdfescape-test5.tex. +%% pdfescape-test5.tex, pdfescape-test6.tex. %% \NeedsTeXFormat{LaTeX2e} \makeatletter \ProvidesFile{pdfescape-test3.tex}% - [2010/03/01 v1.9 Test without \string\pdfescape..., with e-TeX]% + [2011/04/04 v1.12 Test without \string\pdfescape..., with e-TeX]% \let\pdfescapehex\@undefined \let\pdfunescapehex\@undefined \let\pdfescapename\@undefined diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test4.tex index 93e13dd6e99..be3e2635417 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test4.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test4.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,12 +33,12 @@ %% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv, %% pdfescape-test1.tex, pdfescape-test2.tex, %% pdfescape-test3.tex, pdfescape-test4.tex, -%% pdfescape-test5.tex. +%% pdfescape-test5.tex, pdfescape-test6.tex. %% \NeedsTeXFormat{LaTeX2e} \makeatletter \ProvidesFile{pdfescape-test4.tex}% - [2010/03/01 v1.9 Test without \string\pdfescape... and e-TeX]% + [2011/04/04 v1.12 Test without \string\pdfescape... and e-TeX]% \let\pdfescapehex\@undefined \let\pdfunescapehex\@undefined \let\pdfescapename\@undefined diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test5.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test5.tex index e9aa2095fb8..da06085db09 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test5.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test5.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2010 by +%% Copyright (C) 2007, 2010, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -33,12 +33,12 @@ %% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv, %% pdfescape-test1.tex, pdfescape-test2.tex, %% pdfescape-test3.tex, pdfescape-test4.tex, -%% pdfescape-test5.tex. +%% pdfescape-test5.tex, pdfescape-test6.tex. %% \NeedsTeXFormat{LaTeX2e} \makeatletter \ProvidesFile{pdfescape-test5.tex}% - [2010/03/01 v1.9 Test with LuaTeX]% + [2011/04/04 v1.12 Test with LuaTeX]% \@ifundefined{directlua}{% \PackageError{pdfescape-test5}{% Missing LuaTeX% diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test6.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test6.tex new file mode 100644 index 00000000000..41f6768f900 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdfescape-test6.tex @@ -0,0 +1,173 @@ +%% +%% This is file `pdfescape-test6.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pdfescape.dtx (with options: `test6') +%% +%% This is a generated file. +%% +%% Copyright (C) 2007, 2010, 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file pdfescape.dtx +%% and the derived files +%% pdfescape.sty, pdfescape.pdf, pdfescape.ins, pdfescape.drv, +%% pdfescape-test1.tex, pdfescape-test2.tex, +%% pdfescape-test3.tex, pdfescape-test4.tex, +%% pdfescape-test5.tex, pdfescape-test6.tex. +%% +\input pdfescape.sty\relax +\catcode`\{=1 % +\catcode`\}=2 % +\catcode`\#=6 % +\catcode`\^=7 % +\catcode`\@=11 % +\begingroup + \catcode`\@=11 % + \countdef\count@=255 % + \def\space{ }% + \long\def\@whilenum#1\do #2{% + \ifnum #1\relax + #2\relax + \@iwhilenum{#1\relax#2\relax}% + \fi + }% + \long\def\@iwhilenum#1{% + \ifnum #1% + \expandafter\@iwhilenum + \else + \expandafter\ltx@gobble + \fi + {#1}% + }% + \gdef\AllBytes{}% + \count@=0 % + \catcode0=12 % + \@whilenum\count@<256 \do{% + \lccode0=\count@ + \ifnum\count@=32 % + \xdef\AllBytes{\AllBytes\space}% + \else + \lowercase{% + \xdef\AllBytes{\AllBytes^^@}% + }% + \fi + \advance\count@ by 1 % + }% +\endgroup +\def\AllBytesHex{% + 000102030405060708090A0B0C0D0E0F% + 101112131415161718191A1B1C1D1E1F% + 202122232425262728292A2B2C2D2E2F% + 303132333435363738393A3B3C3D3E3F% + 404142434445464748494A4B4C4D4E4F% + 505152535455565758595A5B5C5D5E5F% + 606162636465666768696A6B6C6D6E6F% + 707172737475767778797A7B7C7D7E7F% + 808182838485868788898A8B8C8D8E8F% + 909192939495969798999A9B9C9D9E9F% + A0A1A2A3A4A5A6A7A8A9AAABACADAEAF% + B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF% + C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF% + D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF% + E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF% + F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF% +} +\ltx@onelevel@sanitize\AllBytesHex +\expandafter\lowercase\expandafter{% + \expandafter\def\expandafter\AllBytesHexLC + \expandafter{\AllBytesHex}% +} +\begingroup + \catcode`\#=12 % + \xdef\AllBytesName{% + #01#02#03#04#05#06#07#08#09#0A#0B#0C#0D#0E#0F% + #10#11#12#13#14#15#16#17#18#19#1A#1B#1C#1D#1E#1F% + #20!"#23$#25&'#28#29*+,-.#2F% + 0123456789:;#3C=#3E?% + @ABCDEFGHIJKLMNO% + PQRSTUVWXYZ#5B\ltx@backslashchar#5D^_% + `abcdefghijklmno% + pqrstuvwxyz#7B|#7D\string~#7F% + #80#81#82#83#84#85#86#87#88#89#8A#8B#8C#8D#8E#8F% + #90#91#92#93#94#95#96#97#98#99#9A#9B#9C#9D#9E#9F% + #A0#A1#A2#A3#A4#A5#A6#A7#A8#A9#AA#AB#AC#AD#AE#AF% + #B0#B1#B2#B3#B4#B5#B6#B7#B8#B9#BA#BB#BC#BD#BE#BF% + #C0#C1#C2#C3#C4#C5#C6#C7#C8#C9#CA#CB#CC#CD#CE#CF% + #D0#D1#D2#D3#D4#D5#D6#D7#D8#D9#DA#DB#DC#DD#DE#DF% + #E0#E1#E2#E3#E4#E5#E6#E7#E8#E9#EA#EB#EC#ED#EE#EF% + #F0#F1#F2#F3#F4#F5#F6#F7#F8#F9#FA#FB#FC#FD#FE#FF% + }% +\endgroup +\ltx@onelevel@sanitize\AllBytesName +\edef\AllBytesFromName{\expandafter\ltx@gobble\AllBytes} + +\begingroup + \def\|{|}% + \edef\%{\ltx@percentchar}% + \catcode`\|=0 % + \catcode`\#=12 % + \catcode`\~=12 % + \catcode`\\=12 % + |xdef|AllBytesString{% + \000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017% + \020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037% + \040!"#$|%&'\(\)*+,-./% + 0123456789:;<=>?% + @ABCDEFGHIJKLMNO% + PQRSTUVWXYZ[\\]^_% + `abcdefghijklmno% + pqrstuvwxyz{||}~\177% + \200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217% + \220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237% + \240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257% + \260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277% + \300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317% + \320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337% + \340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357% + \360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377% + }% +|endgroup +\ltx@onelevel@sanitize\AllBytesString +\def\msg#{\immediate\write16} +\def\Test#1#2#3{% + \begingroup + #1\TestResult{#2}% + \ifx\TestResult#3% + \else + \newlinechar=10 % + \msg{Expect:^^J#3}% + \msg{Result:^^J\TestResult}% + \errmessage{\string#2 -\string#1-> \string#3}% + \fi + \endgroup +} +\Test\EdefEscapeHex\AllBytes\AllBytesHex +\Test\EdefUnescapeHex\AllBytesHex\AllBytes +\Test\EdefEscapeName\AllBytes\AllBytesName +\Test\EdefUnescapeName\AllBytesName\AllBytesFromName +\Test\EdefEscapeString\AllBytes\AllBytesString +\Test\EdefUnescapeString\AllBytesString\AllBytes +\csname @@end\endcsname\end +\endinput +%% +%% End of file `pdfescape-test6.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdfrender-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdfrender-test1.tex index 9a7a36008b6..3f9d6e5538c 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdfrender-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdfrender-test1.tex @@ -87,6 +87,22 @@ \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 pdfrender.sty\relax}% \fi @@ -97,15 +113,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test-escape.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test-escape.tex new file mode 100644 index 00000000000..e4a3a4d12a7 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test-escape.tex @@ -0,0 +1,192 @@ +%% +%% This is file `pdftexcmds-test-escape.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pdftexcmds.dtx (with options: `test-escape') +%% +%% This is a generated file. +%% +%% Copyright (C) 2007, 2009-2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file pdftexcmds.dtx +%% and the derived files +%% pdftexcmds.sty, pdftexcmds.pdf, pdftexcmds.ins, pdftexcmds.drv, +%% pdftexcmds-test1.tex, pdftexcmds-test2.tex, +%% pdftexcmds-test-shell.tex, pdftexcmds-test-escape.tex, +%% oberdiek.pdftexcmds.lua, pdftexcmds.lua. +%% +\catcode`\{=1 % +\catcode`\}=2 % +\catcode`\#=6 % +\catcode`\^=7 % +\catcode`\@=11 % +\errorcontextlines=1000 % +\input pdftexcmds.sty\relax +\def\msg#1{% + \begingroup + \escapechar=92 % + \immediate\write16{#1}% + \endgroup +} +\begingroup + \catcode`\@=11 % + \countdef\count@=255 % + \def\space{ }% + \long\def\@whilenum#1\do #2{% + \ifnum #1\relax + #2\relax + \@iwhilenum{#1\relax#2\relax}% + \fi + }% + \long\def\@iwhilenum#1{% + \ifnum #1% + \expandafter\@iwhilenum + \else + \expandafter\ltx@gobble + \fi + {#1}% + }% + \gdef\AllBytes{}% + \count@=0 % + \catcode0=12 % + \@whilenum\count@<256 \do{% + \lccode0=\count@ + \ifnum\count@=32 % + \xdef\AllBytes{\AllBytes\space}% + \else + \lowercase{% + \xdef\AllBytes{\AllBytes^^@}% + }% + \fi + \advance\count@ by 1 % + }% +\endgroup +\def\AllBytesHex{% + 000102030405060708090A0B0C0D0E0F% + 101112131415161718191A1B1C1D1E1F% + 202122232425262728292A2B2C2D2E2F% + 303132333435363738393A3B3C3D3E3F% + 404142434445464748494A4B4C4D4E4F% + 505152535455565758595A5B5C5D5E5F% + 606162636465666768696A6B6C6D6E6F% + 707172737475767778797A7B7C7D7E7F% + 808182838485868788898A8B8C8D8E8F% + 909192939495969798999A9B9C9D9E9F% + A0A1A2A3A4A5A6A7A8A9AAABACADAEAF% + B0B1B2B3B4B5B6B7B8B9BABBBCBDBEBF% + C0C1C2C3C4C5C6C7C8C9CACBCCCDCECF% + D0D1D2D3D4D5D6D7D8D9DADBDCDDDEDF% + E0E1E2E3E4E5E6E7E8E9EAEBECEDEEEF% + F0F1F2F3F4F5F6F7F8F9FAFBFCFDFEFF% +} +\ltx@onelevel@sanitize\AllBytesHex +\expandafter\lowercase\expandafter{% + \expandafter\def\expandafter\AllBytesHexLC + \expandafter{\AllBytesHex}% +} +\begingroup + \catcode`\#=12 % + \xdef\AllBytesName{% + #01#02#03#04#05#06#07#08#09#0A#0B#0C#0D#0E#0F% + #10#11#12#13#14#15#16#17#18#19#1A#1B#1C#1D#1E#1F% + #20!"#23$#25&'#28#29*+,-.#2F% + 0123456789:;#3C=#3E?% + @ABCDEFGHIJKLMNO% + PQRSTUVWXYZ#5B\ltx@backslashchar#5D^_% + `abcdefghijklmno% + pqrstuvwxyz#7B|#7D\string~#7F% + #80#81#82#83#84#85#86#87#88#89#8A#8B#8C#8D#8E#8F% + #90#91#92#93#94#95#96#97#98#99#9A#9B#9C#9D#9E#9F% + #A0#A1#A2#A3#A4#A5#A6#A7#A8#A9#AA#AB#AC#AD#AE#AF% + #B0#B1#B2#B3#B4#B5#B6#B7#B8#B9#BA#BB#BC#BD#BE#BF% + #C0#C1#C2#C3#C4#C5#C6#C7#C8#C9#CA#CB#CC#CD#CE#CF% + #D0#D1#D2#D3#D4#D5#D6#D7#D8#D9#DA#DB#DC#DD#DE#DF% + #E0#E1#E2#E3#E4#E5#E6#E7#E8#E9#EA#EB#EC#ED#EE#EF% + #F0#F1#F2#F3#F4#F5#F6#F7#F8#F9#FA#FB#FC#FD#FE#FF% + }% +\endgroup +\ltx@onelevel@sanitize\AllBytesName +\edef\AllBytesFromName{\expandafter\ltx@gobble\AllBytes} +\begingroup + \def\|{|}% + \edef\%{\ltx@percentchar}% + \catcode`\|=0 % + \catcode`\#=12 % + \catcode`\~=12 % + \catcode`\\=12 % + |xdef|AllBytesString{% + \000\001\002\003\004\005\006\007\010\011\012\013\014\015\016\017% + \020\021\022\023\024\025\026\027\030\031\032\033\034\035\036\037% + \040!"#$|%&'\(\)*+,-./% + 0123456789:;<=>?% + @ABCDEFGHIJKLMNO% + PQRSTUVWXYZ[\\]^_% + `abcdefghijklmno% + pqrstuvwxyz{||}~\177% + \200\201\202\203\204\205\206\207\210\211\212\213\214\215\216\217% + \220\221\222\223\224\225\226\227\230\231\232\233\234\235\236\237% + \240\241\242\243\244\245\246\247\250\251\252\253\254\255\256\257% + \260\261\262\263\264\265\266\267\270\271\272\273\274\275\276\277% + \300\301\302\303\304\305\306\307\310\311\312\313\314\315\316\317% + \320\321\322\323\324\325\326\327\330\331\332\333\334\335\336\337% + \340\341\342\343\344\345\346\347\350\351\352\353\354\355\356\357% + \360\361\362\363\364\365\366\367\370\371\372\373\374\375\376\377% + }% +|endgroup +\ltx@onelevel@sanitize\AllBytesString +\def\Test#1#2#3{% + \begingroup + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\TestResult + \expandafter\expandafter\expandafter{% + #1{#2}% + }% + \ifx\TestResult#3% + \else + \newlinechar=10 % + \msg{Expect:^^J#3}% + \msg{Result:^^J\TestResult}% + \errmessage{\string#2 -\string#1-> \string#3}% + \fi + \endgroup +} +\def\test#1#2#3{% + \edef\TestFrom{#2}% + \edef\TestExpect{#3}% + \ltx@onelevel@sanitize\TestExpect + \Test#1\TestFrom\TestExpect +} +\test\pdf@unescapehex{74657374}{test} +\begingroup + \catcode0=12 % + \catcode1=12 % + \test\pdf@unescapehex{740074017400740174}{t^^@t^^At^^@t^^At}% +\endgroup +\Test\pdf@escapehex\AllBytes\AllBytesHex +\Test\pdf@unescapehex\AllBytesHex\AllBytes +\Test\pdf@escapename\AllBytes\AllBytesName +\Test\pdf@escapestring\AllBytes\AllBytesString +\csname @@end\endcsname\end +\endinput +%% +%% End of file `pdftexcmds-test-escape.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test-shell.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test-shell.tex new file mode 100644 index 00000000000..e557d7d9f38 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test-shell.tex @@ -0,0 +1,70 @@ +%% +%% This is file `pdftexcmds-test-shell.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pdftexcmds.dtx (with options: `test-shell') +%% +%% This is a generated file. +%% +%% Copyright (C) 2007, 2009-2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file pdftexcmds.dtx +%% and the derived files +%% pdftexcmds.sty, pdftexcmds.pdf, pdftexcmds.ins, pdftexcmds.drv, +%% pdftexcmds-test1.tex, pdftexcmds-test2.tex, +%% pdftexcmds-test-shell.tex, pdftexcmds-test-escape.tex, +%% oberdiek.pdftexcmds.lua, pdftexcmds.lua. +%% +\catcode`\{=1 % +\catcode`\}=2 % +\catcode`\#=6 % +\catcode`\@=11 % +\input pdftexcmds.sty\relax +\def\msg#{\immediate\write16} +\ifx\pdf@shellescape\@undefined + \msg{SHELL=U}% +\else + \msg{SHELL=\number\pdf@shellescape}% +\fi +\ifx\expected\@undefined +\else + \ifx\expected\relax + \msg{EXPECTED=U}% + \ifx\pdf@shellescape\@undefined + \msg{OK}% + \else + \errmessage{Failed}% + \fi + \else + \msg{EXPECTED=\number\expected}% + \ifnum\pdf@shellescape=\expected\relax + \msg{OK}% + \else + \errmessage{Failed}% + \fi + \fi +\fi +\csname @@end\endcsname\end +\endinput +%% +%% End of file `pdftexcmds-test-shell.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test1.tex index 01140ab2a00..9f726691432 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2009, 2010 by +%% Copyright (C) 2007, 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -32,6 +32,7 @@ %% and the derived files %% pdftexcmds.sty, pdftexcmds.pdf, pdftexcmds.ins, pdftexcmds.drv, %% pdftexcmds-test1.tex, pdftexcmds-test2.tex, +%% pdftexcmds-test-shell.tex, pdftexcmds-test-escape.tex, %% oberdiek.pdftexcmds.lua, pdftexcmds.lua. %% \catcode`\{=1 % @@ -86,6 +87,22 @@ \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 pdftexcmds.sty\relax}% \fi @@ -96,15 +113,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex index 76ec0315081..5d866b27a1b 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pdftexcmds-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2007, 2009, 2010 by +%% Copyright (C) 2007, 2009-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -32,6 +32,7 @@ %% and the derived files %% pdftexcmds.sty, pdftexcmds.pdf, pdftexcmds.ins, pdftexcmds.drv, %% pdftexcmds-test1.tex, pdftexcmds-test2.tex, +%% pdftexcmds-test-shell.tex, pdftexcmds-test-escape.tex, %% oberdiek.pdftexcmds.lua, pdftexcmds.lua. %% \catcode`\{=1 % diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/pmboxdraw-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/pmboxdraw-test1.tex new file mode 100644 index 00000000000..f0e3177c3ee --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/pmboxdraw-test1.tex @@ -0,0 +1,133 @@ +%% +%% This is file `pmboxdraw-test1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% pmboxdraw.dtx (with options: `test1') +%% +%% This is a generated file. +%% +%% Copyright (C) 2006, 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file pmboxdraw.dtx +%% and the derived files +%% pmboxdraw.sty, pmboxdraw.pdf, pmboxdraw.ins, pmboxdraw.drv, +%% pmboxdrawenc.dfu, pmboxdraw-test1.tex. +%% +\def\LoadCommand{\RequirePackage{pmboxdraw}[2011/03/24]} +\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 pmboxdraw.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 +\endinput +%% +%% End of file `pmboxdraw-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/protecteddef-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/protecteddef-test1.tex new file mode 100644 index 00000000000..d3c9299c52f --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/protecteddef-test1.tex @@ -0,0 +1,135 @@ +%% +%% This is file `protecteddef-test1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% protecteddef.dtx (with options: `test1') +%% +%% This is a generated file. +%% +%% Copyright (C) 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file protecteddef.dtx +%% and the derived files +%% protecteddef.sty, protecteddef.pdf, protecteddef.ins, protecteddef.drv, +%% protecteddef-test1.tex, protecteddef-test2.tex. +%% +\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 protecteddef.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 +\endinput +%% +%% End of file `protecteddef-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/protecteddef-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/protecteddef-test2.tex new file mode 100644 index 00000000000..ed20c168125 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/protecteddef-test2.tex @@ -0,0 +1,188 @@ +%% +%% This is file `protecteddef-test2.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% protecteddef.dtx (with options: `test2') +%% +%% This is a generated file. +%% +%% Copyright (C) 2011 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file protecteddef.dtx +%% and the derived files +%% protecteddef.sty, protecteddef.pdf, protecteddef.ins, protecteddef.drv, +%% protecteddef-test1.tex, protecteddef-test2.tex. +%% +\errorcontextlines=10000 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input protecteddef.sty\relax + \catcode`\{=1 % + \catcode`\}=2 % + \catcode`\#=6 % +\else + \RequirePackage{protecteddef}[2011/01/31]% +\fi +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname protected\endcsname\relax + \let\pdef\def +\else + \def\pdef{\protected\def}% +\fi +\def\msg#{\immediate\write16} +\countdef\errcount=2 % +\long\def\BeginCheck#1\ProtectedDef#2\EndCheck{% + \begingroup + \toks0={\ProtectedDef#2}% + \msg{<<\the\toks0>>}% + \endgroup + \setbox0=\hbox{% + #1% + \ProtectedDef#2% + \check\foo + }% + \ifdim\wd0=0pt\relax + \else + \errmessage{[Definition] Unwanted spaces?!}% + \fi + \setbox0=\hbox{% + \def\fooinitial{XYZ}% + \let\foo\fooinitial + \errcount=0 % + \expandafter\def\csname @PackageError\endcsname##1##2##3{% + \advance\errcount by 1 % + }% + \expandafter\def\csname @notdefinable\endcsname{% + \advance\errcount by 1 % + }% + \ProtectedDef#2% + \ifnum\errcount=1 % + \else + \errmessage{1 error expected, but found: \the\errcount}% + \fi + \ifx\foo\fooinitial + \else + \def\space{ }% + \errmessage{\string\foo\space is overwritten}% + \fi + }% + \ifdim\wd0=0pt\relax + \else + \errmessage{[Error] Unwanted spaces?!}% + \fi +} +\chardef\DeclareVersion=0 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname protected\endcsname\relax + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname DeclareRobustCommand\endcsname\relax + \else + \chardef\DeclareVersion=1 % + \fi +\fi +\ifnum\DeclareVersion=0 % + \def\check#1{% + \ifx\cmp#1% + \msg{* Test passed.}% + \else + \msg{}% + \msg{[\meaning#1]}% + \msg{[\meaning\cmp]}% + \errmessage{Test failed!}% + \fi + }% +\else + \def\check#1{% + \begingroup + \escapechar=-1 % + \edef\x{\endgroup + \def\noexpand\cs/{\string#1}% + }\x + \edef\CMP{% + \noexpand\protect + \expandafter\noexpand\csname\cs/ \endcsname + }% + \ifx\CMP#1% + \expandafter\ifx\csname\cs/ \endcsname\cmp + \msg{Test passed.}% + \else + \msg{}% + \msg{[\expandafter\meaning\csname\cs/ \endcsname]}% + \msg{[\meaning\cmp]}% + \errmessage{Test failed!}% + \fi + \else + \msg{}% + \msg{[\meaning#1]}% + \msg{[\meaning\CMP]}% + \errmessage{Test failed!}% + \fi + }% +\fi + +\tracingmacros=1 + +\BeginCheck + \pdef\cmp{}% + \ProtectedDef*\foo{}% +\EndCheck + +\BeginCheck + \pdef\cmp{}% + \ProtectedDef*\foo[0]{}% +\EndCheck + +\BeginCheck + \pdef\cmp#1{<#1>}% + \ProtectedDef*\foo[1]{<#1>}% +\EndCheck + +\BeginCheck + \pdef\cmp(#1){<#1>}% + \ProtectedDef*\foo(#1){<#1>}% +\EndCheck + +\BeginCheck + \long\pdef\cmp{}% + \ProtectedDef\foo{}% +\EndCheck + +\BeginCheck + \long\pdef\cmp{}% + \ProtectedDef\foo[0]{}% +\EndCheck + +\BeginCheck + \long\pdef\cmp#1{<#1>}% + \ProtectedDef\foo[1]{<#1>}% +\EndCheck + +\BeginCheck + \long\pdef\cmp(#1){<#1>}% + \ProtectedDef\foo(#1){<#1>}% +\EndCheck + +\csname @@end\endcsname\end +\endinput +%% +%% End of file `protecteddef-test2.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test1.tex new file mode 100644 index 00000000000..a5fcdfda556 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test1.tex @@ -0,0 +1,133 @@ +%% +%% This is file `refcount-test1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% refcount.dtx (with options: `test1') +%% +%% This is a generated file. +%% +%% Copyright (C) 1998, 2000, 2006, 2008, 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file refcount.dtx +%% and the derived files +%% refcount.sty, refcount.pdf, refcount.ins, refcount.drv, +%% refcount-test1.tex, refcount-test2.tex, refcount-test3.tex, +%% refcount-test4.tex. +%% +\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 refcount.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 +\endinput +%% +%% End of file `refcount-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test2.tex new file mode 100644 index 00000000000..e463973a7a4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test2.tex @@ -0,0 +1,199 @@ +%% +%% This is file `refcount-test2.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% refcount.dtx (with options: `test2') +%% +%% This is a generated file. +%% +%% Copyright (C) 1998, 2000, 2006, 2008, 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file refcount.dtx +%% and the derived files +%% refcount.sty, refcount.pdf, refcount.ins, refcount.drv, +%% refcount-test1.tex, refcount-test2.tex, refcount-test3.tex, +%% refcount-test4.tex. +%% +\errorcontextlines=10000 % +\showboxbreadth=10000 % +\showboxdepth=10000 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input refcount.sty\relax +\else + \RequirePackage{refcount}[2010/12/01]% +\fi +\catcode`\@=11 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname @onelevel@sanitize\endcsname\relax + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname detokenize\endcsname\relax + \def\strip@prefix#1->{}% + \def\@onelevel@sanitize#1{% + \edef#1{% + \expandafter\strip@prefix\meaning#1% + }% + }% + \else + \def\@onelevel@sanitize#1{% + \edef#1{% + \detokenize\expandafter{#1}% + }% + }% + \fi +\fi +\def\msg#{\immediate\write16} +\def\empty{} +\def\space{ } +\def\r@foo{{\empty 1}{\empty 2}} +\long\def\test#1#2{% + \begingroup + \setbox0=\hbox{% + \def\TestTask{#1}% + \@onelevel@sanitize\TestTask + \msg{* \TestTask}% + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\TestResult + \expandafter\expandafter\expandafter{% + #1% + }% + \def\TestExpected{#2}% + \ifx\TestResult\TestExpected + \msg{ \space ok.}% + \else + \@onelevel@sanitize\TestResult + \@onelevel@sanitize\TestExpected + \msg{ \space Result: \space\space[\TestResult]}% + \msg{ \space Expected: [\TestExpected]}% + \errmessage{Test failed!}% + \fi + }% + \ifdim\wd0=0pt % + \else + \showbox0 % + \fi + \endgroup +} +\test{\getrefnumber{foo}}{\empty 1} +\test{\getpagerefnumber{foo}}{\empty 2} +\test{\getrefbykeydefault{foo}{}{\empty default}}{\empty 1} +\test{\getrefbykeydefault{foo}{page}{\empty default}}{\empty 2} +\test{\getrefbykeydefault{foo}{name}{\empty default}}{\empty default} +\test{\getrefbykeydefault{foo}{anchor}{\empty default}}{\empty default} +\test{\getrefbykeydefault{foo}{url}{\empty default}}{\empty default} +\test{\getrefbykeydefault{foo}{title}{\empty default}}{\empty default} +\msg{} +\def\r@foo{{}{}{}{}{}{}{}{}{}{}} +\def\Test#1#2\\{% + \test{#1{foo}#2}{}% +} +\def\TestGroup{% + \Test\getrefnumber\\% + \Test\getpagerefnumber\\% + \Test\getrefbykeydefault{}{}\\% + \Test\getrefbykeydefault{page}{}\\% + \Test\getrefbykeydefault{anchor}{}\\% + \Test\getrefbykeydefault{name}{}\\% + \Test\getrefbykeydefault{url}{}\\% +} +\TestGroup +\Test\getrefbykeydefault{title}{}\\% +\msg{} +\def\r@foo{\par\par\par\par\par\par\par\par} +\long\def\Test#1#2\\{% + \test{#1{foo}#2}{\par}% +} +\TestGroup +\test{\getrefbykeydefault{title}{}{}}{} +\msg{} +\def\r@foo{{ }{ }{ }{ }{ }} +\def\Test#1#2\\{% + \test{#1{foo}#2}{ }% +} +\TestGroup +\msg{} +\long\def\TestDefault#1{% + \begingroup + \setrefcountdefault{#1}% + \test{\getrefnumber{foo}}{#1}% + \test{\getpagerefnumber{foo}}{#1}% + \endgroup +} +\def\TestDefaultX{% + \TestDefault{}% + \TestDefault{\par}% + \TestDefault{ }% + \TestDefault{\space}% +} +\let\r@foo\@undefined +\TestDefaultX +\let\r@foo\relax +\TestDefaultX +\def\r@foo{} +\TestDefaultX +\msg{} +\long\def\Test#1#2#3#4{% + \begingroup + \def\TestTask{#1}% + \@onelevel@sanitize\TestTask + \msg{* [\TestTask]}% + \edef\TestResultA{\IfRefUndefinedExpandable{#1}{#2}{#3}}% + \IfRefUndefinedBabel{#1}{% + \def\TestResultB{#2}% + }{% + \def\TestResultB{#3}% + }% + \def\TestExpected{#4}% + \ifx\TestResultA\TestExpected + \msg{ \space ok.}% + \else + \begingroup + \@onelevel@sanitize\TestResultA + \@onelevel@sanitize\TestExpected + \msg{ \space Result: \space\space[\TestResultA]}% + \msg{ \space Expected: [\TestExpected]}% + \errmessage{Test failed!}% + \endgroup + \fi + \ifx\TestResultB\TestExpected + \msg{ \space ok.}% + \else + \begingroup + \@onelevel@sanitize\TestResultB + \@onelevel@sanitize\TestExpected + \msg{ \space Result: \space\space[\TestResultB]}% + \msg{ \space Expected: [\TestExpected]}% + \errmessage{Test failed!}% + \endgroup + \fi + \endgroup +} +\begingroup + \def\r@foo{{}{}}% + \let\r@bar\@undefined + \let\r@xyz\relax + \Test{foo}{true}{false}{false}% + \Test{bar}{true}{false}{true}% + \Test{xyz}{true}{false}{true}% +\endgroup +\csname @@end\endcsname\end +\endinput +%% +%% End of file `refcount-test2.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test3.tex new file mode 100644 index 00000000000..d6a7e316298 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test3.tex @@ -0,0 +1,80 @@ +%% +%% This is file `refcount-test3.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% refcount.dtx (with options: `test3') +%% +%% This is a generated file. +%% +%% Copyright (C) 1998, 2000, 2006, 2008, 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file refcount.dtx +%% and the derived files +%% refcount.sty, refcount.pdf, refcount.ins, refcount.drv, +%% refcount-test1.tex, refcount-test2.tex, refcount-test3.tex, +%% refcount-test4.tex. +%% +\NeedsTeXFormat{LaTeX2e} +\documentclass{article} +\usepackage{refcount}[2010/12/01] +\usepackage{titleref} +\begin{document} +\section{Hello World} +\label{sec:hello} +\section{\hbox{xy}} +\label{sec:foo} +\makeatletter +\@ifundefined{r@sec:hello}{% + \typeout{==> Compile twice!}% +}{% + \def\test#1#2{% + \begingroup + \def\TestTask{#1}% + \@onelevel@sanitize\TestTask + \typeout{* \TestTask}% + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\TestResult + \expandafter\expandafter\expandafter{% + #1% + }% + \def\TestExpected{#2}% + \ifx\TestResult\TestExpected + \typeout{ \space ok.}% + \else + \@onelevel@sanitize\TestResult + \@onelevel@sanitize\TestExpected + \typeout{ \space Result: \space\space[\TestResult]}% + \typeout{ \space Expected: [\TestExpected]}% + \errmessage{Test failed!}% + \fi + \endgroup + }% + \test{\getrefbykeydefault{sec:hello}{title}{}}{Hello World}% + \test{\getrefbykeydefault{sec:foo}{title}{}}{\hbox{xy}}% + \begingroup + \def\hbox#1{[#1]}% hash-ok + \test{\getrefbykeydefault{sec:foo}{title}{}}{\hbox{xy}}% + \endgroup +} +\makeatother +\end{document} +\endinput +%% +%% End of file `refcount-test3.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test4.tex b/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test4.tex new file mode 100644 index 00000000000..ce041de9a3a --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/refcount-test4.tex @@ -0,0 +1,81 @@ +%% +%% This is file `refcount-test4.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% refcount.dtx (with options: `test3,test4') +%% +%% This is a generated file. +%% +%% Copyright (C) 1998, 2000, 2006, 2008, 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% This work consists of the main source file refcount.dtx +%% and the derived files +%% refcount.sty, refcount.pdf, refcount.ins, refcount.drv, +%% refcount-test1.tex, refcount-test2.tex, refcount-test3.tex, +%% refcount-test4.tex. +%% +\NeedsTeXFormat{LaTeX2e} +\documentclass{article} +\usepackage{refcount}[2010/12/01] +\usepackage{nameref} +\usepackage{titleref} +\begin{document} +\section{Hello World} +\label{sec:hello} +\section{\hbox{xy}} +\label{sec:foo} +\makeatletter +\@ifundefined{r@sec:hello}{% + \typeout{==> Compile twice!}% +}{% + \def\test#1#2{% + \begingroup + \def\TestTask{#1}% + \@onelevel@sanitize\TestTask + \typeout{* \TestTask}% + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\TestResult + \expandafter\expandafter\expandafter{% + #1% + }% + \def\TestExpected{#2}% + \ifx\TestResult\TestExpected + \typeout{ \space ok.}% + \else + \@onelevel@sanitize\TestResult + \@onelevel@sanitize\TestExpected + \typeout{ \space Result: \space\space[\TestResult]}% + \typeout{ \space Expected: [\TestExpected]}% + \errmessage{Test failed!}% + \fi + \endgroup + }% + \test{\getrefbykeydefault{sec:hello}{title}{}}{Hello World}% + \test{\getrefbykeydefault{sec:foo}{title}{}}{\hbox{xy}}% + \begingroup + \def\hbox#1{[#1]}% hash-ok + \test{\getrefbykeydefault{sec:foo}{title}{}}{\hbox{xy}}% + \endgroup +} +\makeatother +\end{document} +\endinput +%% +%% End of file `refcount-test4.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/rerunfilecheck-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/rerunfilecheck-test1.tex index d90342f4d61..201272701df 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/rerunfilecheck-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/rerunfilecheck-test1.tex @@ -84,6 +84,22 @@ \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 rerunfilecheck.sty\relax}% \fi @@ -94,15 +110,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/resizegather-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/resizegather-test1.tex index f2341f483c7..1eef7697495 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/resizegather-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/resizegather-test1.tex @@ -82,6 +82,22 @@ \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 resizegather.sty\relax}% \fi @@ -92,15 +108,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/rotchiffre-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/rotchiffre-test1.tex new file mode 100644 index 00000000000..01620aee002 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/rotchiffre-test1.tex @@ -0,0 +1,135 @@ +%% +%% This is file `rotchiffre-test1.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% rotchiffre.dtx (with options: `test1') +%% +%% This is a generated file. +%% +%% Copyright (C) 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file rotchiffre.dtx +%% and the derived files +%% rotchiffre.sty, rotchiffre.pdf, rotchiffre.ins, rotchiffre.drv, +%% rotchiffre-test1.tex, rotchiffre-test2.tex. +%% +\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 rotchiffre.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 +\endinput +%% +%% End of file `rotchiffre-test1.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/rotchiffre-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/rotchiffre-test2.tex new file mode 100644 index 00000000000..a5d0250383c --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/rotchiffre-test2.tex @@ -0,0 +1,290 @@ +%% +%% This is file `rotchiffre-test2.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% rotchiffre.dtx (with options: `test2') +%% +%% This is a generated file. +%% +%% Copyright (C) 2010 by +%% Heiko Oberdiek <heiko.oberdiek at googlemail.com> +%% +%% This work may be distributed and/or modified under the +%% conditions of the LaTeX Project Public License, either +%% version 1.3c of this license or (at your option) any later +%% version. This version of this license is in +%% http://www.latex-project.org/lppl/lppl-1-3c.txt +%% and the latest version of this license is in +%% http://www.latex-project.org/lppl.txt +%% and version 1.3 or later is part of all distributions of +%% LaTeX version 2005/12/01 or later. +%% +%% This work has the LPPL maintenance status "maintained". +%% +%% This Current Maintainer of this work is Heiko Oberdiek. +%% +%% The Base Interpreter refers to any `TeX-Format', +%% because some files are installed in TDS:tex/generic//. +%% +%% This work consists of the main source file rotchiffre.dtx +%% and the derived files +%% rotchiffre.sty, rotchiffre.pdf, rotchiffre.ins, rotchiffre.drv, +%% rotchiffre-test1.tex, rotchiffre-test2.tex. +%% +\catcode`\{=1 % +\catcode`\}=2 % +\catcode`\#=6 % +\catcode`\^=7 % +\font\rmfont=ec-lmtt10\relax +\rmfont +\showboxbreadth=10000 % +\showboxdepth=10000 % +\errorcontextlines=10000 +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input rotchiffre.sty\relax +\else + \RequirePackage{rotchiffre}[2010/11/12]% + \RequirePackage{ifluatex}[2010/03/01]% + \RequirePackage{ifxetex}[2010/09/12]% +\fi +\catcode`\@=11 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname @onelevel@sanitize\endcsname\relax + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname detokenize\endcsname\relax + \def\strip@prefix#1->{}% + \def\@onelevel@sanitize#1{% + \edef#1{% + \expandafter\strip@prefix\meaning#1% + }% + }% + \else + \def\@onelevel@sanitize#1{% + \edef#1{% + \detokenize\expandafter{#1}% + }% + }% + \fi +\fi +\def\msg#{\immediate\write16} +\def\empty{} +\begingroup + \def\x#1{% + \def\space{#1}% + \def\spacesII{#1#1}% + \def\spacesIII{#1#1#1}% + \def\spacesIV{#1#1#1#1}% + }% +\expandafter\endgroup\x{ } +\def\PrintStr#1#2{% + \begingroup + \@onelevel@sanitize#2% + \msg{#1: [#2]}% hash-ok + \endgroup +} +\def\CheckResult{% + \PrintStr{Result}\StrResult + \ifx\StrExpect\StrResult + \msg{==> Ok}% + \else + \begingroup + \edef\x{\endgroup + \errmessage{Test failed (\chiffre)!}% + }\x + \fi +} +\long\def\test#1#2{% + \msg{}% + \begingroup + \setbox0=\hbox{% + \edef\StrInput{#1}% + \@onelevel@sanitize\StrInput + \PrintStr{ Input}\StrInput + \edef\StrExpect{#2}% + \@onelevel@sanitize\StrExpect + \PrintStr{Expect}\StrExpect + \action{#1}% + \CheckResult + }% + \ifdim\wd0=0pt % + \else + \showbox0 % + \fi + \endgroup +} +\def\cmd#1{% + \msg{* CMD: ROT#1}% + \def\chiffre{ROT#1}% + \def\action{\EdefRot{#1}\StrResult}% +} +\def\TestIgnore#1{% + \test{#1}{#1}% +} +\begingroup + \lccode`\P=`\%% + \lccode`\B=`\\% + \lccode`\H=`\#% +\lowercase{\endgroup + \def\PercentChar{P}% + \def\BackslashChar{B}% + \def\HashChar{H}% +} +\def\TestI{% + \TestIgnore{% + \space!"\HashChar$\PercentChar&'()*+,-./% + :;<=>?@% + [\BackslashChar]^_`% + \string{|\string}\string~% + }% +} +\begingroup + \catcode0=12 % + \lccode`A=1 % + \lccode`B=2 % + \lccode`C=3 % + \lccode`D=4 % + \lccode`E=5 % + \lccode`F=6 % + \lccode`G=7 % + \lccode`H=8 % + \lccode`I=9 % + \lccode`J=10 % + \lccode`K=11 % + \lccode`L=12 % + \lccode`M=13 % + \lccode`N=14 % + \lccode`O=15 % + \lccode`P=16 % + \lccode`Q=17 % + \lccode`R=18 % + \lccode`S=19 % + \lccode`T=20 % + \lccode`U=21 % + \lccode`V=22 % + \lccode`W=23 % + \lccode`X=24 % + \lccode`Y=25 % + \lccode`Z=26 % + \lccode`a=27 % + \lccode`b=28 % + \lccode`c=29 % + \lccode`d=30 % + \lccode`e=31 % + \lccode`f=127 % + \lccode`g=128 % + \lccode`h=129 % + \lccode`y=254 % + \lccode`z=255 % +\lowercase{\endgroup + \def\TestC{% + \TestIgnore{% + ^^@ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefhyz% + }% + }% + \def\TestZ{% + \TestIgnore{^^@}% + }% +} +\cmd{13} +\test{% + 0123456789% + ABCDEFGHIJKLMNOPQRSTUVWXYZ% + abcdefghijklmnopqrstuvwxyz% +}{% + 0123456789% + NOPQRSTUVWXYZABCDEFGHIJKLM% + nopqrstuvwxyzabcdefghijklm% +} +\TestI +\TestC +\test{}{} +\test{A}{N} +\test{N}{A} +\test{ }{ } +\test{0a}{0n} +\test{\spacesIV}{\spacesIV} +\test{{}}{{}} +\test{\par}{\noexpand\cne} +\cmd{5} +\test{% + 0123456789% + ABCDEFGHIJKLMNOPQRSTUVWXYZ% + abcdefghijklmnopqrstuvwxyz% +}{% + 5678901234% + ABCDEFGHIJKLMNOPQRSTUVWXYZ% + abcdefghijklmnopqrstuvwxyz% +} +\TestI +\TestC +\cmd{18} +\test{% + ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789% + abcdefghijklmnopqrstuvwxyz% +}{% + STUVWXYZ0123456789ABCDEFGHIJKLMNOPQR% + nopqrstuvwxyzabcdefghijklm% +} +\TestI +\TestC +\cmd{47} +\test{% + !"\HashChar$\PercentChar&'()*+,-./% + 0123456789% + :;<=>?@% + ABCDEFGHIJKLMNOPQRSTUVWXYZ% + [\BackslashChar]^_`% + abcdefghijklmnopqrstuvwxyz% + \string{|\string}\string~% +}{% + PQRSTUVWXYZ% + [\BackslashChar]^_`% + abcdefghijklmnopqrstuvwxyz% + \string{|\string}\string~% + !"\HashChar$\PercentChar&'()*+,-./% + 0123456789% + :;<=>?@% + ABCDEFGHIJKLMNO% +} +\TestZ +\TestC +\chardef\temp=0 % +\begingroup\expandafter\expandafter\expandafter\endgroup +\expandafter\ifx\csname XeTeXrevision\endcsname\relax + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname RequirePackage\endcsname\relax + \input ifluatex.sty\relax + \else + \RequirePackage{ifluatex}[2010/03/01]% + \fi + \begingroup\expandafter\expandafter\expandafter\endgroup + \expandafter\ifx\csname luatexversion\endcsname\relax + \else + \chardef\temp=1 % + \fi +\else + \chardef\temp=1 % +\fi +\ifcase\temp + \csname @@end\expandafter\endcsname\expandafter\end +\fi +\msg{* Big chars} +\cmd{5} +\test{}{} +\test{ }{ } +\test{ 0 1 }{ 5 6 } +\begingroup + \lccode`A=300 % + \lccode`B=1000 % + \lccode`C=10000 % +\lowercase{\endgroup + \TestIgnore{ABC}% + \TestIgnore{x A By zC xAy AxB}% +}% +\csname @@end\endcsname\end +\endinput +%% +%% End of file `rotchiffre-test2.tex'. diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/setouterhbox-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/setouterhbox-test1.tex index d477c2dea93..aa618fb6dbd 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/setouterhbox-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/setouterhbox-test1.tex @@ -86,6 +86,22 @@ \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 setouterhbox.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/soulutf8-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/soulutf8-test1.tex index a9d595b08bd..73dde7c87b9 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/soulutf8-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/soulutf8-test1.tex @@ -86,6 +86,22 @@ \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 soulutf8.sty\relax}% \fi @@ -96,15 +112,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/telprint-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/telprint-test1.tex index 15e19b589e7..dd807bcab93 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/telprint-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/telprint-test1.tex @@ -85,6 +85,22 @@ \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 telprint.sty\relax}% \fi @@ -95,15 +111,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test1.tex index 61272030b2e..a67c6def893 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2009 by +%% Copyright (C) 2009, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -87,6 +87,22 @@ \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 uniquecounter.sty\relax}% \fi @@ -97,15 +113,20 @@ \RangeCatcodeInvalid{123}{255}% \catcode`\@=12 % \catcode`\\=0 % - \catcode`\{=1 % - \catcode`\}=2 % - \catcode`\#=6 % - \catcode`\[=12 % - \catcode`\]=12 % \catcode`\%=14 % - \catcode`\ =10 % - \catcode13=5 % \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 diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test2.tex b/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test2.tex index d1631897200..0e258f12205 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test2.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test2.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2009 by +%% Copyright (C) 2009, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -38,7 +38,7 @@ \NeedsTeXFormat{LaTeX2e} \nofiles \documentclass{minimal} -\usepackage{uniquecounter}[2009/12/18] +\usepackage{uniquecounter}[2011/01/30] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test3.tex b/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test3.tex index 7084845f589..9f8b2e4e561 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test3.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/uniquecounter-test3.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2009 by +%% Copyright (C) 2009, 2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex index 0e9d56eed16..e9af5d1f232 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-base.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006-2010 by +%% Copyright (C) 2006-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,19 +29,19 @@ %% and the derived files %% zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty, %% zref-abspage.sty, zref-abspos.sty, zref-counter.sty, -%% zref-dotfill.sty, zref-hyperref.sty, zref-lastpage.sty, -%% zref-marks.sty, zref-nextpage.sty, zref-pageattr.sty, -%% zref-pagelayout.sty, zref-perpage.sty, zref-runs.sty, -%% zref-savepos.sty, zref-thepage.sty, zref-titleref.sty, -%% zref-totpages.sty, zref-user.sty, zref-xr.sty, -%% zref-example.tex, zref-example-lastpage.tex, +%% zref-dotfill.sty, zref-env.sty, zref-hyperref.sty, +%% zref-lastpage.sty, zref-marks.sty, zref-nextpage.sty, +%% zref-pageattr.sty, zref-pagelayout.sty, zref-perpage.sty, +%% zref-runs.sty, zref-savepos.sty, zref-thepage.sty, +%% zref-titleref.sty, zref-totpages.sty, zref-user.sty, +%% zref-xr.sty, zref-example.tex, zref-example-lastpage.tex, %% zref-example-nextpage.tex, zref-test1.tex, %% zref-test-base.tex, zref-test-runs.tex, %% zref-test-titleref-memoir.tex. %% \NeedsTeXFormat{LaTeX2e} \documentclass{article} -\usepackage{zref-base,zref-titleref}[2010/05/01] +\usepackage{zref-base,zref-titleref}[2011/03/18] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-runs.tex b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-runs.tex index ad022da8553..ec9d962cc5c 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-runs.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-runs.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006-2010 by +%% Copyright (C) 2006-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,19 +29,19 @@ %% and the derived files %% zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty, %% zref-abspage.sty, zref-abspos.sty, zref-counter.sty, -%% zref-dotfill.sty, zref-hyperref.sty, zref-lastpage.sty, -%% zref-marks.sty, zref-nextpage.sty, zref-pageattr.sty, -%% zref-pagelayout.sty, zref-perpage.sty, zref-runs.sty, -%% zref-savepos.sty, zref-thepage.sty, zref-titleref.sty, -%% zref-totpages.sty, zref-user.sty, zref-xr.sty, -%% zref-example.tex, zref-example-lastpage.tex, +%% zref-dotfill.sty, zref-env.sty, zref-hyperref.sty, +%% zref-lastpage.sty, zref-marks.sty, zref-nextpage.sty, +%% zref-pageattr.sty, zref-pagelayout.sty, zref-perpage.sty, +%% zref-runs.sty, zref-savepos.sty, zref-thepage.sty, +%% zref-titleref.sty, zref-totpages.sty, zref-user.sty, +%% zref-xr.sty, zref-example.tex, zref-example-lastpage.tex, %% zref-example-nextpage.tex, zref-test1.tex, %% zref-test-base.tex, zref-test-runs.tex, %% zref-test-titleref-memoir.tex. %% \NeedsTeXFormat{LaTeX2e} \documentclass{article} -\usepackage{zref-runs}[2010/05/01] +\usepackage{zref-runs}[2011/03/18] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-titleref-memoir.tex b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-titleref-memoir.tex index ef0df37f39e..d0f8a3b00d4 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-titleref-memoir.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test-titleref-memoir.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006-2010 by +%% Copyright (C) 2006-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,19 +29,19 @@ %% and the derived files %% zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty, %% zref-abspage.sty, zref-abspos.sty, zref-counter.sty, -%% zref-dotfill.sty, zref-hyperref.sty, zref-lastpage.sty, -%% zref-marks.sty, zref-nextpage.sty, zref-pageattr.sty, -%% zref-pagelayout.sty, zref-perpage.sty, zref-runs.sty, -%% zref-savepos.sty, zref-thepage.sty, zref-titleref.sty, -%% zref-totpages.sty, zref-user.sty, zref-xr.sty, -%% zref-example.tex, zref-example-lastpage.tex, +%% zref-dotfill.sty, zref-env.sty, zref-hyperref.sty, +%% zref-lastpage.sty, zref-marks.sty, zref-nextpage.sty, +%% zref-pageattr.sty, zref-pagelayout.sty, zref-perpage.sty, +%% zref-runs.sty, zref-savepos.sty, zref-thepage.sty, +%% zref-titleref.sty, zref-totpages.sty, zref-user.sty, +%% zref-xr.sty, zref-example.tex, zref-example-lastpage.tex, %% zref-example-nextpage.tex, zref-test1.tex, %% zref-test-base.tex, zref-test-runs.tex, %% zref-test-titleref-memoir.tex. %% \NeedsTeXFormat{LaTeX2e} \documentclass{memoir} -\usepackage{zref-titleref}[2010/05/01] +\usepackage{zref-titleref}[2011/03/18] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} diff --git a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex index 4c8f5450294..d8bf629f39d 100644 --- a/Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex +++ b/Master/texmf-dist/doc/latex/oberdiek/test/zref-test1.tex @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2006-2010 by +%% Copyright (C) 2006-2011 by %% Heiko Oberdiek <heiko.oberdiek at googlemail.com> %% %% This work may be distributed and/or modified under the @@ -29,12 +29,12 @@ %% and the derived files %% zref.sty, zref.pdf, zref.ins, zref.drv, zref-base.sty, %% zref-abspage.sty, zref-abspos.sty, zref-counter.sty, -%% zref-dotfill.sty, zref-hyperref.sty, zref-lastpage.sty, -%% zref-marks.sty, zref-nextpage.sty, zref-pageattr.sty, -%% zref-pagelayout.sty, zref-perpage.sty, zref-runs.sty, -%% zref-savepos.sty, zref-thepage.sty, zref-titleref.sty, -%% zref-totpages.sty, zref-user.sty, zref-xr.sty, -%% zref-example.tex, zref-example-lastpage.tex, +%% zref-dotfill.sty, zref-env.sty, zref-hyperref.sty, +%% zref-lastpage.sty, zref-marks.sty, zref-nextpage.sty, +%% zref-pageattr.sty, zref-pagelayout.sty, zref-perpage.sty, +%% zref-runs.sty, zref-savepos.sty, zref-thepage.sty, +%% zref-titleref.sty, zref-totpages.sty, zref-user.sty, +%% zref-xr.sty, zref-example.tex, zref-example-lastpage.tex, %% zref-example-nextpage.tex, zref-test1.tex, %% zref-test-base.tex, zref-test-runs.tex, %% zref-test-titleref-memoir.tex. @@ -42,7 +42,7 @@ \NeedsTeXFormat{LaTeX2e} \nofiles \documentclass{article} -\usepackage{zref-base}[2010/05/01] +\usepackage{zref-base}[2011/03/18] \usepackage{qstest} \IncludeTests{*} \LogTests{log}{*}{*} |