[latex3-commits] [latex3/latex2e] UF-latexlab-toc: switch to sockets for starttoc (f33a7b82a)

github at latex-project.org github at latex-project.org
Thu Jul 11 14:54:42 CEST 2024


Repository : https://github.com/latex3/latex2e
On branch  : UF-latexlab-toc
Link       : https://github.com/latex3/latex2e/commit/f33a7b82a68e0ffdcf0826b39cc92e66c4161901

>---------------------------------------------------------------

commit f33a7b82a68e0ffdcf0826b39cc92e66c4161901
Author: Ulrike Fischer <fischer at troubleshooting-tex.de>
Date:   Thu Jul 11 14:54:42 2024 +0200

    switch to sockets for starttoc


>---------------------------------------------------------------

f33a7b82a68e0ffdcf0826b39cc92e66c4161901
 .../latex-lab/latex-lab-toc-kernel-changes.dtx     |  8 ++++----
 required/latex-lab/latex-lab-toc.dtx               | 22 ++++++++++++----------
 2 files changed, 16 insertions(+), 14 deletions(-)

diff --git a/required/latex-lab/latex-lab-toc-kernel-changes.dtx b/required/latex-lab/latex-lab-toc-kernel-changes.dtx
index c70918153..58d5be1bb 100644
--- a/required/latex-lab/latex-lab-toc-kernel-changes.dtx
+++ b/required/latex-lab/latex-lab-toc-kernel-changes.dtx
@@ -228,14 +228,14 @@
 % We add a configuration point before and after reading the file
 % for the tagging.
 %    \begin{macrocode}
-\def\@starttoc at cfgpoint@before#1{}
-\def\@starttoc at cfgpoint@after#1{}
+\NewSocket{tagsupport/toc/starttoc/before}{1}
+\NewSocket{tagsupport/toc/starttoc/after}{1}
 \def\@starttoc#1{%
   \begingroup
     \makeatletter
-    \@starttoc at cfgpoint@before{#1}%
+    \UseTaggingSocket{toc/starttoc/before}{#1}%
     \@input{\jobname.#1}%
-    \@starttoc at cfgpoint@after{#1}%
+    \UseTaggingSocket{toc/starttoc/after}{#1}%
     \if at filesw
       \expandafter\newwrite\csname tf@#1\endcsname
       \immediate\openout \csname tf@#1\endcsname \jobname.#1\relax
diff --git a/required/latex-lab/latex-lab-toc.dtx b/required/latex-lab/latex-lab-toc.dtx
index 7b992eca2..d0a695fcf 100644
--- a/required/latex-lab/latex-lab-toc.dtx
+++ b/required/latex-lab/latex-lab-toc.dtx
@@ -196,12 +196,13 @@
     \tag_struct_begin:n{tag=TOC,title=#1}
  }
 %    \end{macrocode}
-% Now map it into the config point:
+% Now map it into the tagging Socket:
 %    \begin{macrocode}
-\cs_set_protected:Npn\@starttoc at cfgpoint@before#1
-  {
-    \@@_toc_starttoc_init:n{#1}
-  }
+\NewSocketPlug{tagsupport/toc/starttoc/before}{default}
+ {
+   \@@_toc_starttoc_init:n{#1}
+ }
+\AssignSocketPlug{tagsupport/toc/starttoc/before}{default}
 %    \end{macrocode}
 % \end{macro}
 % \begin{macro}{\@@_toc_starttoc_finalize:}
@@ -215,12 +216,13 @@
     \seq_gclear:N \g_@@_toc_stack_seq
  }
 %    \end{macrocode}
-% Now map it into the config point:
+% Now map it into the tagging socket:
 %    \begin{macrocode}
-\cs_set_protected:Npn\@starttoc at cfgpoint@after#1
-  {
-    \@@_toc_starttoc_finalize:
-  }
+\NewSocketPlug{tagsupport/toc/starttoc/after}{default}
+ {
+   \@@_toc_starttoc_finalize:
+ }
+\AssignSocketPlug{tagsupport/toc/starttoc/after}{default}
 %    \end{macrocode}
 % \end{macro}
 





More information about the latex3-commits mailing list.