diff options
author | Karl Berry <karl@freefriends.org> | 2024-03-18 20:00:47 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2024-03-18 20:00:47 +0000 |
commit | 74c4f26ba81ba58b3ce728796bcb6a94d03800af (patch) | |
tree | e2ceeccb806eb4aa128af965dbd1fbe780d95a80 /Master/texmf-dist | |
parent | 113b31861adfc3df75e817843b8e9d13dcd770b4 (diff) |
dashrulex (18mar24)
git-svn-id: svn://tug.org/texlive/trunk@70693 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist')
-rw-r--r-- | Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf | bin | 54472 -> 56156 bytes | |||
-rw-r--r-- | Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex | 28 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty | 4 |
3 files changed, 21 insertions, 11 deletions
diff --git a/Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf b/Master/texmf-dist/doc/latex/dashrulex/dashrulex.pdf Binary files differindex 71e4597be0d..e38ec5a63dc 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 1d4ce592b96..acf2025a28f 100644 --- a/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex +++ b/Master/texmf-dist/doc/latex/dashrulex/dashrulex.tex @@ -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@163.com, @@ -49,7 +49,7 @@ Sometimes it is necessary to draw dashed rules when writing documents, such as g \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 @@ 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} - 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} diff --git a/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty b/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty index aba9f203d3f..4b476963e69 100644 --- a/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty +++ b/Master/texmf-dist/tex/latex/dashrulex/dashrulex.sty @@ -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} |