-
-
Notifications
You must be signed in to change notification settings - Fork 275
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* code for #1632 * verb * Update base/ltcounts.dtx Co-authored-by: Yukai Chou <[email protected]> * Update base/ltcounts.dtx Co-authored-by: Yukai Chou <[email protected]> * commas and brackets * the * updates from review * safer test for argument * extra macro env * commit test file for #1632 * guard star in counterwithin/out, from review #1632 * more words for ltnews #1632 --------- Co-authored-by: Yukai Chou <[email protected]>
- Loading branch information
1 parent
5d3a5d4
commit 8712c3a
Showing
6 changed files
with
131 additions
and
15 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 |
---|---|---|
|
@@ -17,6 +17,12 @@ not part of the distribution. | |
* ltcmd.dtx, usrguide.tex | ||
New "c"-type argument | ||
|
||
2025-01-22 David Carlisle <[email protected]> | ||
|
||
* ltcounts.dtx, ltxref.dtx: | ||
Allow * to denote the current counter (as used by \label) in counter | ||
related commands, \alph*, \stepcounter*, etc. (gh/1632) | ||
|
||
2025-01-21 Frank Mittelbach <[email protected]> | ||
|
||
* ltoutput.dtx (subsection{Floats}): | ||
|
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
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
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
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) |