diff options
author | Karl Berry <karl@freefriends.org> | 2009-08-14 23:55:38 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2009-08-14 23:55:38 +0000 |
commit | 30d401dbe76f4a5e3e7d6edf4d8af9a5a279e836 (patch) | |
tree | 122dee55995bd358367bd89f55717c41f2a96822 /Master/texmf-dist/tex/latex/dashrule | |
parent | 0d16b3b7e2ce00f9de58a809a4ce47b39aaef068 (diff) |
dashrule update (9aug09)
git-svn-id: svn://tug.org/texlive/trunk@14681 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/dashrule')
-rw-r--r-- | Master/texmf-dist/tex/latex/dashrule/dashrule.sty | 42 |
1 files changed, 24 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/latex/dashrule/dashrule.sty b/Master/texmf-dist/tex/latex/dashrule/dashrule.sty index bc0d0919d0e..f9d60301ef9 100644 --- a/Master/texmf-dist/tex/latex/dashrule/dashrule.sty +++ b/Master/texmf-dist/tex/latex/dashrule/dashrule.sty @@ -8,7 +8,7 @@ %% %% This is a generated file. %% -%% Copyright (C) 2008 by Scott Pakin <scott+dash@pakin.org> +%% Copyright (C) 2009 by Scott Pakin <scott+dash@pakin.org> %% %% This file may be distributed and/or modified under the conditions of %% the LaTeX Project Public License, either version 1.3c of this license @@ -22,7 +22,8 @@ %% \NeedsTeXFormat{LaTeX2e}[1999/12/01] \ProvidesPackage{dashrule} - [2008/04/27 v1.1 Dashed rules] + [2009/08/09 v1.2 Dashed rules] +\RequirePackage{ifmtarg} \def\hdr@do@rule[#1]#2#3{% \rule[#1]{#2}{#3}% \let\hdr@do@something=\hdr@do@skip @@ -42,25 +43,30 @@ \DeclareRobustCommand{\hdashrule}{\mbox{}\@testopt{\hdashrule@i}{0pt}} \def\hdashrule@i[#1]{\@testopt{\hdashrule@ii[#1]}\empty} \def\hdashrule@ii[#1][#2]#3#4#5{% - \let\hdr@do@something=\hdr@do@rule - \def\hdr@parse@dash##1 {% - \ifx##1!% + \@ifmtarg{#5}{% + \rule[#1]{#3}{#4}% + }{% + \let\hdr@do@something=\hdr@do@rule + \def\hdr@parse@dash##1 {% + \ifx##1!% + \else + \hdr@do@something[#1]{##1}{#4}% + \expandafter\hdr@parse@dash + \fi + }% + \setcounter{hdr@segments}{0}% + \hdr@tally@segments#5 ! + \ifodd\c@hdr@segments + \csname#2leaders\endcsname + \hbox{\hdr@parse@dash#5 #5 ! }% + \hskip#3 \else - \hdr@do@something[#1]{##1}{#4}% - \expandafter\hdr@parse@dash + \csname#2leaders\endcsname + \hbox{\hdr@parse@dash#5 ! }% + \hskip#3 \fi + \mbox{}% }% - \setcounter{hdr@segments}{0}% - \hdr@tally@segments#5 ! - \ifodd\c@hdr@segments - \csname#2leaders\endcsname - \hbox{\hdr@parse@dash#5 #5 ! }% - \hskip#3\relax - \else - \csname#2leaders\endcsname - \hbox{\hdr@parse@dash#5 ! }% - \hskip#3\relax - \fi } \endinput %% |