diff options
author | Karl Berry <karl@freefriends.org> | 2024-03-25 19:57:40 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-03-25 19:57:40 +0000 |
commit | 1df9757a556cb9ee54bae296c3400333d036156d (patch) | |
tree | 4c8dad8c0ed8ef0981a9b1adf9b9d6a940065d5f | |
parent | 5a79ff5b7d737d9dd2670ceb7685caf81e9b66c2 (diff) |
dashrulex (25mar24)
git-svn-id: svn://tug.org/texlive/trunk@70762 c570f23f-e606-0410-a88d-b1316a301751
-rw-r--r-- | Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf | bin | 58949 -> 58940 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex | 8 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty | 5 |
3 files changed, 6 insertions, 7 deletions
diff --git a/Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf b/Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf Binary files differindex 5ed12594f63..376eb91c90b 100644 --- a/Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf +++ b/Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf diff --git a/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex b/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex index fdb4fd69fc6..06655a53e68 100644 --- a/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex +++ b/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex @@ -6,8 +6,8 @@ { package = dashrulex, title = the dashrulex package, - version = v1.00b, - date = 2024/03/18, + version = v1.00c, + date = 2024/03/25, authors = Qu Yi, info = Draw dashed rules, email = toquyi@163.com, @@ -67,7 +67,7 @@ Sometimes it is necessary to draw dashed rules when writing documents, such as g \command{hanyrule}[\oarg{leader}\marg{width}\marg{symbol list}] This command sets the length of the dotted rule and fills it with arbitrary symbols. \meta{symbol list} can be more than one symbol and they are separated by \textcolor{red}{commas}. Symbols are best packed in boxes of a certain length, as spacing between symbols is not provided. \begin{example} - \newcommand{\dblelement} + \newcommand{\dblvmod} {% \tikz[color=blue] { @@ -82,7 +82,7 @@ Sometimes it is necessary to draw dashed rules when writing documents, such as g 5X\hanyrule[x]{5cm}{\makebox[8pt]{$\cdot$}}x \\ 6X\hanyrule[x]{5cm}{\makebox[8pt]{$\cdot$},\makebox[8pt]{$\circ$}}x \\ 7X\hanyrule[x]{5cm}{\makebox[5mm]{\vrulemod{3mm}{2pt,1pt,1pt}}}x \\ - 8X\hanyrule[x]{5cm}{\makebox[5mm]{\dblelement}}x + 8X\hanyrule[x]{5cm}{\makebox[5mm]{\dblvmod}}x \end{example} \end{commands} diff --git a/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty b/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty index 58c104c0e1f..915d61a0d1e 100644 --- a/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty +++ b/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty @@ -9,7 +9,7 @@ % https://creativecommons.org/licenses/by/4.0/legalcode \NeedsTeXFormat{LaTeX2e}[2012/02/12] \RequirePackage{xparse} -\ProvidesExplPackage{dashrulex}{2024/03/18}{1.00b} +\ProvidesExplPackage{dashrulex}{2024/03/25}{1.00c} {Draw dashed rules} \DeclareDocumentCommand{\hdashrule}{O{0pt}O{x}mmm} { @@ -57,12 +57,11 @@ \NewDocumentCommand{\vrulemod}{O{0pt}oomm} { \group_begin: - \IfValueTF{#2} + \IfValueT{#2} { \tl_set:Nn \l__drx_tmpa_tl { [#2] } \IfValueT{#3}{\tl_put_right:Nn \l__drx_tmpa_tl { [#3] }} } - {\IfValueT{#3}{\tl_set:Nn \l__drx_tmpa_tl { [#3] }}} \exp_last_unbraced:Nnf \raisebox{#1}{\l__drx_tmpa_tl} { |