texlive[75067] Master/texmf-dist: overarrows (30apr25)

commits+karl at tug.org commits+karl at tug.org
Wed Apr 30 21:32:14 CEST 2025


Revision: 75067
          https://tug.org/svn/texlive?view=revision&revision=75067
Author:   karl
Date:     2025-04-30 21:32:13 +0200 (Wed, 30 Apr 2025)
Log Message:
-----------
overarrows (30apr25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/overarrows/overarrows.pdf
    trunk/Master/texmf-dist/source/latex/overarrows/overarrows.dtx
    trunk/Master/texmf-dist/tex/latex/overarrows/overarrows.sty

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

Modified: trunk/Master/texmf-dist/source/latex/overarrows/overarrows.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/overarrows/overarrows.dtx	2025-04-30 10:02:59 UTC (rev 75066)
+++ trunk/Master/texmf-dist/source/latex/overarrows/overarrows.dtx	2025-04-30 19:32:13 UTC (rev 75067)
@@ -16,7 +16,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{overarrows}
 %<*package>
-[2025/02/02 v1.3 Custom extensible arrows over math expressions]
+[2025/04/30 v1.4 Custom extensible arrows over math expressions]
 %</package>
 %
 %<*driver>
@@ -410,6 +410,7 @@
 % \iffalse
 %<*example>
 % \fi
+\NewOverArrowCommand{\myovercmd}{}
 \begin{dispExample}
 $ v_{sub} \qquad \myovercmd{v}_{sub} \qquad \myovercmd*{v}_{sub} $
 \end{dispExample}
@@ -897,7 +898,6 @@
 %<*example>
 % \fi
 \pstarrows%^^A pst arrows
-\csundef{overpictarrow}
 \begin{dispExample}
 \NewOverArrowCommand[picture]{\overpictarrow}{}
 $ \overpictarrow{v} \qquad \overpictarrow{AB} $
@@ -1173,6 +1173,7 @@
 % \end{docOption}
 %
 % \begin{docOption}{pstarrows}
+% \DeclareOverArrowCommand[picture]{\overpictarrow}{}
 %   Loads the \pkg{pict2e} package, with its option |pstarrows|. Vectors using
 %   \LaTeX{} |picture| environment gives then \pstarrows$\overpictarrow{AB}$
 %   instead of \ltxarrows$\overpictarrow{AB}$.
@@ -2240,9 +2241,9 @@
 %     doc parameter=\marg{name}\oarg{pre code}\marg{keys def},
 %   },
 % }
-%   Defines the method \meta{name}, to be used in commands
-%   \refCom{NewOverArrowCommand}, \refCom{RenewOverArrowCommand},
-%   \refCom{ProvideOverArrowCommand} or \refCom{DeclareOverArrowCommand}.
+%   Defines the method \meta{name}, to be used with
+%   \refCom{NewOverArrowCommand}, with \refCom{RenewOverArrowCommand}, with
+%   \refCom{ProvideOverArrowCommand} or with \refCom{DeclareOverArrowCommand}.
 %   When the \meta{name} method is chosen, corresponding keys are defined by
 %   \meta{keys def}. This must set, in particular, the keys \refKey{no stack
 %   macro hook} and \refKey{no arrow macro hook}. Optional code \meta{pre code}
@@ -3480,6 +3481,19 @@
       }
     }
   }
