summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/generic/gobble/gobble.tex
blob: 723fd4992db51cb99ec42a6fc9e55108cc045458 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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'.