[latex3-commits] [git/LaTeX3-latex3-latex2e] gh217: testfiles that how that included files with spaces in their names work (aa13abb9)
Johannes Braams
texniek at braams.xs4all.nl
Sat May 2 15:37:53 CEST 2020
Repository : https://github.com/latex3/latex2e
On branch : gh217
Link : https://github.com/latex3/latex2e/commit/aa13abb9388df7278955fdad51cf439b1f0f4aa9
>---------------------------------------------------------------
commit aa13abb9388df7278955fdad51cf439b1f0f4aa9
Author: Johannes Braams <texniek at braams.xs4all.nl>
Date: Sat May 2 15:37:53 2020 +0200
testfiles that how that included files with spaces in their names work
>---------------------------------------------------------------
aa13abb9388df7278955fdad51cf439b1f0f4aa9
base/testfiles/github-0217-io-base.luatex.tlg | 21 +++
base/testfiles/github-0217-io-base.lvt | 174 ++++++++++++++++++++
base/testfiles/github-0217-io-base.tlg | 20 +++
base/testfiles/github-0217-io-space.luatex.tlg | 20 +++
base/testfiles/github-0217-io-space.lvt | 182 +++++++++++++++++++++
base/testfiles/github-0217-io-space.tlg | 20 +++
...{github-0217-base.lvt => github-0217-space.lvt} | 21 ++-
base/testfiles/github-0217-space.tlg | 18 ++
8 files changed, 465 insertions(+), 11 deletions(-)
diff --git a/base/testfiles/github-0217-io-base.luatex.tlg b/base/testfiles/github-0217-io-base.luatex.tlg
new file mode 100644
index 00000000..540f6e30
--- /dev/null
+++ b/base/testfiles/github-0217-io-base.luatex.tlg
@@ -0,0 +1,21 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Johannes Braams
+Format: LaTeX2e<2020-02-02>
+Main Class: report
+(part-one.tex
+First Included file
+Chapter 1.
+) [1
+]
+(part3.tex
+Third Included file
+Chapter 2.
+) [2
+]
+(part4.tex
+Fourth Included file
+Chapter 3.
+) [3
+] (github-0217-io-base.aux (part-one.aux) (part-two.aux) (part3.aux) (.
+/part4.aux))
diff --git a/base/testfiles/github-0217-io-base.lvt b/base/testfiles/github-0217-io-base.lvt
new file mode 100644
index 00000000..dda435d0
--- /dev/null
+++ b/base/testfiles/github-0217-io-base.lvt
@@ -0,0 +1,174 @@
+% this file is to test the functioninf og \includeonly
+% when files with spaces in theire names are being used.
+% The \included files:
+\begin{filecontents}{part-one.tex}
+ \typeout{First Included file}
+ \chapter{First}
+ \section{One}\label{2-1one}
+
+ \section{Two}\label{2-1two}
+ \endinput
+\end{filecontents}
+\begin{filecontents}{part-two.tex}
+ \typeout{Second Included file}
+ \chapter{Second}
+ \section{One}\label{2-2one}
+
+ \section{Two}\label{2-2two}
+ \endinput
+\end{filecontents}
+\begin{filecontents}{part3.tex}
+ \typeout{Third Included file}
+ \chapter{Third}
+ \section{One}\label{2-3one}
+
+ \section{Two}\label{2-3two}
+ \endinput
+\end{filecontents}
+\begin{filecontents}{part4.tex}
+ \typeout{Fourth Included file}
+ \chapter{Fourth}
+ \section{One}\label{2-4one}
+
+ \section{Two}\label{2-4two}
+ \endinput
+\end{filecontents}
+\begin{filecontents}{part-one.aux}
+\relax
+\@writefile{toc}{\contentsline {chapter}{\numberline {1}First}{1}\protected at file@percent }
+\@writefile{lof}{\addvspace {10\p@ }}
+\@writefile{lot}{\addvspace {10\p@ }}
+\@writefile{toc}{\contentsline {section}{\numberline {1.1}One}{1}\protected at file@percent }
+\newlabel{2-1one}{{1.1}{1}}
+\@writefile{toc}{\contentsline {section}{\numberline {1.2}Two}{1}\protected at file@percent }
+\newlabel{2-1two}{{1.2}{1}}
+\@setckpt{part one}{
+\setcounter{page}{2}
+\setcounter{equation}{0}
+\setcounter{enumi}{0}
+\setcounter{enumii}{0}
+\setcounter{enumiii}{0}
+\setcounter{enumiv}{0}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+\setcounter{part}{0}
+\setcounter{chapter}{1}
+\setcounter{section}{2}
+\setcounter{subsection}{0}
+\setcounter{subsubsection}{0}
+\setcounter{paragraph}{0}
+\setcounter{subparagraph}{0}
+\setcounter{figure}{0}
+\setcounter{table}{0}
+}
+\end{filecontents}
+\begin{filecontents}{part-two.aux}
+\relax
+\@writefile{toc}{\contentsline {chapter}{\numberline {2}Second}{2}\protected at file@percent }
+\@writefile{lof}{\addvspace {10\p@ }}
+\@writefile{lot}{\addvspace {10\p@ }}
+\@writefile{toc}{\contentsline {section}{\numberline {2.1}One}{2}\protected at file@percent }
+\newlabel{2-2one}{{2.1}{2}}
+\@writefile{toc}{\contentsline {section}{\numberline {2.2}Two}{2}\protected at file@percent }
+\newlabel{2-2two}{{2.2}{2}}
+\@setckpt{part two}{
+\setcounter{page}{3}
+\setcounter{equation}{0}
+\setcounter{enumi}{0}
+\setcounter{enumii}{0}
+\setcounter{enumiii}{0}
+\setcounter{enumiv}{0}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+\setcounter{part}{0}
+\setcounter{chapter}{2}
+\setcounter{section}{2}
+\setcounter{subsection}{0}
+\setcounter{subsubsection}{0}
+\setcounter{paragraph}{0}
+\setcounter{subparagraph}{0}
+\setcounter{figure}{0}
+\setcounter{table}{0}
+}
+\end{filecontents}
+\begin{filecontents}{part3.aux}
+\relax
+\@writefile{toc}{\contentsline {chapter}{\numberline {3}Third}{3}\protected at file@percent }
+\@writefile{lof}{\addvspace {10\p@ }}
+\@writefile{lot}{\addvspace {10\p@ }}
+\@writefile{toc}{\contentsline {section}{\numberline {3.1}One}{3}\protected at file@percent }
+\newlabel{2-3one}{{3.1}{3}}
+\@writefile{toc}{\contentsline {section}{\numberline {3.2}Two}{3}\protected at file@percent }
+\newlabel{2-3two}{{3.2}{3}}
+\@setckpt{part3}{
+\setcounter{page}{4}
+\setcounter{equation}{0}
+\setcounter{enumi}{0}
+\setcounter{enumii}{0}
+\setcounter{enumiii}{0}
+\setcounter{enumiv}{0}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+\setcounter{part}{0}
+\setcounter{chapter}{3}
+\setcounter{section}{2}
+\setcounter{subsection}{0}
+\setcounter{subsubsection}{0}
+\setcounter{paragraph}{0}
+\setcounter{subparagraph}{0}
+\setcounter{figure}{0}
+\setcounter{table}{0}
+}
+\end{filecontents}
+\begin{filecontents}{part4.aux}
+\relax
+\@writefile{toc}{\contentsline {chapter}{\numberline {4}Fourth}{4}\protected at file@percent }
+\@writefile{lof}{\addvspace {10\p@ }}
+\@writefile{lot}{\addvspace {10\p@ }}
+\@writefile{toc}{\contentsline {section}{\numberline {4.1}One}{4}\protected at file@percent }
+\newlabel{2-4one}{{4.1}{4}}
+\@writefile{toc}{\contentsline {section}{\numberline {4.2}Two}{4}\protected at file@percent }
+\newlabel{2-4two}{{4.2}{4}}
+\@setckpt{part4}{
+\setcounter{page}{5}
+\setcounter{equation}{0}
+\setcounter{enumi}{0}
+\setcounter{enumii}{0}
+\setcounter{enumiii}{0}
+\setcounter{enumiv}{0}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+\setcounter{part}{0}
+\setcounter{chapter}{4}
+\setcounter{section}{2}
+\setcounter{subsection}{0}
+\setcounter{subsubsection}{0}
+\setcounter{paragraph}{0}
+\setcounter{subparagraph}{0}
+\setcounter{figure}{0}
+\setcounter{table}{0}
+}
+\end{filecontents}
+
+%
+% The actual test-file to show the \includeonly-syntax that should
+% supported when files with spaces in their names are used
+%
+
+\documentclass{report}
+\input{test2e}
+\START
+\AUTHOR{Johannes Braams}
+\FORMAT{LaTeX2e<2020-02-02>}
+\CLASS{report}
+\OMIT
+\includeonly{part-one, part3 , part4 }
+\begin{document}
+\TIMO
+
+\include{part-one}
+\include{part-two}
+\include{part3}
+\include{part4}
+
+\end{document}
diff --git a/base/testfiles/github-0217-io-base.tlg b/base/testfiles/github-0217-io-base.tlg
new file mode 100644
index 00000000..0b033804
--- /dev/null
+++ b/base/testfiles/github-0217-io-base.tlg
@@ -0,0 +1,20 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Johannes Braams
+Format: LaTeX2e<2020-02-02>
+Main Class: report
+(part-one.tex
+First Included file
+Chapter 1.
+) [1
+]
+(part3.tex
+Third Included file
+Chapter 2.
+) [2
+]
+(part4.tex
+Fourth Included file
+Chapter 3.
+) [3
+] (github-0217-io-base.aux (part-one.aux) (part-two.aux) (part3.aux) (part4.aux))
diff --git a/base/testfiles/github-0217-io-space.luatex.tlg b/base/testfiles/github-0217-io-space.luatex.tlg
new file mode 100644
index 00000000..4ace28b0
--- /dev/null
+++ b/base/testfiles/github-0217-io-space.luatex.tlg
@@ -0,0 +1,20 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Johannes Braams
+Format: LaTeX2e<2020-02-02>
+Main Class: report
+("./part one.tex"
+First Included file
+Chapter 1.
+) [1
+]
+(part3.tex
+Third Included file
+Chapter 3.
+) [3
+]
+(part4.tex
+Fourth Included file
+Chapter 4.
+) [4
+]
diff --git a/base/testfiles/github-0217-io-space.lvt b/base/testfiles/github-0217-io-space.lvt
new file mode 100644
index 00000000..81f06188
--- /dev/null
+++ b/base/testfiles/github-0217-io-space.lvt
@@ -0,0 +1,182 @@
+% this file is to test the functioninf og \includeonly
+% when files with spaces in theire names are being used.
+% The \included files:
+\begin{filecontents}{part one.tex}
+ \typeout{First Included file}
+ \chapter{First}
+ \section{One}\label{2-1one}
+
+ \section{Two}\label{2-1two}
+ \endinput
+\end{filecontents}
+\begin{filecontents}{part two.tex}
+ \typeout{Second Included file}
+ \chapter{Second}
+ \section{One}\label{2-2one}
+
+ \section{Two}\label{2-2two}
+ \endinput
+\end{filecontents}
+\begin{filecontents}{part3.tex}
+ \typeout{Third Included file}
+ \chapter{Third}
+ \section{One}\label{2-3one}
+
+ \section{Two}\label{2-3two}
+ \endinput
+\end{filecontents}
+\begin{filecontents}{part4.tex}
+ \typeout{Fourth Included file}
+ \chapter{Fourth}
+ \section{One}\label{2-4one}
+
+ \section{Two}\label{2-4two}
+ \endinput
+\end{filecontents}
+\begin{filecontents}{github-io-0217-io-sapce.aux}
+\relax
+\@input{"part one.aux"}
+\@input{"part two.aux"}
+\@input{"part3.aux"}
+\@input{"part4.aux"}
+\end{filecontents}
+\begin{filecontents}{part one.aux}
+\relax
+\@writefile{toc}{\contentsline {chapter}{\numberline {1}First}{1}\protected at file@percent }
+\@writefile{lof}{\addvspace {10\p@ }}
+\@writefile{lot}{\addvspace {10\p@ }}
+\@writefile{toc}{\contentsline {section}{\numberline {1.1}One}{1}\protected at file@percent }
+\newlabel{2-1one}{{1.1}{1}}
+\@writefile{toc}{\contentsline {section}{\numberline {1.2}Two}{1}\protected at file@percent }
+\newlabel{2-1two}{{1.2}{1}}
+\@setckpt{part one}{
+\setcounter{page}{2}
+\setcounter{equation}{0}
+\setcounter{enumi}{0}
+\setcounter{enumii}{0}
+\setcounter{enumiii}{0}
+\setcounter{enumiv}{0}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+\setcounter{part}{0}
+\setcounter{chapter}{1}
+\setcounter{section}{2}
+\setcounter{subsection}{0}
+\setcounter{subsubsection}{0}
+\setcounter{paragraph}{0}
+\setcounter{subparagraph}{0}
+\setcounter{figure}{0}
+\setcounter{table}{0}
+}
+\end{filecontents}
+\begin{filecontents}{part two.aux}
+\relax
+\@writefile{toc}{\contentsline {chapter}{\numberline {2}Second}{2}\protected at file@percent }
+\@writefile{lof}{\addvspace {10\p@ }}
+\@writefile{lot}{\addvspace {10\p@ }}
+\@writefile{toc}{\contentsline {section}{\numberline {2.1}One}{2}\protected at file@percent }
+\newlabel{2-2one}{{2.1}{2}}
+\@writefile{toc}{\contentsline {section}{\numberline {2.2}Two}{2}\protected at file@percent }
+\newlabel{2-2two}{{2.2}{2}}
+\@setckpt{part two}{
+\setcounter{page}{3}
+\setcounter{equation}{0}
+\setcounter{enumi}{0}
+\setcounter{enumii}{0}
+\setcounter{enumiii}{0}
+\setcounter{enumiv}{0}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+\setcounter{part}{0}
+\setcounter{chapter}{2}
+\setcounter{section}{2}
+\setcounter{subsection}{0}
+\setcounter{subsubsection}{0}
+\setcounter{paragraph}{0}
+\setcounter{subparagraph}{0}
+\setcounter{figure}{0}
+\setcounter{table}{0}
+}
+\end{filecontents}
+\begin{filecontents}{part3.aux}
+\relax
+\@writefile{toc}{\contentsline {chapter}{\numberline {3}Third}{3}\protected at file@percent }
+\@writefile{lof}{\addvspace {10\p@ }}
+\@writefile{lot}{\addvspace {10\p@ }}
+\@writefile{toc}{\contentsline {section}{\numberline {3.1}One}{3}\protected at file@percent }
+\newlabel{2-3one}{{3.1}{3}}
+\@writefile{toc}{\contentsline {section}{\numberline {3.2}Two}{3}\protected at file@percent }
+\newlabel{2-3two}{{3.2}{3}}
+\@setckpt{part3}{
+\setcounter{page}{4}
+\setcounter{equation}{0}
+\setcounter{enumi}{0}
+\setcounter{enumii}{0}
+\setcounter{enumiii}{0}
+\setcounter{enumiv}{0}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+\setcounter{part}{0}
+\setcounter{chapter}{3}
+\setcounter{section}{2}
+\setcounter{subsection}{0}
+\setcounter{subsubsection}{0}
+\setcounter{paragraph}{0}
+\setcounter{subparagraph}{0}
+\setcounter{figure}{0}
+\setcounter{table}{0}
+}
+\end{filecontents}
+\begin{filecontents}{part4.aux}
+\relax
+\@writefile{toc}{\contentsline {chapter}{\numberline {4}Fourth}{4}\protected at file@percent }
+\@writefile{lof}{\addvspace {10\p@ }}
+\@writefile{lot}{\addvspace {10\p@ }}
+\@writefile{toc}{\contentsline {section}{\numberline {4.1}One}{4}\protected at file@percent }
+\newlabel{2-4one}{{4.1}{4}}
+\@writefile{toc}{\contentsline {section}{\numberline {4.2}Two}{4}\protected at file@percent }
+\newlabel{2-4two}{{4.2}{4}}
+\@setckpt{part4}{
+\setcounter{page}{5}
+\setcounter{equation}{0}
+\setcounter{enumi}{0}
+\setcounter{enumii}{0}
+\setcounter{enumiii}{0}
+\setcounter{enumiv}{0}
+\setcounter{footnote}{0}
+\setcounter{mpfootnote}{0}
+\setcounter{part}{0}
+\setcounter{chapter}{4}
+\setcounter{section}{2}
+\setcounter{subsection}{0}
+\setcounter{subsubsection}{0}
+\setcounter{paragraph}{0}
+\setcounter{subparagraph}{0}
+\setcounter{figure}{0}
+\setcounter{table}{0}
+}
+\end{filecontents}
+
+%
+% The actual test-file to show the \include-syntax that should
+% supported when files with spaces in their names are used
+%
+
+\documentclass{report}
+\input{test2e}
+\START
+\AUTHOR{Johannes Braams}
+\FORMAT{LaTeX2e<2020-02-02>}
+\CLASS{report}
+\OMIT
+\includeonly{part one, part3 , part4 }
+\begin{document}
+\TIMO
+
+\include{part one}
+\include{part two}
+\include{part3}
+\include{part4}
+
+\OMIT
+\end{document}
diff --git a/base/testfiles/github-0217-io-space.tlg b/base/testfiles/github-0217-io-space.tlg
new file mode 100644
index 00000000..648e2411
--- /dev/null
+++ b/base/testfiles/github-0217-io-space.tlg
@@ -0,0 +1,20 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Johannes Braams
+Format: LaTeX2e<2020-02-02>
+Main Class: report
+(part one.tex
+First Included file
+Chapter 1.
+) [1
+]
+(part3.tex
+Third Included file
+Chapter 3.
+) [3
+]
+(part4.tex
+Fourth Included file
+Chapter 4.
+) [4
+]
diff --git a/base/testfiles/github-0217-base.lvt b/base/testfiles/github-0217-space.lvt
similarity index 61%
copy from base/testfiles/github-0217-base.lvt
copy to base/testfiles/github-0217-space.lvt
index 3ba7076d..e5124d2e 100644
--- a/base/testfiles/github-0217-base.lvt
+++ b/base/testfiles/github-0217-space.lvt
@@ -1,12 +1,12 @@
% The \included file:
-\begin{filecontents}{gh217-include.tex}
+\begin{filecontents}{gh217 include.tex}
\typeout{Included file}
\endinput
\end{filecontents}
% the .aux-file to be read
-\begin{filecontents}{gh217-include.aux}
+\begin{filecontents}{gh217 include.aux}
\relax
-\@setckpt{gh217-include}{
+\@setckpt{gh217 include}{
\setcounter{page}{1}
\setcounter{equation}{0}
\setcounter{enumi}{0}
@@ -26,21 +26,20 @@
}
\end{filecontents}
%
-% The actual test-file to show the \include-syntax that is supported
-% and should remain supported when files with spaces in their names
-% will also be supported
+% The actual test-file to show the \include-syntax that should
+% be supported when files with spaces in their names are used.
%
\documentclass{article}
\input{test2e}
\START
\AUTHOR{Johannes Braams}
-\FORMAT{LaTeX2e<2020-02-02> patch level 5}
+\FORMAT{LaTeX2e<2020-02-02>}
\CLASS{article}
\OMIT
\begin{document}
\TIMO
-\include{gh217-include}
-\include{ gh217-include}
-\include{ gh217-include }
-\include{"gh217-include"}
+\include{gh217 include}
+\include{ gh217 include}
+\include{ gh217 include }
+\include{"gh217 include"}
\end{document}
diff --git a/base/testfiles/github-0217-space.tlg b/base/testfiles/github-0217-space.tlg
new file mode 100644
index 00000000..5748cc5a
--- /dev/null
+++ b/base/testfiles/github-0217-space.tlg
@@ -0,0 +1,18 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+Author: Johannes Braams
+Format: LaTeX2e<2020-02-02>
+Main Class: article
+(gh217 include.tex
+Included file
+)
+(gh217 include.tex
+Included file
+)
+(gh217 include.tex
+Included file
+)
+(gh217 include.tex
+Included file
+) (github-0217-space.aux (gh217 include.aux) (gh217 include.aux)
+(gh217 include.aux) (gh217 include.aux))
More information about the latex3-commits
mailing list.