+  \ifovar at option@debug@
+  \PackageInfo{overarrows}{%
+    Meaning of \protect\ovar@#2 at normal\MessageBreak
+    used for \@backslashchar#2:\MessageBreak%
+      \expandafter\meaning\csname ovar@#2 at normal\endcsname}
+  \fi
+%    \end{macrocode}
+% \changes{v1.4}{2025/04/30}{Make commmands robust}
+%   Expand \cs{ifovar at detectsubscripts@} before closing the group, then define
+%   the command.
+%    \begin{macrocode}
+  \expandafter%
+  \endgroup
   \ifovar at detectsubscripts@%
   \csgdef{ovar@#2 at auto}##1{%
 %    \end{macrocode}
@@ -3492,21 +3506,14 @@
       \csuse{ovar@#2 at normal}{##1}%
     }%
   }
-  \csgdef{#2}{%
-    \@ifstar{\csuse{ovar@#2 at starred}}{\csuse{ovar@#2 at auto}}%
-  }
+  \expandafter\DeclareDocumentCommand\csname #2\endcsname { s }{%
+    \IfBooleanTF{##1}{\csuse{ovar@#2 at starred}}{\csuse{ovar@#2 at auto}}%
+  }%
   \else
-  \csgdef{#2}{%
-    \@ifstar{\csuse{ovar@#2 at starred}}{\csuse{ovar@#2 at normal}}%
-  }
+  \expandafter\DeclareDocumentCommand\csname #2\endcsname { s }{%
+    \IfBooleanTF{##1}{\csuse{ovar@#2 at starred}}{\csuse{ovar@#2 at normal}}%
+  }%
   \fi
-  \ifovar at option@debug@
-  \PackageInfo{overarrows}{%
-    Meaning of \protect\ovar@#2 at normal\MessageBreak
-    used for \@backslashchar#2:\MessageBreak%
-      \expandafter\meaning\csname ovar@#2 at normal\endcsname}
-  \fi
-  \endgroup
 }
 %    \end{macrocode}
 % \end{macro}

Modified: trunk/Master/texmf-dist/tex/latex/overarrows/overarrows.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/overarrows/overarrows.sty	2025-04-30 10:02:59 UTC (rev 75066)
+++ trunk/Master/texmf-dist/tex/latex/overarrows/overarrows.sty	2025-04-30 19:32:13 UTC (rev 75067)
@@ -17,7 +17,7 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{overarrows}
-[2025/02/02 v1.3 Custom extensible arrows over math expressions]
+[2025/04/30 v1.4 Custom extensible arrows over math expressions]
 \RequirePackage{etoolbox}
 \newif\ifovar at option@oldarrows@
 \newif\ifovar at option@tikz@
@@ -615,6 +615,14 @@
       }
     }
   }
+  \ifovar at option@debug@
+  \PackageInfo{overarrows}{%
+    Meaning of \protect\ovar@#2 at normal\MessageBreak
+    used for \@backslashchar#2:\MessageBreak%
+      \expandafter\meaning\csname ovar@#2 at normal\endcsname}
+  \fi
+  \expandafter%
+  \endgroup
   \ifovar at detectsubscripts@%
   \csgdef{ovar@#2 at auto}##1{%
     \@ifnextchar \ovar at subcmd {%
@@ -623,21 +631,14 @@
       \csuse{ovar@#2 at normal}{##1}%
     }%
   }
-  \csgdef{#2}{%
-    \@ifstar{\csuse{ovar@#2 at starred}}{\csuse{ovar@#2 at auto}}%
-  }
+  \expandafter\DeclareDocumentCommand\csname #2\endcsname { s }{%
+    \IfBooleanTF{##1}{\csuse{ovar@#2 at starred}}{\csuse{ovar@#2 at auto}}%
+  }%
   \else
-  \csgdef{#2}{%
-    \@ifstar{\csuse{ovar@#2 at starred}}{\csuse{ovar@#2 at normal}}%
-  }
+  \expandafter\DeclareDocumentCommand\csname #2\endcsname { s }{%
+    \IfBooleanTF{##1}{\csuse{ovar@#2 at starred}}{\csuse{ovar@#2 at normal}}%
+  }%
   \fi
-  \ifovar at option@debug@
-  \PackageInfo{overarrows}{%
-    Meaning of \protect\ovar@#2 at normal\MessageBreak
-    used for \@backslashchar#2:\MessageBreak%
-      \expandafter\meaning\csname ovar@#2 at normal\endcsname}
-  \fi
-  \endgroup
 }
 \NewDocumentCommand{\ProvideOverArrowCommand}{
  O{symb} >{\ovar at cmdname@processor} m m



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