texlive[70693] Master/texmf-dist: dashrulex (18mar24)
commits+karl at tug.org
commits+karl at tug.org
Mon Mar 18 21:00:47 CET 2024
Revision: 70693
https://tug.org/svn/texlive?view=revision&revision=70693
Author: karl
Date: 2024-03-18 21:00:47 +0100 (Mon, 18 Mar 2024)
Log Message:
-----------
dashrulex (18mar24)
Modified Paths:
--------------
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/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-03-18 20:00:37 UTC (rev 70692)
+++ trunk/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex 2024-03-18 20:00:47 UTC (rev 70693)
@@ -1,13 +1,13 @@
\documentclass[load-preamble+]{cnltx-doc}
-\usepackage{setspace,hologo,dashrulex}
+\usepackage{setspace,hologo,dashrulex,tikz}
\usepackage[noto]{newtxmath}
\setcnltx
{
package = dashrulex,
title = the dashrulex package,
- version = v1.00,
- date = 2024/03/16,
+ version = v1.00a,
+ date = 2024/03/17,
authors = Qu Yi,
info = Draw dashed rules,
email = toquyi at 163.com,
@@ -49,7 +49,7 @@
\section{User commands}
\begin{commands}
\command{hdashrule}[\oarg{raise}\oarg{leader}\marg{width}\marg{thickness}\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 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 default), corresponding to the \cs{leaders}, \cs{cleaders}, and \cs{xleaders} commands, respectively. \meta{width} is the length of the dashed rule, which can be set to \cs{fill} to indicate an arbitrarily long distance when you need to fill the entire horizontal center of the plate. \meta{dash rules} is 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 empty space, such as \code{5pt|2pt,3pt}, if the empty 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 default), corresponding to the \cs{leaders}, \cs{cleaders}, and \cs{xleaders} commands, respectively. \meta{width} is the length of the dashed rule, which can be set to \cs{fill} to indicate an arbitrarily long distance when you need to fill the entire horizontal center of the plate. \meta{dash rules} is 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 empty space, such as \code{5pt|2pt,3pt}, if the empty space is empty, then it is equal to the solid line length.
\begin{example}
1X\rule{2cm}{1pt}x \\
2X\hdashrule{2cm}{1pt}{}x \\
@@ -64,11 +64,21 @@
\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}
- 1X\hanyrule[]{5cm}{\makebox[6pt][l]{$\cdot$}}x \\
- 2X\hanyrule[c]{5cm}{\makebox[6pt][l]{$\cdot$}}x \\
- 3X\hanyrule[x]{5cm}{\makebox[6pt][l]{$\cdot$}}x \\
- 4X\hanyrule[x]{5cm}{\makebox[6pt][c]{$\cdot$}}x \\
- 5X\hanyrule[x]{5cm}{\makebox[6pt][c]{$\cdot$},\makebox[6pt]{$\circ$}}x
+ \newcommand{\dblelement}
+ {%
+ \tikz[color=blue]
+ {
+ \draw[line width=0.8mm](0mm,1.1mm)--(3mm,1.1mm);
+ \draw[line width=0.3mm](0mm,0mm)--(3mm,0mm);
+ }%
+ }
+ 1X\hanyrule[]{5cm}{\makebox[8pt][l]{$\cdot$}}x \\
+ 2X\hanyrule[c]{5cm}{\makebox[8pt][l]{$\cdot$}}x \\
+ 3X\hanyrule[x]{5cm}{\makebox[8pt][l]{$\cdot$}}x \\
+ 4X\hanyrule[c]{5cm}{\makebox[8pt]{$\cdot$}}x \\
+ 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]{\dblelement}}x
\end{example}
\end{commands}
Modified: trunk/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty
===================================================================
--- trunk/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty 2024-03-18 20:00:37 UTC (rev 70692)
+++ trunk/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty 2024-03-18 20:00:47 UTC (rev 70693)
@@ -9,8 +9,8 @@
% https://creativecommons.org/licenses/by/4.0/legalcode
\NeedsTeXFormat{LaTeX2e}[2012/02/12]
\RequirePackage{xparse}
-\ProvidesExplPackage{dashrulex}{2024/03/16}{1.00}
- {Customize superscripts and subscripts}
+\ProvidesExplPackage{dashrulex}{2024/03/17}{1.00a}
+ {Draw dashed rules}
\DeclareDocumentCommand{\hdashrule}{O{0pt}O{x}mmm}
{
\tl_if_blank:nTF {#5}
More information about the tex-live-commits
mailing list.