texlive[47751] Master/texmf-dist: witharrows (18may18)

commits+karl at tug.org commits+karl at tug.org
Fri May 18 23:10:46 CEST 2018


Revision: 47751
          http://tug.org/svn/texlive?view=revision&revision=47751
Author:   karl
Date:     2018-05-18 23:10:45 +0200 (Fri, 18 May 2018)
Log Message:
-----------
witharrows (18may18)

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

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

Modified: trunk/Master/texmf-dist/source/latex/witharrows/witharrows.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/witharrows/witharrows.dtx	2018-05-18 21:10:33 UTC (rev 47750)
+++ trunk/Master/texmf-dist/source/latex/witharrows/witharrows.dtx	2018-05-18 21:10:45 UTC (rev 47751)
@@ -15,8 +15,8 @@
 %
 % \fi
 % \iffalse
-\def\myfileversion{1.6}
-\def\myfiledate{2018/05/10}
+\def\myfileversion{1.6.1}
+\def\myfiledate{2018/05/18}
 %
 %
 %<*batchfile>
@@ -55,7 +55,6 @@
 \usepackage{mathtools}
 \usepackage{amsfonts}
 \usepackage[only,llbracket,rrbracket]{stmaryrd}
-\usepackage{booktabs}
 \NewDocumentEnvironment {scope} {} {} {}
 \def\interitem{\vskip 7mm plus 2 mm minus 3mm}          
 \def\emphase{\bgroup\color{RoyalPurple}\let\next=}
@@ -2821,9 +2820,15 @@
 % \bigskip
 % Eventually, we can draw the arrow with the code in |\l_@@_tikz_code_tl|. We recall that the value by default for
 % this token list is :\enskip ``\verb|\draw (#1) to node {#3} (#2) ;|''. This value can be modified
-% with the option |TikzCode|.
+% with the option |TikzCode|. We use the variant |\@@_draw_arrow:nno| of the macro |\@@_draw_arrow:nnn| because of
+% the characters \emph{underscore} in the name |\l_tmpa_tl| : if the user uses the Tikz library |babel|, the third
+% argument of the command |\@@_draw_arrow:nno| will be rescanned because this third argument will be in the
+% argument of a command |node| of an instruction |\draw| of Tikz... and we will have an error because of the
+% characters \emph{underscore}.\footnote{There were other solutions : use another name without \emph{underscore}
+% (like \Verb|\ltmpatl|) or use the package \pkg{underscore} (with this package, the characters \emph{underscore}
+% will be rescanned without errors, even in text mode).}
 %    \begin{macrocode}
-      \@@_draw_arrow:nnn {\g_tmpa_tl} {\g_tmpb_tl} {\l_tmpa_tl}
+      \@@_draw_arrow:nno {\g_tmpa_tl} {\g_tmpb_tl} {\l_tmpa_tl}
 %    \end{macrocode}
 %
 % \smallskip
@@ -2833,11 +2838,6 @@
 %    \end{macrocode}
 %
 %
-%
-%
-%
-%
-%
 % \bigskip
 % The function |@@_tmpa:nnn| will draw the arrow. It's merely an environment |{tikzpicture}|. However, the Tikz
 % instruction in this environment must be inserted from |\l_@@_tikz_code_tl| with the markers |#1|, |#2| and |#3|.
@@ -2857,6 +2857,7 @@
 \cs_new_protected:Nn \@@_draw_arrow:nnn
            {\exp_args:No \@@_def_function_tmpa:n \l_@@_tikz_code_tl
             \@@_tmpa:nnn {#1} {#2} {#3} }
+\cs_generate_variant:Nn \@@_draw_arrow:nnn {nno}
 %    \end{macrocode}
 %
 %
@@ -3224,6 +3225,10 @@
 % The code has been improved to be faster and the Tikz library |calc| is no longer required.
 %
 % A new option |name| is available for the environments |{WithArrows}|.
+%
+% \subsubsection{Changes between 1.6 and 1.6.1}
+%
+% Correction of a bug that leads to incompatibility with |\usetikzlibrary{babel}|.
 % \endinput
 %
 % Local Variables:

Modified: trunk/Master/texmf-dist/tex/latex/witharrows/witharrows.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/witharrows/witharrows.sty	2018-05-18 21:10:33 UTC (rev 47750)
+++ trunk/Master/texmf-dist/tex/latex/witharrows/witharrows.sty	2018-05-18 21:10:45 UTC (rev 47751)
@@ -18,8 +18,8 @@
 %% and version 1.3 or later is part of all distributions of
 %% LaTeX version 2005/12/01 or later.
 %% 
-\def\myfileversion{1.6}
-\def\myfiledate{2018/05/10}
+\def\myfileversion{1.6.1}
+\def\myfiledate{2018/05/18}
 \RequirePackage{tikz}
 \usetikzlibrary{arrows.meta,bending}
 \RequirePackage{l3keys2e}
@@ -468,7 +468,7 @@
               \tikz at scan@one at point\pgfutil at firstofone (\l__wa_final_tl)
               \tl_gset:Nx \g_tmpb_tl {\dim_use:N \g__wa_x_dim , \dim_use:N \pgf at y}
           \end{tikzpicture}}
-      \__wa_draw_arrow:nnn {\g_tmpa_tl} {\g_tmpb_tl} {\l_tmpa_tl}
+      \__wa_draw_arrow:nno {\g_tmpa_tl} {\g_tmpb_tl} {\l_tmpa_tl}
       \group_end: }
 \cs_new_protected:Nn \__wa_def_function_tmpa:n
     {\cs_set:Nn \__wa_tmpa:nnn
@@ -478,6 +478,7 @@
 \cs_new_protected:Nn \__wa_draw_arrow:nnn
            {\exp_args:No \__wa_def_function_tmpa:n \l__wa_tikz_code_tl
             \__wa_tmpa:nnn {#1} {#2} {#3} }
+\cs_generate_variant:Nn \__wa_draw_arrow:nnn {nno}
 \cs_new_protected:Nn \__wa_update_x_value:nn
     {\int_step_inline:nnnn {#1} \c_one {#2}
        {\cs_if_exist:cT {pgf at sh@ns at wa-\l__wa_prefix_str-##1-l}



More information about the tex-live-commits mailing list