summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def
blob: c8188214d72533d2dd9579f0c41f6ef7afc0fc17 (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
62
63
64
65
66
67
68
69
70
\ProvidesFile{etoolbox.def}
  [2015/03/19 v2.1d etoolbox debug messages (JAW)]

\begingroup
\makeatletter
\@makeother\+
\@makeother\-
\@makeother\=
\@makeother\>

\long\gdef\etb@dbg@trce#1{\typeout{%
  [debug] tracing \string#1\on@line}}%
\long\gdef\etb@dbg@init#1{\typeout{%
  [debug] analyzing '\detokenize\expandafter{\string#1}'}}%
\gdef\etb@dbg@info#1{\typeout{%
  [debug] ++ \csuse{etb@msg@i@#1}}}%
\gdef\etb@dbg@succ#1{\typeout{%
  [debug] == \csuse{etb@msg@s@#1}}}%
\gdef\etb@dbg@fail#1{\typeout{%
  [debug] -- \csuse{etb@msg@f@#1}}}%

\gdef\etb@msg@ex{^^J[debug] -> }%
\gdef\etb@msg@br{^^J[debug]\@spaces}

\gdef\etb@msg@i@def{%
  control sequence is defined}
\gdef\etb@msg@i@mac{%
  control sequence is a macro}
\gdef\etb@msg@i@prm{%
  control sequence is a macro with parameters}
\gdef\etb@msg@i@prl{%
  control sequence is a macro without parameters}
\xdef\etb@msg@i@pro{%
  control sequence is a \string\protected\space macro}
\gdef\etb@msg@i@tok{%
  macro can be retokenized cleanly}
\gdef\etb@msg@i@pat{%
  search pattern found in replacement text}
\gdef\etb@msg@i@pos{%
  patching possible}
\gdef\etb@msg@s@red{%
  redefining macro now}
\gdef\etb@msg@s@ret{%
  retokenizing macro now}
\xdef\etb@msg@f@def{%
  control sequence is undefined or \string\relax}
\gdef\etb@msg@f@mac{%
  control sequence is not a macro}
\xdef\etb@msg@f@tok{%
  macro cannot be retokenized cleanly\noexpand\etb@msg@ex
  the macro may have been defined under a category\noexpand\etb@msg@br
  code regime different from the current one\noexpand\etb@msg@ex
  the replacement text may contain special control\noexpand\etb@msg@br
  sequence tokens formed with
  \string\csname...\string\endcsname;\noexpand\etb@msg@ex
  the replacement text may contain carriage return,\noexpand\etb@msg@br
  newline, or similar characters}
\xdef\etb@msg@f@hsh{%
  nested patching command and parameters in patch\noexpand\etb@msg@ex
  the patching command seems to be nested in the\noexpand\etb@msg@br
  argument to some other command\noexpand\etb@msg@ex
  the patch text seems to contain \string# characters\noexpand\etb@msg@ex
  either avoid nesting or use \string# characters with\noexpand\etb@msg@br
  category code 12 in the patch text\noexpand\etb@msg@ex
  simply doubling the \string# characters will not work}
\gdef\etb@msg@f@pat{%
  search pattern not found in replacement text}

\endgroup
\endinput