texlive[59993] Master: letterswitharrows (19jul21)

commits+karl at tug.org commits+karl at tug.org
Mon Jul 19 22:21:05 CEST 2021


Revision: 59993
          http://tug.org/svn/texlive?view=revision&revision=59993
Author:   karl
Date:     2021-07-19 22:21:04 +0200 (Mon, 19 Jul 2021)
Log Message:
-----------
letterswitharrows (19jul21)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/letterswitharrows/README.txt
    trunk/Master/texmf-dist/doc/latex/letterswitharrows/letterswitharrows.pdf
    trunk/Master/texmf-dist/source/latex/letterswitharrows/letterswitharrows.dtx
    trunk/Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty
    trunk/Master/tlpkg/libexec/ctan2tds

Modified: trunk/Master/texmf-dist/doc/latex/letterswitharrows/README.txt
===================================================================
--- trunk/Master/texmf-dist/doc/latex/letterswitharrows/README.txt	2021-07-19 20:15:07 UTC (rev 59992)
+++ trunk/Master/texmf-dist/doc/latex/letterswitharrows/README.txt	2021-07-19 20:21:04 UTC (rev 59993)
@@ -1,7 +1,7 @@
 The letterswitharrows package
-Copyright 2019-2020 J. M. Teegen
+Copyright 2019-2021 J. M. Teegen
 
-The letterswitharrows package does provides LaTeX math-mode commands for setting left and right arrows over mathematical symbols, so that the arrows dynamically scale with the symbols.
+The letterswitharrows package provides LaTeX math-mode commands for setting left and right arrows over mathematical symbols, so that the arrows dynamically scale with the symbols.
 While it is possible to set arrows over longer strings of symbols, the focus lies on single characters.
 
-For more information please consult the package documentation in letterswitharrows.pdf
+For more information, please consult the package documentation in letterswitharrows.pdf

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

Modified: trunk/Master/texmf-dist/source/latex/letterswitharrows/letterswitharrows.dtx
===================================================================
--- trunk/Master/texmf-dist/source/latex/letterswitharrows/letterswitharrows.dtx	2021-07-19 20:15:07 UTC (rev 59992)
+++ trunk/Master/texmf-dist/source/latex/letterswitharrows/letterswitharrows.dtx	2021-07-19 20:21:04 UTC (rev 59993)
@@ -54,7 +54,7 @@
 
 % \title{The \pkg{letterswitharrows} package}
 % \author{Max Teegen\\ \href{mailto:tex at jmteegen.eu}{tex at jmteegen.eu}}
-% \date{Released 2020-02-04}
+% \date{Released 2021-07-19}
 
 % \maketitle
 
@@ -140,6 +140,11 @@
 %   If \verb|#3| is \verb|-| if the arrow should point rightwards and empty otherwise.
 % \end{texnote}
 
+% \DescribeOption{linewidth}
+% Specifying \verb|linewidth=<value>| as a package option allows you to adjust the line width of the arrows to adjust for the weigth of the maths font you are using.
+% The default value is \verb|linewidth=0.3|.
+
+
 % \DescribeOption{tweaks}
 % Specifying the \verb|tweaks| option applies per-letter scaling adjustments to some of the single-letter shorthands. This is enabled by default.
 % These are specific to Latin Modern Math and subject to be changed on a whim. If you wish a more stable behaviour specify \verb|tweaks=false|.
@@ -153,7 +158,7 @@
 %    \begin{macrocode}
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{expl3}
-\ProvidesExplPackage {letterswitharrows} {2020-02-04} {} {Draw arrows over math letters.}
+\ProvidesExplPackage {letterswitharrows} {2021/07/19} {} {Draw arrows over math letters.}
 \RequirePackage{xparse,l3keys2e,mathtools}
 % TODO: I just use mathtools for mathrlap; replace.
 
@@ -166,6 +171,7 @@
 }
 %    \end{macrocode}
 % The drawing code.
