[latex3-commits] [latex3/latex2e] latexlab/properties: use properties in footnote code WIP [ci-skip] (000cf289)
github at latex-project.org
github at latex-project.org
Sat Sep 16 21:55:07 CEST 2023
Repository : https://github.com/latex3/latex2e
On branch : latexlab/properties
Link : https://github.com/latex3/latex2e/commit/000cf289e34f0034203131d05e757c0868f05e44
>---------------------------------------------------------------
commit 000cf289e34f0034203131d05e757c0868f05e44
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date: Sat Sep 16 21:55:07 2023 +0200
use properties in footnote code WIP [ci-skip]
>---------------------------------------------------------------
000cf289e34f0034203131d05e757c0868f05e44
required/latex-lab/latex-lab-footnotes.dtx | 17 ++++++++---------
1 file changed, 8 insertions(+), 9 deletions(-)
diff --git a/required/latex-lab/latex-lab-footnotes.dtx b/required/latex-lab/latex-lab-footnotes.dtx
index f62d12bf..2c2045bc 100644
--- a/required/latex-lab/latex-lab-footnotes.dtx
+++ b/required/latex-lab/latex-lab-footnotes.dtx
@@ -899,7 +899,6 @@
% \subsection{Variants}
%
% \begin{macrocode}
-\cs_generate_variant:Nn \ref_value:nn { Vn }
\cs_generate_variant:Nn \prop_gput:Nnn {cxn}
\cs_generate_variant:Nn \hook_gput_code:nnn{nne}
\cs_generate_variant:Nn \tag_struct_use:n {e}
@@ -1711,14 +1710,14 @@
% At first we define a suitable attribute, it uses as value the structure
% number of the note as stored in \cs{l__fnote_currentstruct_tl}
% \begin{macrocode}
-\ref_attribute_gset:nnnn {fnote/struct}{1}{now}{\l_@@_currentstruct_tl}
+\property_new:nnnn {fnote/struct}{now}{1}{\l_@@_currentstruct_tl}
% \end{macrocode}
%
% We add a hook to the label hook. By default it does nothing
-% \begin{macro}{\@@_label_hook:n}
+% \begin{macro}{\@@_label_hook:e}
% \begin{macrocode}
-\cs_new_protected:Npn \@@_label_hook:n #1 {}
-\AddToHookWithArguments{label}{ \@@_label_hook:n{#1}}
+\cs_new_protected:Npn \@@_label_hook:e #1 {}
+\AddToHookWithArguments{label}{ \@@_label_hook:e{#1}}
% \end{macrocode}
% \end{macro}
% Inside a footnotetext we change the hook to store the structure number too.
@@ -1726,9 +1725,9 @@
% \begin{macrocode}
\AddToHook{fntext/begin}
{
- \cs_set_protected:Npn \@@_label_hook:n #1
+ \cs_set_protected:Npn \@@_label_hook:e #1
{
- \ref_label:nn {#1} {fnote/struct}
+ \property_record:xx {#1} {fnote/struct}
}
}
% \end{macrocode}
@@ -1854,13 +1853,13 @@
{
\exp_not:N\fnote_gput_refs:ee
{ \tag_get:n{struct_num} }
- { \ref_value:Vn\l_@@_currentlabel_tl {fnote/struct} }
+ { \property_ref:ee{ \l_@@_currentlabel_tl } {fnote/struct} }
}
% \end{macrocode}
% in this case we set the name of the linktarget in the note
% to the structure number of the text mark.
% \begin{macrocode}
- \tl_set:Nx \l_@@_linktarget_tl {footnote*.\ref_value:Vn\l_@@_currentlabel_tl {fnote/struct}}
+ \tl_set:Nx \l_@@_linktarget_tl {footnote*.\property_ref:ee {\l_@@_currentlabel_tl} {fnote/struct}}
}
% \end{macrocode}
% And now the actual content
More information about the latex3-commits
mailing list.