-
-
Notifications
You must be signed in to change notification settings - Fork 276
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
efa94d2
commit c6902bc
Showing
2 changed files
with
58 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
\documentclass{article} | ||
\input{test2e} | ||
|
||
\begin{document} | ||
|
||
\START | ||
\section{aaa} | ||
% this should not error | ||
\arabic* | ||
|
||
\refstepcounter{*} | ||
|
||
\typeout{section counter: 2=\arabic*} | ||
|
||
\alph* | ||
|
||
\section{aaa} | ||
|
||
\subsection{bb} | ||
\subsection{bbb} | ||
|
||
\addtocounter{*}{5} | ||
|
||
\typeout{subsection counter: roman 7 = \roman*} | ||
|
||
% this should not error | ||
\begin{enumerate} | ||
\item \Roman* | ||
\end{enumerate} | ||
|
||
% these should both error | ||
\counterwithin{equation}{*} | ||
|
||
\counterwithout{*}{equation} | ||
|
||
\end{document} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
This is a generated file for the LaTeX2e validation system. | ||
Don't change this file in any respect. | ||
section counter: 2=2 | ||
subsection counter: roman 7 = vii | ||
! LaTeX Error: No counter '*' defined. | ||
See the LaTeX manual or LaTeX Companion for explanation. | ||
Type H <return> for immediate help. | ||
... | ||
l. ...\counterwithin{equation}{*} | ||
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. ...\counterwithout{*}{equation} | ||
Your command was ignored. | ||
Type I <command> <return> to replace it with another command, | ||
or <return> to continue without it. | ||
[1 | ||
] (github-1632.aux) |