Compare commits

..

No commits in common. "7f39828d3f6bad6ee9974b865451d2173b97e653" and "4171ccd1144ca8389038a8f079adca3bedac8e2e" have entirely different histories.

5 changed files with 5 additions and 25 deletions

View File

@ -1,7 +1,3 @@
## Changes ## Changes
### 2022/11/11: Version 1.0 ### 2022/11/11: Version 1.0
### 2023/02/20: Version 1.0.1
`\crossrefenum` is now protected against early expansion.

View File

@ -1,4 +1,4 @@
# crossrefenum 2023/02/20 v1.0.1 # crossrefenum 2022/11/11 v1.0
Smart typesetting of enumerated cross-references for various TeX formats. Smart typesetting of enumerated cross-references for various TeX formats.

View File

@ -1,6 +1,3 @@
% This file cannot be loaded in main-test.tex for it would load the version of crossrefenum.tex
% installed in the texmf tree.
% As a consequence, it should not be changed to correct bugs or implement new features.
\input crossrefenum.tex \input crossrefenum.tex
\ProvidesPackage{crossrefenum}[\crfnmDate{} v\crfnmVersion{} Enumeration of cross-references] \ProvidesPackage{crossrefenum}[\crfnmDate{} v\crfnmVersion{} Enumeration of cross-references]
\endinput \endinput

View File

@ -2,8 +2,8 @@
\def\crfnmName{crossrefenum} \def\crfnmName{crossrefenum}
\def\crfnmShortDesc{Smart typesetting of enumerated cross-references for various TeX formats} \def\crfnmShortDesc{Smart typesetting of enumerated cross-references for various TeX formats}
\def\crfnmAuthor{Bastien Dumont} \def\crfnmAuthor{Bastien Dumont}
\def\crfnmDate{2023/02/20} \def\crfnmDate{2022/11/11}
\def\crfnmVersion{1.0.1} \def\crfnmVersion{0.1}
% %
% Copyright 2022 by Bastien Dumont (bastien.dumont@posteo.net) % Copyright 2022 by Bastien Dumont (bastien.dumont@posteo.net)
% %
@ -524,22 +524,13 @@
%%% \crossrefenum: Public macro with optional arguments %%% %%% \crossrefenum: Public macro with optional arguments %%%
\crfnm@case[\fmtname]
\crfnm@context: {
\unexpanded\def\crossrefenum{\crfnm@crossrefenum}
}
\crfnm@latex: {
\protected\def\crossrefenum{\crfnm@crossrefenum}
}
\crfnm@endCases
% \crossrefenum has two optional arguments. % \crossrefenum has two optional arguments.
% See the definition of \crfnm@enum below for the recognized values. % See the definition of \crfnm@enum below for the recognized values.
\def\crfnm@firstArg@default{page} \def\crfnm@firstArg@default{page}
\def\crfnm@secondArg@default{withprefix} \def\crfnm@secondArg@default{withprefix}
\def\crfnm@crossrefenum{% \def\crossrefenum{%
\futurelet\crfnm@nextToken\crfnm@setEnumMacro \futurelet\crfnm@nextToken\crfnm@setEnumMacro
} }

View File

@ -9,14 +9,10 @@
%D copyright=Bastien Dumont, %D copyright=Bastien Dumont,
%D license=GNU Public License v. 3.0 or higher] %D license=GNU Public License v. 3.0 or higher]
% This file cannot be loaded in main-test.tex for it would load the version of crossrefenum.tex
% installed in the texmf tree.
% As a consequence, it should not be changed to correct bugs or implement new features.
\startmodule[crossrefenum] \startmodule[crossrefenum]
\unprotect \unprotect
\input crossrefenum.tex \input ../crossrefenum.tex
\protect \protect
\stopmodule \stopmodule