+% \changes{2021/07/10}{2021/07/19}{Implement adjustable linewidth.}
 % \begin{macro}{\__@@_arrow_draw_special:nnn,\__@@_arrow_draw_pgf:nnn,\__@@_arrow_left:nn,\__@@_arrow_right:nn}
 %    \begin{macrocode}
 \cs_new:Nn \__@@_arrow_draw_special:nnn % length, font size, sign
@@ -175,7 +181,7 @@
       q~
       1~J~1~j~
       1~0~0~\dim_to_decimal:n{#3#2pt/10}~0~0~cm~
-      .3~w~
+      \fp_use:c{g_@@_line_width}~w~
       q~
       \dim_to_decimal:n{#3#2pt/10}~0~0~1~0~0~cm~
       1~0~0~1~-1~0~cm~
@@ -184,8 +190,11 @@
       1~0~.25~0~0~-1~c~
       S~
       Q~
+      Q~
+      q~
       0~0~m~
       -1~0~0~1~0~0~cm~
+      \fp_use:c{g_@@_line_width}~w~
       \dim_to_decimal:n{#3#1}~0~l~S~
       Q
     }
@@ -193,7 +202,7 @@
     \tex_special:D {"~
       1~setlinecap~1~setlinejoin~
       1~0~0~\dim_to_decimal:n{#3#2pt/10}~0~0~6~array~astore~concat~
-      .3~setlinewidth~
+      \fp_use:c{g_@@_line_width}~setlinewidth~
       gsave~
       \dim_to_decimal:n{#3#2pt/10}~0~0~1~0~0~6~array~astore~concat~
       1~0~0~1~-1~0~6~array~astore~concat~
@@ -216,7 +225,7 @@
 
 \cs_new:Nn \__@@_arrow_draw_pgf:nnn {
   \begin{pgfpicture}
-    \pgfsetlinewidth{#2pt/30}
+    \pgfsetlinewidth{#2pt*\fp_use:c{g_@@_line_width}/10}
     \pgfsetarrowsstart
       {Computer~Modern~Rightarrow[width=#2pt*2/10,length=#2pt/10,sharp]}
     % \pgfsetarrowsstart{\tl_use:N \g_@@_pgf_arrow_style_tl}
@@ -244,6 +253,7 @@
 % \end{macro}
 
 % The core functions.
+% \changes{2020/05/08}{2020/05/08}{Reset tabskip. Fixes spacing in aligned environments}
 % \begin{macro}{\__@@_arrow_overset_style:Nnncnnn,\__@@_arrow_overset:nnnnn}
 %    \begin{macrocode}
 \cs_new:Npn \__@@_arrow_overset_style:Nnncnnn #1#2#3#4#5#6#7 {
@@ -252,6 +262,7 @@
   \vbox:n {
     \tex_lineskiplimit:D = \maxdimen
     \tex_baselineskip:D = 0pt
+    \tex_tabskip:D = 0pt
     \tex_lineskip:D = \dim_eval:n {\l_tmpa_dim * 3/2 + #7}
     \tex_halign:D { ## \tex_cr:D
       \skip_horizontal:n {\l_tmpa_dim / 2}
@@ -370,6 +381,8 @@
   presets .initial:n = {abc, ABC, cAcBcC},
   tweaks .bool_set:N = \g_@@_tweak_shortcuts_bool,
   tweaks .initial:n = {true},
+  linewidth .fp_set:N = \g_@@_line_width,
+  linewidth .initial:n = {.3},
 }
 \ProcessKeysPackageOptions{letterswitharrows}
 %    \end{macrocode}

Modified: trunk/Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty	2021-07-19 20:15:07 UTC (rev 59992)
+++ trunk/Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty	2021-07-19 20:21:04 UTC (rev 59993)
@@ -38,9 +38,10 @@
 
 
 
+
 \NeedsTeXFormat{LaTeX2e}
 \RequirePackage{expl3}
-\ProvidesExplPackage {letterswitharrows} {2020-02-04} {} {Draw arrows over math letters.}
+\ProvidesExplPackage {letterswitharrows} {2021/07/19} {} {Draw arrows over math letters.}
 \RequirePackage{xparse,l3keys2e,mathtools}
 
 \msg_new:nnn {letterswitharrows} {pdf-only} {Only~pdf~output~is~supported.}
@@ -56,7 +57,7 @@
       q~
       1~J~1~j~
       1~0~0~\dim_to_decimal:n{#3#2pt/10}~0~0~cm~
-      .3~w~
+      \fp_use:c{g__jmt_lwa_line_width}~w~
       q~
       \dim_to_decimal:n{#3#2pt/10}~0~0~1~0~0~cm~
       1~0~0~1~-1~0~cm~
@@ -65,8 +66,11 @@
       1~0~.25~0~0~-1~c~
       S~
       Q~
+      Q~
+      q~
       0~0~m~
       -1~0~0~1~0~0~cm~
+      \fp_use:c{g__jmt_lwa_line_width}~w~
       \dim_to_decimal:n{#3#1}~0~l~S~
       Q
     }
@@ -74,7 +78,7 @@
     \tex_special:D {"~
       1~setlinecap~1~setlinejoin~
       1~0~0~\dim_to_decimal:n{#3#2pt/10}~0~0~6~array~astore~concat~
-      .3~setlinewidth~
+      \fp_use:c{g__jmt_lwa_line_width}~setlinewidth~
       gsave~
       \dim_to_decimal:n{#3#2pt/10}~0~0~1~0~0~6~array~astore~concat~
       1~0~0~1~-1~0~6~array~astore~concat~
@@ -93,7 +97,7 @@
 
 \cs_new:Nn \__jmt_lwa_arrow_draw_pgf:nnn {
   \begin{pgfpicture}
-    \pgfsetlinewidth{#2pt/30}
+    \pgfsetlinewidth{#2pt*\fp_use:c{g__jmt_lwa_line_width}/10}
     \pgfsetarrowsstart
       {Computer~Modern~Rightarrow[width=#2pt*2/10,length=#2pt/10,sharp]}
     % \pgfsetarrowsstart{\tl_use:N \g__jmt_lwa_pgf_arrow_style_tl}
@@ -124,6 +128,7 @@
   \vbox:n {
     \tex_lineskiplimit:D = \maxdimen
     \tex_baselineskip:D = 0pt
+    \tex_tabskip:D = 0pt
     \tex_lineskip:D = \dim_eval:n {\l_tmpa_dim * 3/2 + #7}
     \tex_halign:D { ## \tex_cr:D
       \skip_horizontal:n {\l_tmpa_dim / 2}
@@ -227,6 +232,8 @@
   presets .initial:n = {abc, ABC, cAcBcC},
   tweaks .bool_set:N = \g__jmt_lwa_tweak_shortcuts_bool,
   tweaks .initial:n = {true},
+  linewidth .fp_set:N = \g__jmt_lwa_line_width,
+  linewidth .initial:n = {.3},
 }
 \ProcessKeysPackageOptions{letterswitharrows}
 

Modified: trunk/Master/tlpkg/libexec/ctan2tds
===================================================================
--- trunk/Master/tlpkg/libexec/ctan2tds	2021-07-19 20:15:07 UTC (rev 59992)
+++ trunk/Master/tlpkg/libexec/ctan2tds	2021-07-19 20:21:04 UTC (rev 59993)
@@ -2984,13 +2984,13 @@
  'latex-veryshortguide' => 'latex',  # requires interaction
  'lcd'          => 'latex -translate-file=empty.tcx',   # no 8-bit
  'leaflet'	=> 'etex',
- 'letterswitharrows' => 'etex',
+ 'letterswitharrows' => 'etex-answer-y',# docstrip overwrite agony
  'listings'     => 'latex',  # requires interaction
  'lmake'        => 'latex',  # requires interaction
  'lni'		=> 'tex --8bit',
  'ltxcmds'	=> 'etex',
  'lua-typo'	=> 'etex',
- 'lua-ul'	=> 'etex-answer-y',
+ 'lua-ul'	=> 'etex-answer-y',	# https://github.com/latex3/latex2e/issues/558
  'luaindex'     => 'lualatex --shell-escape',
  'luatexja'     => 'lualatex',
  'mandi'	=> 'pdflatex-preserve-pdf',



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