texlive[72581] Master/texmf-dist: dashrulex (18oct24)

commits+karl at tug.org commits+karl at tug.org
Fri Oct 18 23:18:57 CEST 2024


Revision: 72581
          https://tug.org/svn/texlive?view=revision&revision=72581
Author:   karl
Date:     2024-10-18 23:18:57 +0200 (Fri, 18 Oct 2024)
Log Message:
-----------
dashrulex (18oct24)

Modified Paths:
--------------
    trunk/Master/texmf-dist/doc/latex/dashrulex/README.md
    trunk/Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf
    trunk/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex
    trunk/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty

Modified: trunk/Master/texmf-dist/doc/latex/dashrulex/README.md
===================================================================
--- trunk/Master/texmf-dist/doc/latex/dashrulex/README.md	2024-10-18 21:18:48 UTC (rev 72580)
+++ trunk/Master/texmf-dist/doc/latex/dashrulex/README.md	2024-10-18 21:18:57 UTC (rev 72581)
@@ -1,5 +1,5 @@
 # The `dashrulex` package
-Draw dashed rules (v1.01b)
+Draw dashed rules (v1.01c)
 
 ## Abstract
 The `dashrulex` package provides a flexible solution for drawing dashed rules in the body, and currently provides two commands `\hdashrule` and `\hanyrule`. It's written in LaTeX3 and can be used as an alternative to the `dashrule` package.

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

Modified: trunk/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex
===================================================================
--- trunk/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex	2024-10-18 21:18:48 UTC (rev 72580)
+++ trunk/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex	2024-10-18 21:18:57 UTC (rev 72581)
@@ -6,8 +6,8 @@
   {
     package           = dashrulex,
     title             = dashrulex,
-    version           = v1.01b,
-    date              = 2024/10/14,
+    version           = v1.01c,
+    date              = 2024/10/15,
     authors           = Qu Yi,
     title             = \dashrulex{} package,
     info              = Draw dashed rules,
@@ -52,7 +52,7 @@
 \section{User commands}
 \begin{commands}
   \command{hdashrule}[\oarg{raise}\oarg{leader}\marg{width}\marg{thickness list}\marg{dash rules}]
-  The command to draw horizontal dashed rules, based on the \cs{rule} command, and the same as the \cs{rule} command when the \meta{dash rules} are empty. \meta{raise} is the vertical offset of the rule. \meta{leader} is the alignment of the dashed line fill, which can be empty, \code{c}, or \code{x} (the \textcolor{red}{default}), corresponding to the \cs{leaders}, \cs{cleaders}, and \cs{xleaders} commands, respectively. \meta{width} is the length of the dashed line, which can be set to \cs{fill} when used to fill the remaining part of the current text line. \meta{thickness list} is a rule for the height of \textcolor{red}{vertical} lines, separated by \textcolor{red}{commas} and written as \splitmeta{height 1}{height a}\code{,...}, where \meta{height 1} denotes the height of a solid line and \meta{height a} denotes the height of a blank space. \meta{dash rules} stands for \textcolor{red}{horizontal} dashed line rules, which expressed as \splitmeta[\code{|}]{length 1}{length a}\code{,}\splitmeta[\code{|}]{length 2}{length b}\code{,...}, where \meta{length 1} represents the length of the solid line and \meta{length a} represents the length of the blank space, such as \code{5pt|2pt,3pt}, if the blank space is empty, then it is equal to the solid line length.
+  The command to draw horizontal dashed rules, based on the \cs{rule} command, and the same as the \cs{rule} command when the \meta{dash rules} are empty. \meta{raise} is the vertical offset of the rule. \meta{leader} is the alignment of the dashed line fill, which can be empty, \code{c}, or \code{x} (the \textcolor{red}{default}), corresponding to the \cs{leaders}, \cs{cleaders}, and \cs{xleaders} commands, respectively. \meta{width} is the length of the dashed line, which can be set to \cs{fill} when used to fill the remaining part of the current text line. \meta{thickness list} is a rule for the height of \textcolor{red}{vertical} lines, separated by \textcolor{red}{commas} and written as \fbox{\splitmeta{height 1}{height a}\code{,...}}, where \meta{height 1} denotes the height of a solid line and \meta{height a} denotes the height of a blank space. \meta{dash rules} stands for \textcolor{red}{horizontal} dashed line rules, which expressed as \fbox{\splitmeta[\code{|}]{length 1}{length a}\code{,}\splitmeta[\code{|}]{length 2}{length b}\code{,...}}, where \meta{length 1} represents the length of the solid line and \meta{length a} represents the length of the blank space, such as \fbox{\code{5pt|2pt,3pt}}, if the blank space is empty, then it is equal to the solid line length.
 \begin{demohigh}
 1X\rule{2cm}{1pt}x \\
 2X\hdashrule{2cm}{1pt}{}x \\
@@ -97,4 +97,4 @@
 \nocite{*}
 \AddToHook{cmd/printindex/before}{\clearpage}
 
-\end{document}
+\end{document}
\ No newline at end of file

Modified: trunk/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty	2024-10-18 21:18:48 UTC (rev 72580)
+++ trunk/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty	2024-10-18 21:18:57 UTC (rev 72581)
@@ -9,7 +9,7 @@
 %   https://creativecommons.org/licenses/by/4.0/legalcode
 \NeedsTeXFormat{LaTeX2e}[2012/02/12]
 \RequirePackage{xparse}
-\ProvidesExplPackage{dashrulex}{2024/10/14}{1.01b}
+\ProvidesExplPackage{dashrulex}{2024/10/15}{1.01c}
   {Draw dashed rules}
 \DeclareDocumentCommand{\hdashrule}{O{0pt}O{x}mmm}
   {
@@ -16,15 +16,16 @@
     \tl_if_blank:nTF {#5}
       { \rule[#1]{#3}{#4} }
       {
-        \mbox{}
-        \use:c { #2leaders }
-        \hbox:n
+        \mbox
           {
-            \clist_map_inline:nn {#5}
-              { \drx at parse@dash{#1}{#4}{##1} }
+            \use:c { #2leaders }
+            \hbox:n
+              {
+                \clist_map_inline:nn {#5}
+                  { \drx at parse@dash{#1}{#4}{##1} }
+              }
+            \skip_horizontal:n {#3}
           }
-        \skip_horizontal:n {#3}
-        \mbox{}
       }
   }
 \NewDocumentCommand{\drx at parse@dash}
@@ -38,11 +39,12 @@
   }
 \NewDocumentCommand{\hanyrule}{O{x}mm}
   {
-    \mbox{}
-    \use:c { #1leaders }
-    \hbox:n { \clist_map_inline:nn {#3} {##1} }
-    \skip_horizontal:n {#2}
-    \mbox{}
+    \mbox
+      {
+        \use:c { #1leaders }
+        \hbox:n { \clist_map_inline:nn {#3} {##1} }
+        \skip_horizontal:n {#2}
+      }
   }
 
 \int_new:N \l__drx_vrule_counter_int
@@ -88,4 +90,4 @@
   }
 \endinput
 %
-% End of file `dashrulex.sty'.
+% End of file `dashrulex.sty'.
\ No newline at end of file



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