texlive[73702] Master/texmf-dist: overarrows (2feb25)

commits+karl at tug.org commits+karl at tug.org
Sun Feb 2 21:58:12 CET 2025


Revision: 73702
          https://tug.org/svn/texlive?view=revision&revision=73702
Author:   karl
Date:     2025-02-02 21:58:12 +0100 (Sun, 02 Feb 2025)
Log Message:
-----------
overarrows (2feb25)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/overarrows/overarrows-doc.sty
    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-doc.sty
===================================================================
--- trunk/Master/texmf-dist/doc/latex/overarrows/overarrows-doc.sty	2025-02-02 20:58:03 UTC (rev 73701)
+++ trunk/Master/texmf-dist/doc/latex/overarrows/overarrows-doc.sty	2025-02-02 20:58:12 UTC (rev 73702)
@@ -148,7 +148,7 @@
     indexstyle  = [3]\indexlength,%
     texcs       = [4]{% internal macros
       ovar at rightarrow, ovar at leftarrow, ifovar at option@oldarrows@,
-      ifovar at option@esvect@, ifovar at option@tikz@, ifovar at option@pstricks@,
+      ovar at option@esvect, ifovar at option@tikz@, ifovar at option@pstricks@,
       ifovar at option@pstarrows@, ifovar at detectsubscripts@,
       ifovar at option@subother@, ifovar at option@subactive@, ifovar at option@debug@,
       ifovar at option@overrightarrow@, ifovar at option@underrightarrow@,

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-02-02 20:58:03 UTC (rev 73701)
+++ trunk/Master/texmf-dist/source/latex/overarrows/overarrows.dtx	2025-02-02 20:58:12 UTC (rev 73702)
@@ -16,7 +16,7 @@
 %<package>\NeedsTeXFormat{LaTeX2e}
 %<package>\ProvidesPackage{overarrows}
 %<*package>
-[2024/07/11 v1.2 Custom extensible arrows over math expressions]
+[2025/02/02 v1.3 Custom extensible arrows over math expressions]
 %</package>
 %
 %<*driver>
@@ -2430,11 +2430,14 @@
 % \renewcommand{\arraystretch}{2}
 % \begin{tabular*}{\linewidth}
 % {@{} l @{\extracolsep{\fill}} p{0.9\linewidth} @{}}
+% v1.3 & Bug fix for |esvect| options (see \url{https://github.com/julienlabbe/latex-packages/issues/2}).
+% \\
 % v1.2   & \noindent\par\vspace{-\baselineskip}
 %   \begin{itemize}[left=0pt, topsep=0pt, partopsep=0pt]
 %   \item Fix compatibility issues with \pkg{unicode-math}.
 %   \item Allow to draw the arrow with PSTricks.
 %   \item Make \pkg{esvect} handle all font sizes.
+%   \item Allow backslash in command name for \cs{NewOverArrowCommand} and variants.
 %   \item Rewrite starred variant for better performances.
 %   \end{itemize}
 % \\
@@ -2457,6 +2460,10 @@
 % \setlength{\parindent}{0em}
 % \setlength{\parskip}{\smallskipamount}
 %
+%    \begin{macrocode}
+\RequirePackage{etoolbox}
+%    \end{macrocode}
+%
 % \subsection*{Management of options}
 %
 % \subsubsection*{Declaration of conditionals}
@@ -2463,7 +2470,6 @@
 %
 %    \begin{macrocode}
 \newif\ifovar at option@oldarrows@
-\newif\ifovar at option@esvect@ \ovar at option@esvect at true \PassOptionsToPackage{f}{esvect}
 \newif\ifovar at option@tikz@
 \newif\ifovar at option@pstricks@
 \newif\ifovar at option@pstarrows@
@@ -2497,18 +2503,20 @@
 % \subsubsection*{Declaration of options}
 %
 % \changes{v1.2}{2024/07/11}{Add option pstricks}
+% \changes{v1.3}{2025/02/02}{Use a control sequence to store the esvect option}
 %
 %    \begin{macrocode}
-\DeclareOption{esvect}{\ovar at option@esvect at true}
-\DeclareOption{noesvect}{\ovar at option@esvect at false}
-\DeclareOption{esvecta}{\ovar at option@esvect at true\PassOptionsToPackage{a}{esvect}}
-\DeclareOption{esvectb}{\ovar at option@esvect at true\PassOptionsToPackage{b}{esvect}}
-\DeclareOption{esvectc}{\ovar at option@esvect at true\PassOptionsToPackage{c}{esvect}}
-\DeclareOption{esvectd}{\ovar at option@esvect at true\PassOptionsToPackage{d}{esvect}}
-\DeclareOption{esvecte}{\ovar at option@esvect at true\PassOptionsToPackage{e}{esvect}}
-\DeclareOption{esvectf}{\ovar at option@esvect at true\PassOptionsToPackage{f}{esvect}}
-\DeclareOption{esvectg}{\ovar at option@esvect at true\PassOptionsToPackage{g}{esvect}}
-\DeclareOption{esvecth}{\ovar at option@esvect at true\PassOptionsToPackage{h}{esvect}}
+\def\ovar at option@esvect{f}
+\DeclareOption{esvect}{\gdef\ovar at option@esvect{f}}
+\DeclareOption{noesvect}{\gundef\ovar at option@esvect}
+\DeclareOption{esvecta}{\gdef\ovar at option@esvect{a}}
+\DeclareOption{esvectb}{\gdef\ovar at option@esvect{b}}
+\DeclareOption{esvectc}{\gdef\ovar at option@esvect{c}}
+\DeclareOption{esvectd}{\gdef\ovar at option@esvect{d}}
+\DeclareOption{esvecte}{\gdef\ovar at option@esvect{e}}
+\DeclareOption{esvectf}{\gdef\ovar at option@esvect{f}}
+\DeclareOption{esvectg}{\gdef\ovar at option@esvect{g}}
+\DeclareOption{esvecth}{\gdef\ovar at option@esvect{h}}
 \DeclareOption{old-arrows}{\ovar at option@oldarrows at true}
 \DeclareOption{tikz}{\ovar at option@tikz at true}
 \DeclareOption{pstricks}{\ovar at option@pstricks at true}
@@ -2587,9 +2595,11 @@
 %
 % \subsubsection*{Options processing}
 %
+% \changes{v1.3}{2025/02/02}{Process options in the order specified by the user}
+%
 %    \begin{macrocode}
 \DeclareOption*{\PackageWarning{overarrows}{Unknown option: '\CurrentOption'}}
-\ProcessOptions\relax
+\ProcessOptions*
 %    \end{macrocode}
 %
 % \subsection*{Package dependencies}
@@ -2596,9 +2606,11 @@
 %
 % \LaTeX{} distributions prior to 2020/10/01 must add the \pkg{xparse} package.
 %
+% \pkg{etoolbox} is loaded at the very start of the package, as \cs{gundef} is
+% used at options processing.
+%
 %    \begin{macrocode}
 \RequirePackage{amsmath}
-\RequirePackage{etoolbox}
 %    \end{macrocode}
 %
 % Option \refOpt{old-arrows}. Configuration of arrows used for
@@ -2616,8 +2628,10 @@
 %    \end{macrocode}
 %
 % Option \refOpt{esvect}.
+% \changes{v1.3}{2025/02/02}{Use only one \cs{PassOptionsToPackage} with esvect}
 %    \begin{macrocode}
-\ifovar at option@esvect@
+\ifdefined\ovar at option@esvect
+  \PassOptionsToPackage{\ovar at option@esvect}{esvect}
   \RequirePackage{esvect}
 %    \end{macrocode}
 % \changes{v1.2}{2024/07/11}{Fix esvect font sizes}
@@ -3569,8 +3583,10 @@
 % \begin{macro}{\vv}
 % \begin{macro}{\esvectvv}
 % Backup and redefinition of \pkg{esvect} \refCom{vv} vector command.
+% \changes{v1.3}{2025/02/02}{Replace esvect conditionnal by the definition of
+% a control sequence}
 %    \begin{macrocode}
-\ifovar at option@esvect@
+\ifdefined\ovar at option@esvect
   \let\esvectvv\vv
   \undef\vv
 %    \end{macrocode}
@@ -4099,7 +4115,7 @@
 %    \begin{macrocode}
     texcs       = [4]{% internal macros
       ovar at rightarrow, ovar at leftarrow, ifovar at option@oldarrows@,
-      ifovar at option@esvect@, ifovar at option@tikz@, ifovar at option@pstricks@,
+      ovar at option@esvect, ifovar at option@tikz@, ifovar at option@pstricks@,
       ifovar at option@pstarrows@, ifovar at detectsubscripts@,
       ifovar at option@subother@, ifovar at option@subactive@, ifovar at option@debug@,
       ifovar at option@overrightarrow@, ifovar at option@underrightarrow@,

Modified: trunk/Master/texmf-dist/tex/latex/overarrows/overarrows.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/overarrows/overarrows.sty	2025-02-02 20:58:03 UTC (rev 73701)
+++ trunk/Master/texmf-dist/tex/latex/overarrows/overarrows.sty	2025-02-02 20:58:12 UTC (rev 73702)
@@ -17,9 +17,9 @@
 %% 
 \NeedsTeXFormat{LaTeX2e}
 \ProvidesPackage{overarrows}
-[2024/07/11 v1.2 Custom extensible arrows over math expressions]
+[2025/02/02 v1.3 Custom extensible arrows over math expressions]
+\RequirePackage{etoolbox}
 \newif\ifovar at option@oldarrows@
-\newif\ifovar at option@esvect@ \ovar at option@esvect at true \PassOptionsToPackage{f}{esvect}
 \newif\ifovar at option@tikz@
 \newif\ifovar at option@pstricks@
 \newif\ifovar at option@pstarrows@
@@ -43,16 +43,17 @@
 \newif\ifovar at option@underleftharpoondown@
 \newif\ifovar at option@overbar@
 \newif\ifovar at option@underbar@
-\DeclareOption{esvect}{\ovar at option@esvect at true}
-\DeclareOption{noesvect}{\ovar at option@esvect at false}
-\DeclareOption{esvecta}{\ovar at option@esvect at true\PassOptionsToPackage{a}{esvect}}
-\DeclareOption{esvectb}{\ovar at option@esvect at true\PassOptionsToPackage{b}{esvect}}
-\DeclareOption{esvectc}{\ovar at option@esvect at true\PassOptionsToPackage{c}{esvect}}
-\DeclareOption{esvectd}{\ovar at option@esvect at true\PassOptionsToPackage{d}{esvect}}
-\DeclareOption{esvecte}{\ovar at option@esvect at true\PassOptionsToPackage{e}{esvect}}
-\DeclareOption{esvectf}{\ovar at option@esvect at true\PassOptionsToPackage{f}{esvect}}
-\DeclareOption{esvectg}{\ovar at option@esvect at true\PassOptionsToPackage{g}{esvect}}
-\DeclareOption{esvecth}{\ovar at option@esvect at true\PassOptionsToPackage{h}{esvect}}
+\def\ovar at option@esvect{f}
+\DeclareOption{esvect}{\gdef\ovar at option@esvect{f}}
+\DeclareOption{noesvect}{\gundef\ovar at option@esvect}
+\DeclareOption{esvecta}{\gdef\ovar at option@esvect{a}}
+\DeclareOption{esvectb}{\gdef\ovar at option@esvect{b}}
+\DeclareOption{esvectc}{\gdef\ovar at option@esvect{c}}
+\DeclareOption{esvectd}{\gdef\ovar at option@esvect{d}}
+\DeclareOption{esvecte}{\gdef\ovar at option@esvect{e}}
+\DeclareOption{esvectf}{\gdef\ovar at option@esvect{f}}
+\DeclareOption{esvectg}{\gdef\ovar at option@esvect{g}}
+\DeclareOption{esvecth}{\gdef\ovar at option@esvect{h}}
 \DeclareOption{old-arrows}{\ovar at option@oldarrows at true}
 \DeclareOption{tikz}{\ovar at option@tikz at true}
 \DeclareOption{pstricks}{\ovar at option@pstricks at true}
@@ -116,9 +117,8 @@
   \ovar at option@underbar at true
 }
 \DeclareOption*{\PackageWarning{overarrows}{Unknown option: '\CurrentOption'}}
-\ProcessOptions\relax
+\ProcessOptions*
 \RequirePackage{amsmath}
-\RequirePackage{etoolbox}
 \def\ovar at rightarrow{\rightarrow}
 \def\ovar at leftarrow{\leftarrow}
 \ifovar at option@oldarrows@
@@ -126,7 +126,8 @@
   \def\ovar at rightarrow{\varrightarrow}
   \def\ovar at leftarrow{\varleftarrow}
 \fi
-\ifovar at option@esvect@
+\ifdefined\ovar at option@esvect
+  \PassOptionsToPackage{\ovar at option@esvect}{esvect}
   \RequirePackage{esvect}
   \DeclareFontFamily{U}{esvect}{}
   \DeclareFontShape{U}{esvect}{m}{n}{
@@ -676,7 +677,7 @@
   \settowidth{\ovar at tempdim}{$\m at th #2{#3}$}%
   \kern\dimeval{0.5\ovar at tempdim - 0.5\wd\ovar at tempbox}%
 }
-\ifovar at option@esvect@
+\ifdefined\ovar at option@esvect
   \let\esvectvv\vv
   \undef\vv
   \NewOverArrowCommand{\vv}{esvect, middle config = relbareda}



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