[latex3-commits] [git/LaTeX3-latex3-latex2e] counterwithin: test before change (f6561ee8)

Frank Mittelbach frank.mittelbach at latex-project.org
Thu Jul 8 17:43:52 CEST 2021


Repository : https://github.com/latex3/latex2e
On branch  : counterwithin
Link       : https://github.com/latex3/latex2e/commit/f6561ee86511022b817fffab26724b026caeaa68

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

commit f6561ee86511022b817fffab26724b026caeaa68
Author: Frank Mittelbach <frank.mittelbach at latex-project.org>
Date:   Thu Jul 8 17:43:52 2021 +0200

    test before change


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

f6561ee86511022b817fffab26724b026caeaa68
 .../{tlb-remreset-002.lvt => tlb-remreset-004.lvt} |  38 +--
 base/testfiles/tlb-remreset-004.tlg                | 314 +++++++++++++++++++++
 2 files changed, 333 insertions(+), 19 deletions(-)

diff --git a/base/testfiles/tlb-remreset-002.lvt b/base/testfiles/tlb-remreset-004.lvt
similarity index 58%
copy from base/testfiles/tlb-remreset-002.lvt
copy to base/testfiles/tlb-remreset-004.lvt
index 2523b9d8..68797de5 100644
--- a/base/testfiles/tlb-remreset-002.lvt
+++ b/base/testfiles/tlb-remreset-004.lvt
@@ -17,19 +17,19 @@
 \show\cl at chapter
 \show\cl at section
 
-\counterwithout{foo}{baz}
+\counterwithout[\roman]{foo}{baz}
 
 \show\thefoo  % undefined
 \show\cl at foo  % undefined
 \show\cl at baz  % undefined
 
-\counterwithout{footnote}{baz}
+\counterwithout[\roman]{footnote}{baz}
 
 \show\thefootnote  % \arabic{footnote}
 \show\cl at baz       % undefined
 \show\cl at footnote  % empty
 
-\counterwithout{chapter}{section}
+\counterwithout[\roman]{chapter}{section}
 
 \show\thechapter   % undefined
 \show\cl at chapter   % undefined
@@ -40,17 +40,17 @@
 
 \show\thesection    % \arabic{section}
 
-\counterwithout{section}{subsection}
+\counterwithout[\roman]{section}{subsection}
 
 \show\thesection    % unchanged as it wasn't on before
 \show\cl at subsection % unchanged
 \show\cl at section    % unchanged
 
-\show\thesubsection % \thesubsection . \arabic{subsubsection}
+\show\thesubsection % \thesubsection . \roman{subsubsection}
 
-\counterwithout{subsection}{section}
+\counterwithout[\roman]{subsection}{section}
 
-\show\thesubsection % changed to \arabic{subsection}
+\show\thesubsection % unchanged 
 \show\cl at subsection % unchanged
 \show\cl at section    % now empty
 
@@ -59,36 +59,36 @@
 
 \counterwithin{footnote}{subsection}
 
-\show\thefootnote   % \thesubsection.\arabic{footnote} 
+\show\thefootnote   % \arabic{footnote} 
 \show\cl at subsection % footnote added
 
-\counterwithout{footnote}{subsection}
+\counterwithout[\roman]{footnote}{subsection}
 
-\show\thefootnote   % back to \arabic{footnote}
+\show\thefootnote   % \arabic{footnote} 
 \show\cl at subsection % footnote removed
 
 
-\counterwithin{footnot}{subsection}
+\counterwithin[\roman]{footnot}{subsection}
 
 \show\thefootnot    % undefined
 \show\cl at subsection % unchanged
 
-\counterwithout{footnot}{subsection}
+\counterwithout[\roman]{footnot}{subsection}
 
 \show\thefootnot    % undefined
 \show\cl at subsection % unchanged
 
 
-\counterwithin{footnote}{subsection}
-\counterwithin{footnote}{subsection}
-\counterwithin{footnote}{subsection}
+\counterwithin[\roman]{footnote}{subsection}
+\counterwithin[\arabic]{footnote}{subsection}
+\counterwithin[\Roman]{footnote}{subsection}
 
-\show\thefootnote   % \thesubsection.\arabic{footnote}
-\show\cl at subsection % 3 footnote resets?
+\show\thefootnote   % \Roman{footnote}
+\show\cl at subsection % 3 footnote?
 
-\counterwithout{footnote}{subsection}
+\counterwithout[\roman]{footnote}{subsection}
 
-\show\thefootnote   % \arabic{footnote}
+\show\thefootnote   % \roman{footnote}
 \show\cl at subsection % all footnotes removed?
 
 \END
