diff options
author | Karl Berry <karl@freefriends.org> | 2010-05-04 17:35:01 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2010-05-04 17:35:01 +0000 |
commit | 3cd7d680d047db2f439ccba96948f1ceaa6d973f (patch) | |
tree | 99414f003d20290deb6c11806bde6685c1eb9b25 /Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-gobble.tex | |
parent | 67c3a09c0f5d7fcf6bff5cfbc686a0c247d0e744 (diff) |
oberdiek update (3may10)
git-svn-id: svn://tug.org/texlive/trunk@18100 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-gobble.tex')
-rw-r--r-- | Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-gobble.tex | 205 |
1 files changed, 205 insertions, 0 deletions
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 new file mode 100644 index 00000000000..30d471919d4 --- /dev/null +++ b/Master/texmf-dist/doc/latex/oberdiek/test/ltxcmds-test-gobble.tex @@ -0,0 +1,205 @@ +%% +%% This is file `ltxcmds-test-gobble.tex', +%% generated with the docstrip utility. +%% +%% The original source files were: +%% +%% ltxcmds.dtx (with options: `test-gobble') +%% +%% This is a generated file. +%% +%% Copyright (C) 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. +%% +%% 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. +%% +\catcode`\{=1 % +\catcode`\}=2 % +\catcode`\#=6 % +\expandafter\ifx\csname RequirePackage\endcsname\relax + \input ltxcmds.sty\relax +\else + \RequirePackage{ltxcmds}[2010/04/26]% +\fi +\catcode`\@=11 % +\def\msg#{\immediate\write16}% +\msg{[Test \string\ltx@GobbleNum]}% +\long\def\Test#1=#2\\{% + \edef\StrA{\ltx@GobbleNum#1}% + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\StrAA + \expandafter\expandafter\expandafter{\ltx@GobbleNum#1}% + \edef\StrB{#2}% + \ifx\StrA\StrB + \ifx\StrAA\StrB + \msg{* ok.}% + \else + \msg{StrAA: \StrAA}% + \msg{StrB: \StrB}% + \errhelp{Test: #1=#2}% + \errmessage{Test (two expansions) failed}% + \fi + \else + \msg{StrA: \StrA}% + \msg{StrB: \StrB}% + \errhelp{Test: #1=#2}% + \errmessage{Test (edef) failed!}% + \fi +} +\Test0abc=abc\\ +\Test1abc=bc\\ +\Test2abc=c\\ +\Test3abcd=d\\ +\Test4abcde=e\\ +\Test5abcdef=f\\ +\Test6abcdefg=g\\ +\Test7abcdefgh=h\\ +\Test8abcdefghi=i\\ +\Test9abcdefghij=j\\ +\Test{10}0123456789X=X\\ +\Test{12}abcdefghijklm=m\\ +\Test{700}% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +X=X\\ +\Test{-1}abc=abc\\ +\Test2\par\par\relax=\relax\\ + +\msg{[Test \string\ltx@CdrNum]}% +\long\def\Test#1=#2\\{% + \edef\StrA{\ltx@CdrNum#1\@nil}% + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\StrAA + \expandafter\expandafter\expandafter{\ltx@CdrNum#1\@nil}% + \edef\StrB{#2}% + \ifx\StrA\StrB + \ifx\StrAA\StrB + \msg{* ok.}% + \else + \msg{StrAA: \meaning\StrAA}% + \msg{StrB: \meaning\StrB}% + \errhelp{Test: #1=#2}% + \errmessage{Test (two expansions) failed}% + \fi + \else + \msg{StrA: \StrA}% + \msg{StrB: \StrB}% + \errhelp{Test: #1=#2}% + \errmessage{Test (edef) failed!}% + \fi +} +\Test0abc=abc\\ +\Test1abc=bc\\ +\Test2abc=c\\ +\Test3abcd=d\\ +\Test4abcde=e\\ +\Test5abcdef=f\\ +\Test6abcdefg=g\\ +\Test7abcdefgh=h\\ +\Test8abcdefghi=i\\ +\Test9abcdefghij=j\\ +\Test{10}0123456789X=X\\ +\Test{12}abcdefghijklm=m\\ +\Test{700}% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +X=X\\ +\Test{-1}abc=abc\\ +\Test2\par\par\relax=\relax\\ + +\msg{[Test \string\ltx@CarNum]}% +\long\def\Test#1=#2\\{% + \edef\StrA{\ltx@CarNum#1\@nil}% + \expandafter\expandafter\expandafter\def + \expandafter\expandafter\expandafter\StrAA + \expandafter\expandafter\expandafter{\ltx@CarNum#1\@nil}% + \edef\StrB{#2}% + \ifx\StrA\StrB + \ifx\StrAA\StrB + \msg{* ok.}% + \else + \msg{StrAA: \meaning\StrAA}% + \msg{StrB: \meaning\StrB}% + \errhelp{Test: #1=#2}% + \errmessage{Test (two expansions) failed}% + \fi + \else + \msg{StrA: \StrA}% + \msg{StrB: \StrB}% + \errhelp{Test: #1=#2}% + \errmessage{Test (edef) failed!}% + \fi +} +\Test0abc=\\ +\Test1abc=a\\ +\Test2abc=ab\\ +\Test3abc=abc\\ +\Test3abcd=abc\\ +\Test4abcde=abcd\\ +\Test{10}0123456789X=0123456789\\ +\Test{12}abcdefghijklm=abcdefghijkl\\ +\Test{700}% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +X=% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +0123456789012345678901234567890123456789012345678901234567890123456789% +\\ +\Test{-1}abc=\\ +\Test2\par\par\relax=\par\par\\ +\csname @@end\endcsname\end +\endinput +%% +%% End of file `ltxcmds-test-gobble.tex'. |