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
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}}}%
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 }
0 commit comments