Debian Codegraph @

texmf-dist/tex/latex-dev/tools/trace.sty

raw
1 %%
2 %% This is file `trace.sty',
3 %% generated with the docstrip utility.
4 %%
5 %% The original source files were:
6 %%
7 %% trace.dtx (with options: `package')
8 %%
9 %% This is a generated file.
10 %%
11 %% The source is maintained by the LaTeX Project team and bug
12 %% reports for it can be opened at https://latex-project.org/bugs/
13 %% (but please observe conditions on bug reports sent to that address!)
14 %%
15 %%
16 %% Copyright (C) 1993-2026
17 %% The LaTeX Project and any individual authors listed elsewhere
18 %% in this file.
19 %%
20 %% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'.
21 %% --------------------------------------------------------------------------
22 %%
23 %% It may be distributed and/or modified under the
24 %% conditions of the LaTeX Project Public License, either version 1.3c
25 %% of this license or (at your option) any later version.
26 %% The latest version of this license is in
27 %% https://www.latex-project.org/lppl.txt
28 %% and version 1.3c or later is part of all distributions of LaTeX
29 %% version 2005/12/01 or later.
30 %%
31 %% This file may only be distributed together with a copy of the LaTeX
32 %% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle'
33 %% without such generated files.
34 %%
35 %% The list of all files belonging to the LaTeX `Tools Bundle' is
36 %% given in the file `manifest.txt'.
37 %%
38 %%
39 %% (C) Copyright (C) 1999-2019 Frank Mittelbach
40 %% All rights reserved.
41 %%
42 \NeedsTeXFormat{LaTeX2e}
43 \ProvidesPackage{trace}
44 [2021/04/18 v1.1f trace LaTeX code]
45 \NeedsTeXFormat{LaTeX2e}[1998/12/01]
46 \DeclareOption{logonly}
47 {\let\tracingonline@p\z@}
48 \let\tracingonline@p\@ne
49 \DeclareOption{full}
50 {\AtEndOfPackage{\let\conditionally@traceoff\@empty
51 \let\conditionally@traceon\@empty
52 \let\traceon\tr@ce@n
53 }}
54 \ProcessOptions\relax
55 \newif\if@tracing
56 \def\traceon{\let\conditionally@traceoff\unconditionally@traceoff
57 \tr@ce@n}
58
59 %% \tracinglostchars\z@
60 \edef\tr@ce@n{%
61 \noexpand\@tracingtrue
62 \tracingstats\tw@
63 \tracingpages\@ne
64 \tracinglostchars\thr@@
65 \tracingparagraphs\@ne
66 \errorcontextlines\maxdimen
67 \ifdefined\tracingstacklevels \tracingstacklevels\maxdimen \fi
68 \noexpand\ifnum\tracingoutput=\@ne
69 \noexpand\else
70 \tracingoutput\tw@
71 \showboxbreadth\maxdimen
72 \showboxdepth\maxdimen
73 \noexpand\fi
74 \errorstopmode
75 \tracingmacros\tw@
76 \tracinggroups\@ne
77 \tracingrestores\@ne
78 \tracingcommands\tw@
79 \tracingassigns\@ne
80 \tracingonline\tracingonline@p
81 }
82 \edef\conditionally@traceoff{%
83 \tracingassigns\z@
84 \tracingrestores\z@
85 \tracingcommands\z@
86 \tracingpages\z@
87 \tracingmacros\z@
88 \noexpand\ifnum\tracingoutput=\tw@
89 \tracingoutput\z@
90 \showboxbreadth\m@ne
91 \showboxdepth\m@ne
92 \noexpand\fi
93 \tracingstats\@ne
94 \ifdefined\tracingstacklevels \tracingstacklevels\z@ \fi
95 \errorcontextlines\m@ne
96 \tracingparagraphs\z@
97 \tracinggroups\z@
98 }
99 \let\unconditionally@traceoff\conditionally@traceoff
100 \def\tracingall{\let\conditionally@traceoff\@empty
101 \let\tracingonline@p\@ne
102 \tr@ce@n
103 }
104 \def\traceoff{\unconditionally@traceoff \@tracingfalse}
105 \def\conditionally@traceon{\if@tracing \expandafter \traceon \fi}
106 \def\calc@open({\begingroup
107 \conditionally@traceoff
108 \aftergroup\calc@initB
109 \begingroup\aftergroup\calc@initB
110 \calc@pre@scan}
111 \def\define@newfont{%
112 \begingroup
113 \conditionally@traceoff
114 \let\typeout\@font@info
115 \escapechar\m@ne
116 \expandafter\expandafter\expandafter
117 \split@name\expandafter\string\font@name\@nil
118 \try@load@fontshape % try always
119 \expandafter\ifx
120 \csname\curr@fontshape\endcsname \relax
121 \wrong@fontshape\else
122 \extract@font\fi
123 \endgroup}
124 \frozen@everymath =
125 {\conditionally@traceoff \check@mathfonts \conditionally@traceon
126 \the\everymath}
127 \frozen@everydisplay =
128 {\conditionally@traceoff \check@mathfonts \conditionally@traceon
129 \the\everydisplay}
130 \def \maybe@ic@ {%
131 \ifdim \fontdimen\@ne\font>\z@
132 \else
133 \conditionally@traceoff
134 \maybe@ictrue
135 \expandafter\@tfor\expandafter\reserved@a\expandafter:\expandafter=%
136 \nocorrlist
137 \do \t@st@ic
138 \ifmaybe@ic \sw@slant \fi
139 \conditionally@traceon
140 \fi
141 }
142 \endinput
143 %%
144 %% End of file `trace.sty'.