diff --git a/base/testfiles/tlb-remreset-004.tlg b/base/testfiles/tlb-remreset-004.tlg
new file mode 100644
index 00000000..cad17b19
--- /dev/null
+++ b/base/testfiles/tlb-remreset-004.tlg
@@ -0,0 +1,314 @@
+This is a generated file for the LaTeX2e validation system.
+Don't change this file in any respect.
+> \cl at foo=undefined.
+l. ...\show\cl at foo
+> \cl at baz=undefined.
+l. ...\show\cl at baz
+> \cl at footnote=macro:
+->.
+l. ...\show\cl at footnote
+> \cl at chapter=undefined.
+l. ...\show\cl at chapter
+> \cl at section=macro:
+->\@elt {subsection}.
+l. ...\show\cl at section
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman
+                           ]{foo}{baz}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman]
+                            {foo}{baz}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thefoo=undefined.
+l. ...\show\thefoo
+                   % undefined
+> \cl at foo=undefined.
+l. ...\show\cl at foo
+                   % undefined
+> \cl at baz=undefined.
+l. ...\show\cl at baz
+                   % undefined
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman
+                           ]{footnote}{baz}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman]
+                            {footnote}{baz}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thefootnote=macro:
+->\@arabic \c at footnote .
+l. ...\show\thefootnote
+                        % \arabic{footnote}
+> \cl at baz=undefined.
+l. ...\show\cl at baz
+                        % undefined
+> \cl at footnote=macro:
+->.
+l. ...\show\cl at footnote
+                        % empty
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman
+                           ]{chapter}{section}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman]
+                            {chapter}{section}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thechapter=undefined.
+l. ...\show\thechapter
+                        % undefined
+> \cl at chapter=undefined.
+l. ...\show\cl at chapter
+                        % undefined
+> \cl at section=macro:
+->\@elt {subsection}.
+l. ...\show\cl at section
+                        % resets subsection
+> \cl at subsection=macro:
+->\@elt {subsubsection}.
+l. ...\show\cl at subsection
+                         % resets subsubsection
+> \thesection=\long macro:
+->\@arabic \c at section .
+l. ...\show\thesection
+                         % \arabic{section}
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman
+                           ]{section}{subsection}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman]
+                            {section}{subsection}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thesection=\long macro:
+->\@arabic \c at section .
+l. ...\show\thesection
+                         % unchanged as it wasn't on before
+> \cl at subsection=macro:
+->\@elt {subsubsection}.
+l. ...\show\cl at subsection
+                         % unchanged
+> \cl at section=macro:
+->\@elt {subsection}.
+l. ...\show\cl at section
+                         % unchanged
+> \thesubsection=\long macro:
+->\thesection .\@arabic \c at subsection .
+l. ...\show\thesubsection
+                         % \thesubsection . \roman{subsubsection}
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman
+                           ]{subsection}{section}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman]
+                            {subsection}{section}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thesubsection=\long macro:
+->\thesection .\@arabic \c at subsection .
+l. ...\show\thesubsection
+                         % unchanged
+> \cl at subsection=macro:
+->\@elt {subsubsection}.
+l. ...\show\cl at subsection
+                         % unchanged
+> \cl at section=macro:
+->\@elt {subsection}.
+l. ...\show\cl at section
+                         % now empty
+> \thefootnote=macro:
+->\thesubsection .\@arabic \c at footnote .
+l. ...\show\thefootnote
+                         % \arabic{footnote}
+> \cl at subsection=macro:
+->\@elt {subsubsection}\@elt {footnote}.
+l. ...\show\cl at subsection
+                         % footnote added
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman
+                           ]{footnote}{subsection}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman]
+                            {footnote}{subsection}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thefootnote=macro:
+->\thesubsection .\@arabic \c at footnote .
+l. ...\show\thefootnote
+                         % \arabic{footnote}
+> \cl at subsection=macro:
+->\@elt {subsubsection}\@elt {footnote}.
+l. ...\show\cl at subsection
+                         % footnote removed
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithin[\roman
+                          ]{footnot}{subsection}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithin[\roman]
+                           {footnot}{subsection}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thefootnot=undefined.
+l. ...\show\thefootnot
+                         % undefined
+> \cl at subsection=macro:
+->\@elt {subsubsection}\@elt {footnote}.
+l. ...\show\cl at subsection
+                         % unchanged
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman
+                           ]{footnot}{subsection}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman]
+                            {footnot}{subsection}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thefootnot=undefined.
+l. ...\show\thefootnot
+                         % undefined
+> \cl at subsection=macro:
+->\@elt {subsubsection}\@elt {footnote}.
+l. ...\show\cl at subsection
+                         % unchanged
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithin[\roman
+                          ]{footnote}{subsection}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithin[\roman]
+                           {footnote}{subsection}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithin[\arabic
+                           ]{footnote}{subsection}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithin[\Roman
+                          ]{footnote}{subsection}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+> \thefootnote=macro:
+->\thesubsection .\@arabic \c at footnote .
+l. ...\show\thefootnote
+                         % \Roman{footnote}
+> \cl at subsection=macro:
+->\@elt {subsubsection}\@elt {footnote}.
+l. ...\show\cl at subsection
+                         % 3 footnote?
+! LaTeX Error: No counter '[' defined.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman
+                           ]{footnote}{subsection}
+Your command was ignored.
+Type  I <command> <return>  to replace it with another command,
+or  <return>  to continue without it.
+! LaTeX Error: Missing \begin{document}.
+See the LaTeX manual or LaTeX Companion for explanation.
+Type  H <return>  for immediate help.
+ ...                                              
+l. ...\counterwithout[\roman]
+                            {footnote}{subsection}
+You're in trouble here.  Try typing  <return>  to proceed.
+If that doesn't work, type  X <return>  to quit.
+> \thefootnote=macro:
+->\thesubsection .\@arabic \c at footnote .
+l. ...\show\thefootnote
+                         % \roman{footnote}
+> \cl at subsection=macro:
+->\@elt {subsubsection}\@elt {footnote}.
+l. ...\show\cl at subsection
+                         % all footnotes removed?





More information about the latex3-commits mailing list.