From e8dde3fdf371b3f9c7443830b0613ad123cc735b Mon Sep 17 00:00:00 2001 From: Karl Berry Date: Mon, 11 Oct 2010 00:05:18 +0000 Subject: inputtrc update (10oct10) git-svn-id: svn://tug.org/texlive/trunk@20045 c570f23f-e606-0410-a88d-b1316a301751 --- Master/texmf-dist/tex/latex/inputtrc/inputtrc.sty | 27 ++++++++++++++++++----- 1 file changed, 22 insertions(+), 5 deletions(-) (limited to 'Master/texmf-dist/tex/latex/inputtrc') diff --git a/Master/texmf-dist/tex/latex/inputtrc/inputtrc.sty b/Master/texmf-dist/tex/latex/inputtrc/inputtrc.sty index e75c6fe4724..477b32e2ec6 100644 --- a/Master/texmf-dist/tex/latex/inputtrc/inputtrc.sty +++ b/Master/texmf-dist/tex/latex/inputtrc/inputtrc.sty @@ -1,5 +1,5 @@ \NeedsTeXFormat{LaTeX2e}[1994/12/01] -\ProvidesPackage{inputtrc}[2010/10/08 v0.1a input tracing (UL)] +\ProvidesPackage{inputtrc}[2010/10/09 v0.2 input tracing (UL)] %% Copyright (C) 2010 Uwe Lueck, %% http://www.contact-ednotes.sty.de.vu @@ -37,11 +37,16 @@ \@@input#1 \expandafter\IT@pop@indent\IT@indent \@nil \expandafter\IT@pop@file \IT@filestack\@nil + \IT@maybe@returnmessage %% v0.2 } \def\IT@pop@indent#1#2\@nil{\gdef\IT@indent{#2}} \def\IT@pop@file #1#2\@nil{% \gdef\IT@currfile{#1}\gdef\IT@filestack{#2}} %% ... cf. LaTeX's `\@pushfilename'/`\@popfilename'. +\newcommand*{\IT@the@returnmessage}{% %% v0.2 + \typeout{\IT@indent RETURNING TO \IT@currfile}} +%% ... the ``active" version of `\IT@maybe@returnmessage', +%% see below ... %% %% === Changing \LaTeX\ (Preparations) === %% @@ -78,10 +83,21 @@ \global \let \InputIfFileExists \IT@ltx@InputIfFileExists \global \let \@input \IT@ltx@input} %% |\setinputindentunit{}| globally sets the ``indent unit"---the -%% default setting is ~= `\space\space'. +%% default setting is ~= `\space\space': \newcommand*{\setinputindentunit}{\gdef\IT@indent@unit} -%% \setinputindentunit{\space\space} +%% |\dotracingreturns| activates the \texttt{RETURNING~TO} message--- +\newcommand*{\dotracingreturns}{% + \global \let \IT@maybe@returnmessage \IT@the@returnmessage} +%% ---|\notracingreturns| turns it off--- +\newcommand*{\notracingreturns}{% + \global \let \IT@maybe@returnmessage \IT@the@returnmessage} +%% ---\emph{not} activated is the default: +\notracingreturns +%% |\dotracinginputsreturns| activates \emph{both} `INPUTTING' and +%% `RETURNING' messages: +\newcommand*{\dotracinginputsreturns}{% + \dotracinginputs \dotracingreturns} %% \endinput %% @@ -100,6 +116,7 @@ HISTORY -v0.1 2010/10/08 very first, sent to CTAN same day +v0.1 2010/10/08 very first, installed on CTAN same day v0.1a 2010/10/08 doc corrected: LaTeX commands using \@@input; - manual page breaks + manual page breaks -- installed on CTAN 2010/10/09 +v0.2 2010/10/09 \IT@maybe@returnmessage etc. -- cgit v1.2.3