summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-filename.html
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-filename.html')
-rw-r--r--Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-filename.html3
1 files changed, 3 insertions, 0 deletions
diff --git a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-filename.html b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-filename.html
index 74dbc3cf38a..447d2c60315 100644
--- a/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-filename.html
+++ b/Master/texmf-dist/doc/generic/FAQ-en/html/FAQ-filename.html
@@ -25,6 +25,7 @@ the job is almost trivial:
<blockquote>
<pre>
\def\ThisFile{\jobname}
+\let\OldInput\input
\renewcommand{\input}[1]{%
\renewcommand{\ThisFile}{#1}%
\OldInput{#1}%
@@ -44,6 +45,7 @@ previous file was before returning.
<pre>
\def\ThisFile{\jobname}
\newcounter{FileStack}
+\let\OrigInput\input
\renewcommand{\input}[1]{%
\stackinput{#1}{\OrigInput}%
}
@@ -64,6 +66,7 @@ previous file was before returning.
To do the same for <code>\</code><code>include</code>, we need the simple addition:
<blockquote>
<pre>
+\let\OrigInclude\include
\renewcommand{\include}[1]{%
\stackinput{#1}{\OrigInclude}%
}