diff options
Diffstat (limited to 'Master/texmf-dist/tex/generic')
-rw-r--r-- | Master/texmf-dist/tex/generic/crossrefenum/crossrefenum.tex | 15 | ||||
-rw-r--r-- | Master/texmf-dist/tex/generic/crossrefenum/t-crossrefenum.tex | 2 |
2 files changed, 11 insertions, 6 deletions
diff --git a/Master/texmf-dist/tex/generic/crossrefenum/crossrefenum.tex b/Master/texmf-dist/tex/generic/crossrefenum/crossrefenum.tex index 46196edece3..81d991200ad 100644 --- a/Master/texmf-dist/tex/generic/crossrefenum/crossrefenum.tex +++ b/Master/texmf-dist/tex/generic/crossrefenum/crossrefenum.tex @@ -2,10 +2,10 @@ \def\crfnmName{crossrefenum} \def\crfnmShortDesc{Smart typesetting of enumerated cross-references for various TeX formats} \def\crfnmAuthor{Bastien Dumont} -\def\crfnmDate{2023/02/20} -\def\crfnmVersion{1.0.2} +\def\crfnmDate{2024/04/13} +\def\crfnmVersion{1.1} % -% Copyright 2022-2023 by Bastien Dumont (bastien.dumont@posteo.net) +% Copyright 2022-2024 by Bastien Dumont (bastien.dumont@posteo.net) % % crossrefenum.tex is free software: you can redistribute it and/or modify % it under the terms of the GNU General Public License as published by @@ -472,8 +472,7 @@ \def\crfnm@newListFrom[#1][#2] -> #3{% % #1 is either a list or a reference. - % #2 is a reference. - % #2 is appended to #1. + % #2 is the reference appended to #1. % #3 is the control sequence which the resulting list will be bound to. \crfnm@ifIsList[#1]{% \edef#3{#1{#2}}% @@ -481,6 +480,12 @@ \edef#3{{#1}{#2}}% }% } +\def\crfnm@addToList[#1][#2]{\crfnm@newListFrom[#1][#2] -> #1} +\def\crfnm@declareType[#1][#2]{% + % #1 is "simple" or "double", #2 is the type + \expandafter\crfnm@addToList\expandafter[\csname crfnm@#1RefTypes\endcsname][#2]% + \crfnm@addToList[\crfnm@supportedTypes][#2]% +} \def\crfnm@replaceFirstInList[#1]#2{% % #1 is a token, #2 is a list of tokens diff --git a/Master/texmf-dist/tex/generic/crossrefenum/t-crossrefenum.tex b/Master/texmf-dist/tex/generic/crossrefenum/t-crossrefenum.tex index 9629faf04cd..eec8042320a 100644 --- a/Master/texmf-dist/tex/generic/crossrefenum/t-crossrefenum.tex +++ b/Master/texmf-dist/tex/generic/crossrefenum/t-crossrefenum.tex @@ -5,7 +5,7 @@ %D subtitle=Smart typesetting of enumerated cross-references for various TeX formats, %D author=Bastien Dumont, %D date=2022/11/11, -%D url=%TODO, +%D url=https://ctan.org/tex-archive/macros/generic/crossrefenum/tex/t-crossrefenum.tex, %D copyright=Bastien Dumont, %D license=GNU Public License v. 3.0 or higher] |