diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty | 15 |
1 files changed, 11 insertions, 4 deletions
diff --git a/Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty b/Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty index edecd094b38..a22a7cabd4a 100644 --- a/Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty +++ b/Master/texmf-dist/tex/latex/letterswitharrows/letterswitharrows.sty @@ -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} |