From 8aa5538f3f0ea3c56b966e3f0f16c99ac9ea6f56 Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Sat, 7 May 2016 22:28:21 +0000 Subject: gobble (7may16) git-svn-id: svn://tug.org/texlive/trunk@40936 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/generic/gobble/gobble.tex | 61 +++++++++++++++++++++++++ 1 file changed, 61 insertions(+) create mode 100644 Master/texmf-dist/tex/generic/gobble/gobble.tex (limited to 'Master/texmf-dist/tex/generic/gobble') diff --git a/Master/texmf-dist/tex/generic/gobble/gobble.tex b/Master/texmf-dist/tex/generic/gobble/gobble.tex new file mode 100644 index 00000000000..723fd4992db --- /dev/null +++ b/Master/texmf-dist/tex/generic/gobble/gobble.tex @@ -0,0 +1,61 @@ +\expandafter\ifx\csname gobble.tex loaded\endcsname\relax + \expandafter\def\csname gobble.tex loaded\endcsname{1}% +\else + \expandafter\endinput +\fi +\expandafter\edef\csname gobbletex@catcode\endcsname{% + \catcode`\noexpand\@=\the\catcode`\@% +}% +\catcode`\@=11 +\long\def\@gobble#1{}% +\long\def\@gobbletwo#1#2{}% +\long\def\@gobblethree#1#2#3{}% +\long\def\@gobblefour#1#2#3#4{}% +\long\def\@gobbleopt{% + \@ifnextchar[% + {\@gobbleopt@}% + {}% +}% +\def\@gobbleopt@[#1]{}% +\long\def\@gobbletwoopt{% + \@ifnextchar[% + {\@gobbletwoopt@}% + {}% +}% +\def\@gobbletwoopt@[#1]{\@gobbleopt}% +\long\def\@gobbleallopt{% + \@ifnextchar[% + {\@gobbleallopt@}% + {}% +}% +\long\def\@gobbleallopt@[#1]{% + \@ifnextchar[% + {\@gobbleallopt@}% + {}% +}% +\long\def\@gobbletwoopttwo{% + \@ifnextchar[% + {\@gobbletwoopttwo@}% + {\@gobbletwo}% +}% +\long\def\@gobbletwoopttwo@[#1]{% + \@ifnextchar[% + {\@gobbletwoopttwo@@}% + {\@gobbletwo}% +}% +\long\def\@gobbletwoopttwo@@[#1]{% + \@gobbletwo +}% +\long\def\@firstofone#1{#1}% +\long\def\@firstoftwo#1#2{#1}% +\long\def\@secondoftwo#1#2{#2}% +\long\def\@firstofthree#1#2#3{#1}% +\long\def\@secondofthree#1#2#3{#2}% +\long\def\@thirdofthree#1#2#3{#3}% +\long\def\@gobbletofi#1#2\fi{\fi#1}% +\long\def\@gobbletoelse#1#2\else{\else#1}% +\long\def\@gobbletoor#1#2\or{\or#1}% +\gobbletex@catcode +\endinput +%% +%% End of file `gobble.tex'. -- cgit v1.2.3