%%
%% 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.
%% 
%% The source is maintained by the LaTeX Project team and bug
%% reports for it can be opened at https://latex-project.org/bugs/
%% (but please observe conditions on bug reports sent to that address!)
%% 
%% 
%% Copyright (C) 1993-2025
%% The LaTeX 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
%%    https://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'.
%% 
%%
%% (C) Copyright (C) 1999-2019 Frank Mittelbach
%% All rights reserved.
%%
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{trace}
          [2021/04/18 v1.1f 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}

%% \tracinglostchars\z@
  \edef\tr@ce@n{%
    \noexpand\@tracingtrue
    \tracingstats\tw@
    \tracingpages\@ne
    \tracinglostchars\thr@@
    \tracingparagraphs\@ne
    \errorcontextlines\maxdimen
    \ifdefined\tracingstacklevels \tracingstacklevels\maxdimen \fi
    \noexpand\ifnum\tracingoutput=\@ne
    \noexpand\else
      \tracingoutput\tw@
      \showboxbreadth\maxdimen
      \showboxdepth\maxdimen
    \noexpand\fi
    \errorstopmode
    \tracingmacros\tw@
    \tracinggroups\@ne
    \tracingrestores\@ne
    \tracingcommands\tw@
    \tracingassigns\@ne
    \tracingonline\tracingonline@p
  }
  \edef\conditionally@traceoff{%
    \tracingassigns\z@
    \tracingrestores\z@
    \tracingcommands\z@
    \tracingpages\z@
    \tracingmacros\z@
    \noexpand\ifnum\tracingoutput=\tw@
      \tracingoutput\z@
      \showboxbreadth\m@ne
      \showboxdepth\m@ne
    \noexpand\fi
    \tracingstats\@ne
    \ifdefined\tracingstacklevels \tracingstacklevels\z@ \fi
    \errorcontextlines\m@ne
    \tracingparagraphs\z@
    \tracinggroups\z@
  }
\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
    \maybe@ictrue
    \expandafter\@tfor\expandafter\reserved@a\expandafter:\expandafter=%
        \nocorrlist
    \do \t@st@ic
    \ifmaybe@ic \sw@slant \fi
    \conditionally@traceon
  \fi
}
\endinput
%%
%% End of file `trace.sty'.
