[latex3-commits] [git/LaTeX3-latex3-latex2e] gh222: Add github-0222-input.lvt and github-0222-input.tlg, documenting the current behaviour of verbatim.sty [ci skip] (47b317ac)

Johannes Braams texniek at braams.xs4all.nl
Fri Jun 5 21:01:29 CEST 2020


Repository : https://github.com/latex3/latex2e
On branch  : gh222
Link       : https://github.com/latex3/latex2e/commit/47b317ac1b272339f64794357136e62f79edc48a

>---------------------------------------------------------------

commit 47b317ac1b272339f64794357136e62f79edc48a
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date:   Fri Jun 5 21:01:29 2020 +0200

    Add github-0222-input.lvt and github-0222-input.tlg, documenting the current behaviour of verbatim.sty
    [ci skip]


>---------------------------------------------------------------

47b317ac1b272339f64794357136e62f79edc48a
 required/tools/testfiles/github-0222-input.lvt | 38 ++++++++++++++++++++++++++
 required/tools/testfiles/github-0222-input.tlg | 10 +++++++
 2 files changed, 48 insertions(+)

diff --git a/required/tools/testfiles/github-0222-input.lvt b/required/tools/testfiles/github-0222-input.lvt
new file mode 100644
index 00000000..4c07e5f2
--- /dev/null
+++ b/required/tools/testfiles/github-0222-input.lvt
@@ -0,0 +1,38 @@
+%
+% This file In \verbatim at input it's a bit unsafe to run \@verbatim
+% (which includes a hook \every at verbatim) before relying on the value of
+% \@filef at und. Same issue (and same fix) as we had for
+% \InputIfFileExists.
+%
+% Given that the file "verb-test.tex" exists this tesfile tyepsets
+% the contents of the file ".tex" in LaTeX release <2020/02/02>
+% This happens because the call to \input in the \every at verbatim
+% hook overwrites the \@filef at und that was test.tex.
+%
+% So we have to make sure the necessay file is found. If it is not, an
+% errior message will be issues and the processing of |\verbatiminput|
+% ends as expected, without typesetting anything.
+
+\begin{filecontents}{verb-test.tex}
+\typeout{verbatim test}
+\end{filecontents}
+%
+\documentclass{article}
+\usepackage{verbatim}
+
+\input{test2e}
+\START
+\AUTHOR{Bruno LeFloch}
+\FORMAT{LaTeX2e<2020-10-01>}
+\CLASS{article}
+\PACKAGE{verbatim}
+
+\OMIT
+\begin{document}
+\TIMO
+\makeatletter
+\addto at hook\every at verbatim{\input{.tex}} % dummy file for the mwe
+\makeatother
+\footnotesize
+\verbatiminput{verb-test.tex}
+\end{document}
diff --git a/required/tools/testfiles/github-0222-input.tlg b/required/tools/testfiles/github-0222-input.tlg
new file mode 100644
index 00000000..9a0ebf74
--- /dev/null
+++ b/required/tools/testfiles/github-0222-input.tlg
@@ -0,0 +1,10 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Bruno LeFloch
+Format: LaTeX2e<2020-10-01>
+Main Class: article
+Package: verbatim
+(.tex File ignored)
+File: ".tex"  (verbatim)
+[1
+] (github-0222-input.aux)





More information about the latex3-commits mailing list.