Debian Codegraph @

texmf-dist/doc/latex/letltxmacro/letltxmacro-showcases.tex

raw
1 %%
2 %% This is file `letltxmacro-showcases.tex',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% letltxmacro.dtx (with options: `showcases')
8 %%
9 %% This is a generated file.
10 %%
11 %% Project: letltxmacro
12 %% Version: 2019/12/03 v1.6
13 %%
14 %% Copyright (C)
15 %% 2008, 2010 Heiko Oberdiek
16 %% 2016-2019 Oberdiek Package Support Group
17 %%
18 %% This work may be distributed and/or modified under the
19 %% conditions of the LaTeX Project Public License, either
20 %% version 1.3c of this license or (at your option) any later
21 %% version. This version of this license is in
22 %% https://www.latex-project.org/lppl/lppl-1-3c.txt
23 %% and the latest version of this license is in
24 %% https://www.latex-project.org/lppl.txt
25 %% and version 1.3 or later is part of all distributions of
26 %% LaTeX version 2005/12/01 or later.
27 %%
28 %% This work has the LPPL maintenance status "maintained".
29 %%
30 %% The Current Maintainers of this work are
31 %% Heiko Oberdiek and the Oberdiek Package Support Group
32 %% https://github.com/ho-tex/letltxmacro/issues
33 %%
34 %%
35 %% This work consists of the main source file letltxmacro.dtx
36 %% and the derived files
37 %% letltxmacro.sty, letltxmacro.pdf, letltxmacro.ins, letltxmacro.drv,
38 %% letltxmacro-showcases.tex, letltxmacro-test1.tex,
39 %% letltxmacro-test2.tex.
40 %%
41 \NeedsTeXFormat{LaTeX2e}
42 \makeatletter
43 \newcommand*{\Line}[1]{%
44 \typeout{\@percentchar#1}%
45 }
46 \newcommand*{\ShowCmdName}[1]{%
47 \@ifundefined{#1}{}{%
48 \Line{%
49 \space\space(\expandafter\string\csname#1\endcsname) = %
50 (\expandafter\meaning\csname#1\endcsname)%
51 }%
52 }%
53 }
54 \newcommand*{\ShowCmds}[1]{%
55 \ShowCmdName{#1}%
56 \ShowCmdName{#1 }%
57 \ShowCmdName{\\#1}%
58 \ShowCmdName{\\#1 }%
59 }
60 \let\\\@backslashchar
61 \newcommand*{\ShowDef}[2]{%
62 \begingroup
63 \Line{}%
64 \newcommand*{\DefString}{#2}%
65 \@onelevel@sanitize\DefString
66 \Line{\DefString}%
67 #2%
68 \ShowCmds{#1}%
69 \endgroup
70 }
71 \typeout{}
72 \Line{* LaTeX definitions:}
73 \ShowDef{cmd}{%
74 \newcommand{\cmd}[2][default]{}%
75 }
76 \ShowDef{cmd}{%
77 \DeclareRobustCommand{\cmd}{}%
78 }
79 \ShowDef{cmd}{%
80 \DeclareRobustCommand{\cmd}[2][default]{}%
81 }
82 \typeout{}
83 \RequirePackage{etoolbox}[2008/06/12]%
84 \Line{}
85 \Line{* etoolbox's robust definitions:}
86 \ShowDef{cmd}{%
87 \newrobustcmd{\cmd}{}%
88 }
89 \ShowDef{cmd}{%
90 \newrobustcmd{\cmd}[2][default]{}%
91 }
92 \Line{}
93 \Line{* etoolbox's \string\robustify:}
94 \ShowDef{cmd}{%
95 \newcommand{\cmd}[2][default]{} %
96 \robustify{\cmd}%
97 }
98 \ShowDef{cmd}{%
99 \DeclareRobustCommand{\cmd}{} %
100 \robustify{\cmd}%
101 }
102 \ShowDef{cmd}{%
103 \DeclareRobustCommand{\cmd}[2][default]{} %
104 \robustify{\cmd}%
105 }
106 \typeout{}
107 \@@end
108 \endinput
109 %%
110 %% End of file `letltxmacro-showcases.tex'.