texlive[72489] Master/texmf-dist: updatemarks (7oct24)

commits+mseven at tug.org commits+mseven at tug.org
Tue Oct 8 03:08:26 CEST 2024


Revision: 72489
          https://tug.org/svn/texlive?view=revision&revision=72489
Author:   mseven
Date:     2024-10-08 03:08:26 +0200 (Tue, 08 Oct 2024)
Log Message:
-----------
updatemarks (7oct24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/updatemarks/updatemarks.pdf
    trunk/Master/texmf-dist/doc/latex/updatemarks/updatemarks.tex
    trunk/Master/texmf-dist/tex/latex/updatemarks/updatemarks.sty

Modified: trunk/Master/texmf-dist/doc/latex/updatemarks/updatemarks.pdf
===================================================================
(Binary files differ)

Modified: trunk/Master/texmf-dist/doc/latex/updatemarks/updatemarks.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/updatemarks/updatemarks.tex	2024-10-08 01:07:52 UTC (rev 72488)
+++ trunk/Master/texmf-dist/doc/latex/updatemarks/updatemarks.tex	2024-10-08 01:08:26 UTC (rev 72489)
@@ -4,7 +4,7 @@
 
 \title{Update marks in box\thanks{Issues: \url{https://github.com/Sophanatprime/updatemarks/issues}}}
 \author{WenJian Chern\thanks{Email: longaster at 163.com}}
-\date{\today\qquad v0.2e}
+\date{\today\qquad v0.2f}
 
 \begin{document}
 
@@ -216,8 +216,7 @@
     \verb|\ExtractMarks| * \marg{text} \marg{cmd}
     \verb|\ExtractMarks| * \oarg{number list} \marg{text} \marg{cmd}
   \end{syntax}
-It collect all marks to \tn[no-index]{cmd}, you can use \tn[no-index] to reinsert
-these marks.
+It collect all marks to \meta{cmd}, you can use \meta{cmd} to reinsert these marks.
 
 \texttt{insertmark} hook would not be used as it's already been used.
 \end{function}

Modified: trunk/Master/texmf-dist/tex/latex/updatemarks/updatemarks.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/updatemarks/updatemarks.sty	2024-10-08 01:07:52 UTC (rev 72488)
+++ trunk/Master/texmf-dist/tex/latex/updatemarks/updatemarks.sty	2024-10-08 01:08:26 UTC (rev 72489)
@@ -13,11 +13,11 @@
 % 
 % The Current Maintainer of this work is Wenjian Chern.
 %
-% This work consists of the files updatemarks.sty and updatemarks.tex
+% This work consists of the files updatemarks.sty, updatemarks.tex and updatemarks-nums.sty
 %
 \NeedsTeXFormat{LaTeX2e}
 \@ifundefined{NewDocumentCommand}{\RequirePackage{xparse}}{}
-\ProvidesExplPackage{updatemarks}{2024/02/19}{0.2e}{extract and update marks from box}
+\ProvidesExplPackage{updatemarks}{2024/10/07}{0.2f}{extract and update marks from box}
 \RequirePackage{etoolbox}
 \RequirePackage{updatemarks-nums}
 
@@ -451,8 +451,17 @@
       { \color at endgroup\egroup\extractmarks at of{tcolorbox}{\unvcopy\@tempboxa} } 
       { } { \ERROR }
     \let\endtcb at savebox=\endtcb at lrbox
-    \patchcmd \tcb at drawing@env at end { \csname }
-      { \updatemarks at of{tcolorbox}\csname } { } { \ERROR }
+    \ifdefined\tcb at drawing@env at end
+      \patchcmd \tcb at drawing@env at end { \csname }
+        { \updatemarks at of{tcolorbox}\csname } { } { \ERROR }
+    \else
+      \ifcsname environment~tcb at drawing~end~aux~ \endcsname
+        \tl_set:Nv \l_tmpa_tl { environment~tcb at drawing~end~aux~ }
+        \tl_if_in:NnF \l_tmpa_tl { \use:c } { \ERROR }
+        \tl_replace_once:Nnn \l_tmpa_tl { \use:c } { \updatemarks at of{tcolorbox}\use:c }
+        \exp_args:Nno \cs_set_nopar:cpn { environment~tcb at drawing~end~aux~ } \l_tmpa_tl
+      \else \ERROR \fi
+    \fi
     % breakable library
     \ifdefined \tcb at vsplit@upper 
       \apptocmd \tcb at vsplit@upper { \extractsplitmarks at of{tcolorbox} } { } { \ERROR }



More information about the tex-live-commits mailing list.