summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/latex/tools/trace.dtx
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/latex/tools/trace.dtx')
-rw-r--r--Master/texmf-dist/source/latex/tools/trace.dtx123
1 files changed, 62 insertions, 61 deletions
diff --git a/Master/texmf-dist/source/latex/tools/trace.dtx b/Master/texmf-dist/source/latex/tools/trace.dtx
index 3d5f040f211..172c6d7a461 100644
--- a/Master/texmf-dist/source/latex/tools/trace.dtx
+++ b/Master/texmf-dist/source/latex/tools/trace.dtx
@@ -1,30 +1,29 @@
% \iffalse meta-comment
%
-% Copyright 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005
-% 2006 2008 2009
+% Copyright 1993-2014
% The LaTeX3 Project and any individual authors listed elsewhere
-% in this file.
-%
+% in this file.
+%
% This file is part 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
+% and version 1.3c or later is part of all distributions of LaTeX
% version 2005/12/01 or later.
-%
+%
% The list of all files belonging to the LaTeX `Tools Bundle' is
% given in the file `manifest.txt'.
-%
+%
% \fi
% \iffalse
%%
%% $Id: trace.dtx 5291 2003-06-29 14:44:49Z mittelba $
%%
-%% (C) Copyright 1999-2001 Frank Mittelbach
+%% (C) Copyright 1999-2014 Frank Mittelbach
%% All rights reserved.
%%
%<*dtx>
@@ -35,7 +34,7 @@
%<driver>\ProvidesFile{trace.drv}
% \fi
% \ProvidesFile{trace.dtx}
- [2003/04/30 v1.1c trace LaTeX code]
+ [2014/04/21 v1.1d trace LaTeX code]
%
% \iffalse
%<*driver>
@@ -112,31 +111,31 @@
% \fontshape\updefault
% \footnotesize}%
%\begin{verbatim}
-% \setlength ->\protect \setlength
+% \setlength ->\protect \setlength
% {\relax}
-%
-% \setlength ->\calc@assign@skip
-%
-% \calc@assign@skip ->\calc@assign@generic \calc@Askip \calc@Bskip
-%
+%
+% \setlength ->\calc@assign@skip
+%
+% \calc@assign@skip ->\calc@assign@generic \calc@Askip \calc@Bskip
+%
% \calc@assign@generic #1#2#3#4->\let \calc@A #1\let \calc@B #2\expandafter \calc
-% @open \expandafter (#4!\global \calc@A \calc@B \endgroup #3\calc@B
-% #1<-\calc@Askip
-% #2<-\calc@Bskip
-% #3<-\linewidth
+% @open \expandafter (#4!\global \calc@A \calc@B \endgroup #3\calc@B
+% #1<-\calc@Askip
+% #2<-\calc@Bskip
+% #3<-\linewidth
% #4<-1cm
% {\let}
% {\let}
% {\expandafter}
% {\expandafter}
-%
+%
% \calc@open (->\begingroup \aftergroup \calc@initB \begingroup \aftergroup \calc
-% @initB \calc@pre@scan
+% @initB \calc@pre@scan
% {\begingroup}
% {\aftergroup}
% {\begingroup}
% {\aftergroup}
-%
+%
% \calc@pre@scan #1->\ifx (#1\expandafter \calc@open \else \ifx \widthof #1\expan
% dafter \expandafter \expandafter \calc@textsize \else \calc@numeric \fi \fi #1
% #1<-1
@@ -144,18 +143,18 @@
% {false}
% {\ifx}
% {false}
-%
-% \calc@numeric ->\afterassignment \calc@post@scan \global \calc@A
+%
+% \calc@numeric ->\afterassignment \calc@post@scan \global \calc@A
% {\afterassignment}
% {\global}
% {\fi}
% {\fi}
-%
+%
% \calc@post@scan #1->\ifx #1!\let \calc@next \endgroup \else \ifx #1+\let \calc@
-% next \calc@add \else \ifx #1-\let \calc@next \calc@subtract \else \ifx #1*\let
+% next \calc@add \else \ifx #1-\let \calc@next \calc@subtract \else \ifx #1*\let
% \calc@next \calc@multiplyx \else \ifx #1/\let \calc@next \calc@dividex \else \i
% fx #1)\let \calc@next \calc@close \else \calc@error #1\fi \fi \fi \fi \fi \fi \
-% calc@next
+% calc@next
% #1<-!
% {\ifx}
% {true}
@@ -163,14 +162,14 @@
% {\else}
% {\endgroup}
% {restoring \calc@next=undefined}
-%
-% \calc@initB ->\calc@B \calc@A
+%
+% \calc@initB ->\calc@B \calc@A
% {\skip44}
% {\global}
% {\endgroup}
% {restoring \skip44=0.0pt}
-%
-% \calc@initB ->\calc@B \calc@A
+%
+% \calc@initB ->\calc@B \calc@A
% {\skip44}
% {\dimen27}
%\end{verbatim}
@@ -185,35 +184,35 @@
% slightly, the above tracing output can be reduced to:
%
%\begin{verbatim}
-% \setlength ->\protect \setlength
+% \setlength ->\protect \setlength
% {\relax}
-%
-% \setlength ->\calc@assign@skip
-%
-% \calc@assign@skip ->\calc@assign@generic \calc@Askip \calc@Bskip
-%
+%
+% \setlength ->\calc@assign@skip
+%
+% \calc@assign@skip ->\calc@assign@generic \calc@Askip \calc@Bskip
+%
% \calc@assign@generic #1#2#3#4->\let \calc@A #1\let \calc@B #2\expandafter \calc
-% @open \expandafter (#4!\global \calc@A \calc@B \endgroup #3\calc@B
-% #1<-\calc@Askip
-% #2<-\calc@Bskip
-% #3<-\linewidth
+% @open \expandafter (#4!\global \calc@A \calc@B \endgroup #3\calc@B
+% #1<-\calc@Askip
+% #2<-\calc@Bskip
+% #3<-\linewidth
% #4<-1cm
% {\let}
% {\let}
% {\expandafter}
% {\expandafter}
-%
+%
% \calc@open (->\begingroup \conditionally@traceoff \aftergroup \calc@initB \begi
-% ngroup \aftergroup \calc@initB \calc@pre@scan
+% ngroup \aftergroup \calc@initB \calc@pre@scan
% {\begingroup}
%
% \conditionally@traceoff ->\tracingrestores \z@ \tracingcommands \z@ \tracingpag
-% es \z@ \tracingmacros \z@ \tracingparagraphs \z@
+% es \z@ \tracingmacros \z@ \tracingparagraphs \z@
% {\tracingrestores}
% {\tracingcommands}
% {restoring \tracingrestores=1}
-%
-% \calc@initB ->\calc@B \calc@A
+%
+% \calc@initB ->\calc@B \calc@A
% {\skip44}
% {\dimen27}
%\end{verbatim}
@@ -241,7 +240,7 @@
% document.
%
% \DescribeMacro\conditionally@traceon
-% \DescribeMacro\conditionally@traceoff
+% \DescribeMacro\conditionally@traceoff
% There are also two internal macros that turn tracing on and off, but
% only if the user requested tracing in the first place. These are the
% ones that are used internally within the code below.
@@ -271,14 +270,14 @@
% \documentclass{article}
% \usepackage{calc}
% %\usepackage{trace} % uncomment to see difference
-%
+%
% \begin{document}
% \ifx\traceon\undefined \tracingall \else \traceon \fi
-%
+%
% \setlength\linewidth{1cm}
-%
+%
% $foo=\bar a$
-%
+%
% \small \texttt{\$} \stop
%\end{verbatim}
%
@@ -388,15 +387,15 @@
% {\tracingparagraphs}
% {\tracingrestores}
% {\errorcontextlines}
-%
+%
% \showoutput ->\tracingoutput \@ne \showboxbreadth \maxdimen \showboxdepth \maxd
-% imen \errorstopmode \showoverfull
+% imen \errorstopmode \showoverfull
% {\tracingoutput}
% {\showboxbreadth}
% {\showboxdepth}
% {\errorstopmode}
-%
-% \showoverfull ->\tracingonline \@ne
+%
+% \showoverfull ->\tracingonline \@ne
% {\tracingonline}
%\end{verbatim}
%\endgroup
@@ -460,7 +459,7 @@
% \begin{macrocode}
\def\conditionally@traceoff{%
\tracingrestores\z@
- \tracingcommands\z@
+ \tracingcommands\z@
\tracingpages\z@
\tracingmacros\z@
\tracingparagraphs\z@
@@ -537,7 +536,7 @@
\def\conditionally@traceoff{%
\tracingassigns\z@
\tracingrestores\z@
- \tracingcommands\z@
+ \tracingcommands\z@
\tracingpages\z@
\tracingmacros\z@
\tracingoutput\z@
@@ -663,7 +662,7 @@
% with |\conditionally@traceoff| and |\conditionally@traceon|
% thereby avoiding all this uninteresting output.
% \begin{macrocode}
-\frozen@everymath =
+\frozen@everymath =
{\conditionally@traceoff \check@mathfonts \conditionally@traceon
\the\everymath}
\frozen@everydisplay =
@@ -683,16 +682,18 @@
% end. This involves looping through the |\nocorrlist| which
% outputs a lot of tracing lines we are normally not interested
% in. So we disable tracing for this part of the processing.
+% \changes{v1.1d}{2014/04/21}{Use \cs{ifmaybe@ic} not
+% \cs{if@tempswa} as the kernel does (pr/4200)}
% \begin{macrocode}
\def \maybe@ic@ {%
\ifdim \fontdimen\@ne\font>\z@
\else
\conditionally@traceoff
- \@tempswatrue
+ \maybe@ictrue
\expandafter\@tfor\expandafter\reserved@a\expandafter:\expandafter=%
\nocorrlist
\do \t@st@ic
- \if@tempswa \sw@slant \fi
+ \ifmaybe@ic \sw@slant \fi
\conditionally@traceon
\fi
}