summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/etoolbox/etoolbox.def
blob: 41540333b44ebc831bb8242ffacb49c05472e379 (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
71
% $Id: etoolbox.def,v 1.7 2008/06/28 18:25:41 lehman stable $

\ProvidesFile{etoolbox.def}[2008/06/28 v1.7 etoolbox debug messages]

\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}
\gdef\etb@msg@f@def{%
  control sequence is undefined or \@backslashchar relax}
\gdef\etb@msg@f@mac{%
  control sequence is not a macro}
\gdef\etb@msg@f@tok{%
  macro cannot be retokenized cleanly\etb@msg@ex
  the macro may have been defined under a category\etb@msg@br
  code regime different from the current one\etb@msg@ex
  the replacement text may contain special control\etb@msg@br
  sequence tokens formed with \@backslashchar
  csname...\@backslashchar endcsname;\etb@msg@ex
  the replacement text may contain carriage return,\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