summaryrefslogtreecommitdiff
path: root/tex/context/base/strc-lab.mkiv
diff options
context:
space:
mode:
Diffstat (limited to 'tex/context/base/strc-lab.mkiv')
-rw-r--r--tex/context/base/strc-lab.mkiv27
1 files changed, 4 insertions, 23 deletions
diff --git a/tex/context/base/strc-lab.mkiv b/tex/context/base/strc-lab.mkiv
index 28a5020ed..772a9cc19 100644
--- a/tex/context/base/strc-lab.mkiv
+++ b/tex/context/base/strc-lab.mkiv
@@ -92,7 +92,6 @@
\fi
\doifcounterelse\p_counter\donothing{\strc_labels_define_counter\p_counter}%
\letlabelparameter\s!counter\p_counter
- %\strc_labels_setup_counter\currentlabel
\to \everydefinelabel
\let\p_strc_constructions_title \empty
@@ -139,28 +138,6 @@
% similar to enumerations
-% \newtoks\everysetuplabelcounter
-%
-% \let\v_strc_labels_counter_name\empty
-%
-% \def\strc_labels_setup_counter#1%
-% {\edef\v_strc_labels_counter_name{#1}%
-% \the\everysetuplabelcounter}
-%
-% \def\strc_labels_define_counter#1%
-% {\definecounter[#1]%
-% \strc_labels_setup_counter{#1}}
-%
-% \appendtoks
-% \strc_counter_setup_using_parameter\v_strc_labels_counter_name\labelparameter
-% \to \everysetuplabelcounter
-%
-% \appendtoks
-% \ifx\currentlabel\empty \else
-% \strc_labels_setup_counter\currentlabel
-% \fi
-% \to \everysetuplabel
-
\def\strc_labels_define_counter#1%
{\definecounter[#1]%
\registerlabelcounter{#1}}
@@ -169,6 +146,10 @@
\synchronizelabelcounters
\to \everysetuplabel
+\appendtoks
+ \synchronizelabelcounters
+\to \everydefinelabel
+
% no start stop here
\expandafter\let\csname\??constructionmainhandler\v!label\expandafter\endcsname\csname\??constructionmainhandler\v!description\endcsname