| 1 |
% $Id: tracingstacklevels.tex 57724 2021-02-13 02:14:44Z karl $ |
| 2 |
% Public domain. Originally written by Karl Berry, 2021. |
| 3 |
% Trivially test \tracingstacklevels (works with initex). |
| 4 |
% (Run by hand; not included in the make check tests.) |
| 5 |
% See tracingstacklevels.ch and the pdftex manual for more info. |
| 6 |
|
| 7 |
\catcode`\{=1 \catcode`\}=2 \catcode`\#=6 |
| 8 |
|
| 9 |
%\tracingcommands=3 % more output if you want to see |
| 10 |
|
| 11 |
\tracingmacros=2 % so macro expansion is logged at all |
| 12 |
\tracingstacklevels=2 % cut off at level 2 |
| 13 |
|
| 14 |
\def\a#1{\relax} % arguments since parameter logging is affected too |
| 15 |
\def\b#1{\a{#1}} |
| 16 |
\b1 |
| 17 |
|
| 18 |
% try \input, which counts as another level for this. |
| 19 |
% The file expands \b again. |
| 20 |
\input tracingstacklevel2 |
| 21 |
|
| 22 |
\end |