I have a master document, and use many input{...} commands to compile the total document from many parts.
I would like to mark on the working document, the start of each new input, and, what the filename was at that point.
I could renew the \input{..} command, but I do not want the mark to disrupt what would otherwise be the standard ouput, ie, the mark should be an underlay / watermark.
Is there a package that does this, I am thinking something similar to what the showkeys package does.
I had the following in mind, to create a label whenever input is used, relying on showkeys do do the underlying marking on the document, but it isn't working:
\let\oldinput\input
\newcounter{inputcounter}\setcounter{inputcounter}{0}
\renewcommand{\input}[1]{%
\stepcounter{inputcounter}%
\label{inp:\theinputcounter:#1}%
\oldinput{#1}%
}
\inputinside floats as well? – Werner May 22 '13 at 04:53\inputed files contain verbatim content? – Werner May 22 '13 at 04:59\input. What do you mean by "it isn't working"? – Werner May 22 '13 at 05:16pgfrcs.sty, file 'p.tex' not found, looking at pgfrcs.sty, it has:\input pgfutil-common.texand\input pgfutil-latex.defso I dont know what is going on. – Nicholas Hamilton May 22 '13 at 05:18\inputis set up to allow both plain TeX and LaTeX-like syntaxes. You probably want to redefine\@iinput, which is used internally with the LaTeX-like version. – Joseph Wright May 22 '13 at 06:01