summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tools/trace.sty
blob: 3db9b0c59a5dbdd42c0a20a42ea217f70854f597 (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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
%%
%% This is file `trace.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% trace.dtx  (with options: `package')
%% 
%% This is a generated file.
%% 
%% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005
%% 2006 2008 2009
%% The LaTeX3 Project and any individual authors listed elsewhere
%% in this file.
%% 
%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
%% --------------------------------------------------------------------------
%% 
%% It may be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version 1.3c
%% of this license or (at your option) any later version.
%% The latest version of this license is in
%%    http://www.latex-project.org/lppl.txt
%% and version 1.3c or later is part of all distributions of LaTeX
%% version 2005/12/01 or later.
%% 
%% This file may only be distributed together with a copy of the LaTeX
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
%% without such generated files.
%% 
%% The list of all files belonging to the LaTeX `Tools Bundle' is
%% given in the file `manifest.txt'.
%% 
%%
%% $Id: trace.dtx 5291 2003-06-29 14:44:49Z mittelba $
%%
%% (C) Copyright 1999-2001 Frank Mittelbach
%% All rights reserved.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{trace}
          [2003/04/30 v1.1c trace LaTeX code]
\NeedsTeXFormat{LaTeX2e}[1998/12/01]
\DeclareOption{logonly}
   {\let\tracingonline@p\z@}
\let\tracingonline@p\@ne
\DeclareOption{full}
    {\AtEndOfPackage{\let\conditionally@traceoff\@empty
                     \let\conditionally@traceon\@empty
                     \let\traceon\tr@ce@n
    }}
\ProcessOptions\relax
\newif\if@tracing
\def\traceon{\let\conditionally@traceoff\unconditionally@traceoff
             \tr@ce@n}

\ifx\tracinggroups\undefined
  \def\tr@ce@n{%
    \@tracingtrue
    \tracingstats\tw@
    \tracingpages\@ne
    \tracinglostchars\@ne
    \tracingparagraphs\@ne
    \errorcontextlines\maxdimen
    \tracingoutput\@ne
    \showboxbreadth\maxdimen
    \showboxdepth\maxdimen
    \errorstopmode
    \tracingmacros\tw@
    \tracingrestores\@ne
    \tracingcommands\tw@
    \tracingonline\tracingonline@p
  }
  \def\conditionally@traceoff{%
    \tracingrestores\z@
    \tracingcommands\z@
    \tracingpages\z@
    \tracingmacros\z@
    \tracingparagraphs\z@
    \tracingoutput\z@
    \showboxbreadth\m@ne
    \showboxdepth\m@ne
   \tracingstats\@ne
  }
\else
  \def\tr@ce@n{%
    \@tracingtrue
    \tracingstats\tw@
    \tracingpages\@ne
    \tracinglostchars\@ne
    \tracingparagraphs\@ne
    \errorcontextlines\maxdimen
    \tracingoutput\@ne
    \showboxbreadth\maxdimen
    \showboxdepth\maxdimen
    \errorstopmode
    \tracingmacros\tw@
    \tracinggroups\@ne
    \tracingrestores\@ne
    \tracingcommands\tw@
    \tracingassigns\@ne
    \tracingonline\tracingonline@p
  }
  \def\conditionally@traceoff{%
    \tracingassigns\z@
    \tracingrestores\z@
    \tracingcommands\z@
    \tracingpages\z@
    \tracingmacros\z@
    \tracingoutput\z@
    \showboxbreadth\m@ne
    \showboxdepth\m@ne
    \tracingstats\@ne
    \tracingparagraphs\z@
    \tracinggroups\z@
  }
\fi
\let\unconditionally@traceoff\conditionally@traceoff
\def\tracingall{\let\conditionally@traceoff\@empty
  \let\tracingonline@p\@ne
  \tr@ce@n
}
\def\traceoff{\unconditionally@traceoff \@tracingfalse}
\def\conditionally@traceon{\if@tracing \expandafter \traceon \fi}
\def\calc@open({\begingroup
   \conditionally@traceoff
   \aftergroup\calc@initB
   \begingroup\aftergroup\calc@initB
   \calc@pre@scan}
\def\define@newfont{%
  \begingroup
    \conditionally@traceoff
    \let\typeout\@font@info
    \escapechar\m@ne
    \expandafter\expandafter\expandafter
       \split@name\expandafter\string\font@name\@nil
      \try@load@fontshape % try always
    \expandafter\ifx
       \csname\curr@fontshape\endcsname \relax
      \wrong@fontshape\else
      \extract@font\fi
  \endgroup}
\frozen@everymath =
   {\conditionally@traceoff \check@mathfonts \conditionally@traceon
    \the\everymath}
\frozen@everydisplay =
   {\conditionally@traceoff \check@mathfonts \conditionally@traceon
    \the\everydisplay}
\def \maybe@ic@ {%
  \ifdim \fontdimen\@ne\font>\z@
  \else
    \conditionally@traceoff
    \@tempswatrue
    \expandafter\@tfor\expandafter\reserved@a\expandafter:\expandafter=%
        \nocorrlist
    \do \t@st@ic
    \if@tempswa \sw@slant \fi
    \conditionally@traceon
  \fi
}
\endinput
%%
%% End of file `trace.sty'.