diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/tools/trace.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/tools/trace.sty | 52 |
1 files changed, 14 insertions, 38 deletions
diff --git a/Master/texmf-dist/tex/latex/tools/trace.sty b/Master/texmf-dist/tex/latex/tools/trace.sty index 2f0eb0b3ef2..e97fc31d741 100644 --- a/Master/texmf-dist/tex/latex/tools/trace.sty +++ b/Master/texmf-dist/tex/latex/tools/trace.sty @@ -36,12 +36,12 @@ %% given in the file `manifest.txt'. %% %% -%% (C) Copyright 1999-2014 Frank Mittelbach +%% (C) Copyright 1999-2018 Frank Mittelbach %% All rights reserved. %% \NeedsTeXFormat{LaTeX2e} \ProvidesPackage{trace} - [2014/10/28 v1.1d trace LaTeX code] + [2018/10/13 v1.1e trace LaTeX code] \NeedsTeXFormat{LaTeX2e}[1998/12/01] \DeclareOption{logonly} {\let\tracingonline@p\z@} @@ -56,7 +56,7 @@ \def\traceon{\let\conditionally@traceoff\unconditionally@traceoff \tr@ce@n} -\ifx\tracinggroups\undefined +%% \tracinglostchars\z@ \def\tr@ce@n{% \@tracingtrue \tracingstats\tw@ @@ -64,37 +64,12 @@ \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 + \ifnum\tracingoutput=\@ne + \else + \tracingoutput\tw@ + \showboxbreadth\maxdimen + \showboxdepth\maxdimen + \fi \errorstopmode \tracingmacros\tw@ \tracinggroups\@ne @@ -109,14 +84,15 @@ \tracingcommands\z@ \tracingpages\z@ \tracingmacros\z@ - \tracingoutput\z@ - \showboxbreadth\m@ne - \showboxdepth\m@ne + \ifnum\tracingoutput=\tw@ + \tracingoutput\z@ + \showboxbreadth\m@ne + \showboxdepth\m@ne + \fi \tracingstats\@ne \tracingparagraphs\z@ \tracinggroups\z@ } -\fi \let\unconditionally@traceoff\conditionally@traceoff \def\tracingall{\let\conditionally@traceoff\@empty \let\tracingonline@p\@ne |