Skip to content

Commit 7bdd5c1

Browse files
committed
Fixed bad interaction between \setenumext and the ref key.
1 parent 27fbd01 commit 7bdd5c1

8 files changed

Lines changed: 26 additions & 26 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,4 +96,4 @@ conditions of the [LaTeX Project Public License](https://www.latex-project.org/l
9696

9797
## Copyright
9898

99-
Copyright &#169; 2024-2025 by Pablo González L <pablgonz@educarchile.cl>
99+
Copyright &#169; 2024-2026 by Pablo González L <pablgonz@educarchile.cl>

build.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@
2121

2222
-- General package identification
2323
module = "enumext"
24-
pkgversion = "2.0"
25-
pkgdate = "2025-12-02"
24+
pkgversion = "2.1"
25+
pkgdate = "2026-01-15"
2626
ltxrelease = "2025-11-01"
2727

2828
-- Configuration of files for build and installation

ctan.ann

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
Release v2.0:
2-
- Update requirement to `multicol` release 2025-10-21.
3-
– Adjustments in the documentation.
1+
Release v2.1:
2+
- Fixed bad interaction between `\setenumext` and the `ref` key.

enumext.pdf

296 Bytes
Binary file not shown.

sources/CTANREADME.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
## enumext — Enumerate exercise sheets
22

3-
Release v2.0 \[2025-12-02\]
3+
Release v2.1 \[2026-01-15\]
44

55
## Description
66

@@ -63,4 +63,4 @@ conditions of the [LaTeX Project Public License](https://www.latex-project.org/l
6363

6464
## Author and copyright
6565

66-
Copyright &#169; 2024 — 2025 by Pablo González L <pablgonz@educarchile.cl>
66+
Copyright &#169; 2024 — 2026 by Pablo González L <pablgonz@educarchile.cl>

sources/enumext.dtx

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
%
99
% File: enumext.dtx
1010
%
11-
% Copyright (C) 2024-2025 by Pablo González L <pablgonz@educarchile.cl>
11+
% Copyright (C) 2024-2026 by Pablo González L <pablgonz@educarchile.cl>
1212
%
1313
% This work may be distributed and/or modified under the conditions of the
1414
% LaTeX Project Public License, either version 1.3c of this license or (at
@@ -752,7 +752,7 @@
752752
}
753753
\setfoot{\rlap{\hskip\dimexpr-\oddsidemargin-1in\relax%
754754
\parbox{1.93\paperwidth}{\hfil\thepage\,/\,\pageref{LastPage}}}}%
755-
{\parbox{\textwidth}{\raggedright \textcolor{gray}{\raisebox{-1pt}{\textcopyright}{}2024--2025 by Pablo González L}}}%
755+
{\parbox{\textwidth}{\raggedright \textcolor{gray}{\raisebox{-1pt}{\textcopyright}{}2024--2026 by Pablo González L}}}%
756756
{}%
757757
\sethead{\llap{\raisebox{0.55cm}{\parbox{\dimexpr\oddsidemargin+1in\relax}{\makebox[0pt][l]{\hspace{15pt}\pkglogo\space\fileversion}}}}}
758758
{\raisebox{0.55cm}{\parbox{\textwidth}{\hspace*{-\oddsidemargin}\centering\small\S.\thesection\space\sectiontitle}}}%
@@ -889,7 +889,7 @@
889889
% \filedate.}\\[25pt]
890890
% \author{
891891
% \large
892-
% \raisebox{-1pt}{\textcopyright}{}2024--2025 by Pablo González L\thanks{
892+
% \raisebox{-1pt}{\textcopyright}{}2024--2026 by Pablo González L\thanks{
893893
% E-mail: \textcolor{OrangeRed}{\textsf{\guillemotleft}}\email{pablgonz@educarchile.cl}\textcolor{OrangeRed}{\textsf{\guillemotright}}.
894894
% }%
895895
% }
@@ -5751,6 +5751,10 @@ Some text here
57515751
% \begin{description}[font=\small\sffamily,wide=0pt,style=multiline,leftmargin=1.1\descrwidth,nosep,noitemsep]
57525752
% \item [\fileversion{} (ctan), \filedate]
57535753
% \begin{itemize}
5754+
% \item Fixed bad interaction between |\setenumext| and the \texttt{\textcolor{optcolor}{ref}} key.
5755+
% \end{itemize}
5756+
% \item [v2.0 (ctan), 2025-12-02]
5757+
% \begin{itemize}
57545758
% \item Update requirement to \mypkg{multicol} release 2025-10-21.
57555759
% \item Adjustments in the documentation.
57565760
% \end{itemize}
@@ -5912,7 +5916,7 @@ Some text here
59125916
% \end{macrocode}
59135917
% Now declare the \mypkg*{enumext} package.
59145918
% \begin{macrocode}
5915-
\ProvidesExplPackage {enumext} {2025-12-02} {2.0} {Enumerate exercise sheets}
5919+
\ProvidesExplPackage {enumext} {2026-01-15} {2.1} {Enumerate exercise sheets}
59165920
% \end{macrocode}
59175921
% Finally check if the \mypkg{multicol} package are loaded, if not we load it.
59185922
% \begin{macrocode}
@@ -7501,8 +7505,8 @@ Some text here
75017505
%
75027506
% \begin{macro}[int]{label,ref,\l_@@_label_i_tl,\l_@@_label_ii_tl, \l_@@_label_iii_tl, \l_@@_label_iv_tl}
75037507
% Here we set the default \mymeta{labels} of the \emph{four levels} of
7504-
% \myenv*{enumext} environment, along with the default value for
7505-
% \mykey{labelwidth} key and \mykey{ref} key.
7508+
% \myenv*{enumext} environment, along with the default values for
7509+
% \mykey{labelwidth}, \mykey{widest} and \mykey{ref} keys.
75067510
% \iffalse
75077511
%% Define and set |label| and |ref| keys for |enumext|.
75087512
% \fi
@@ -7519,7 +7523,7 @@ Some text here
75197523
},
75207524
label .initial:n = #3,
75217525
label .value_required:n = true,
7522-
ref .code:n = \@@_standar_ref:n {##1},
7526+
ref .code:n = \@@_standar_ref:nn {#2} {##1},
75237527
ref .value_required:n = true,
75247528
}
75257529
}
@@ -7530,8 +7534,8 @@ Some text here
75307534
% \end{macrocode}
75317535
% \end{macro}
75327536
%
7533-
% \begin{macro}[int]{\@@_standar_ref:n, \@@_standar_ref:,}
7534-
% The \cs{@@_standard_ref:n} function will first pass the key
7537+
% \begin{macro}[int]{\@@_standar_ref:nn, \@@_standar_ref:,}
7538+
% The \cs{@@_standard_ref:nn} function will first pass the key
75357539
% \emph{argument} \texttt{\textcolor{optcolor}{ref}} to the variable
75367540
% \cs{l_@@_ref_key_arg_t}l and analyze its state, if it is not \emph{empty}
75377541
% it will set a copy of of the \emph{current counter style} save in
@@ -7542,19 +7546,16 @@ Some text here
75427546
%% Internal function used by |ref| key in enumext environment.
75437547
% \fi
75447548
% \begin{macrocode}
7545-
\cs_new_protected:Npn \@@_standar_ref:n #1
7549+
\cs_new_protected:Npn \@@_standar_ref:nn #1 #2
75467550
{
7547-
\tl_set:Nn \l_@@_ref_key_arg_tl {#1}
7551+
\tl_set:Nn \l_@@_ref_key_arg_tl {#2}
75487552
\tl_if_empty:NTF \l_@@_ref_key_arg_tl
75497553
{
75507554
\msg_error:nnn { enumext } { key-ref-empty } { enumext }
75517555
}
75527556
{
7553-
\tl_set_eq:Nc \l_@@_ref_the_count_tl
7554-
{
7555-
l_@@_the_counter_ \@@_level: _tl
7556-
}
7557-
\tl_set:ce { l_@@_renew_counter_ \@@_level: _tl }
7557+
\tl_set_eq:Nc \l_@@_ref_the_count_tl { l_@@_the_counter_#1_tl }
7558+
\tl_set:ce { l_@@_renew_counter_#1_tl }
75587559
{
75597560
\exp_not:N \renewcommand { \exp_not:V \l_@@_ref_the_count_tl }
75607561
{ \exp_not:V \l_@@_ref_key_arg_tl }

sources/enumext.ins

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
\askforoverwritefalse
44
\preamble
55

6-
Copyright (C) 2024-2025 by Pablo González L <pablgonz@educarchile.cl>
6+
Copyright (C) 2024-2026 by Pablo González L <pablgonz@educarchile.cl>
77

88
This work may be distributed and/or modified under the conditions of the
99
LaTeX Project Public License, either version 1.3c of this license or (at

sources/enumext.sty

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
%% ------------------------------------------------------------------------
3737
%%
3838
\NeedsTeXFormat{LaTeX2e}[2025-11-01]
39-
\ProvidesExplPackage {enumext} {2025-12-02} {2.0} {Enumerate exercise sheets}
39+
\ProvidesExplPackage {enumext} {2026-01-15} {2.1} {Enumerate exercise sheets}
4040
\hook_gput_code:nnn {begindocument} {enumext}
4141
{
4242
\IfPackageLoadedTF { multicol }

0 commit comments

Comments
 (0)