summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/shipunov/boldline.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2008-02-19 17:05:28 +0000
committerKarl Berry <karl@freefriends.org>2008-02-19 17:05:28 +0000
commitcf4d2164c6ed64dccbe7d8abdd8b0c95f8509a1c (patch)
treeadbb0d174b4ab3c017b085367d946ad7ba3b417b /Master/texmf-dist/tex/latex/shipunov/boldline.sty
parentf95f16133feaac8dd66077e38d247937f819c815 (diff)
new latex collection shipunov (18feb08)
git-svn-id: svn://tug.org/texlive/trunk@6680 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/shipunov/boldline.sty')
-rw-r--r--Master/texmf-dist/tex/latex/shipunov/boldline.sty78
1 files changed, 78 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/shipunov/boldline.sty b/Master/texmf-dist/tex/latex/shipunov/boldline.sty
new file mode 100644
index 00000000000..28a830ebb18
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/shipunov/boldline.sty
@@ -0,0 +1,78 @@
+% Author: Alexey B. Shipunov (plantago@herba.msu.ru)
+
+\ProvidesPackage{boldline}%
+ [2008/02/04 v0.2 Adjust line width in tables]
+
+\RequirePackage{array}
+
+% Vertical lines
+\newcolumntype{V}[1]{!{\vrule\@width #1\arrayrulewidth}}
+
+% Horizontal lines
+% Addition to \hline
+\def\hlineB#1{%
+ \noalign{\ifnum0=`}\fi\hrule \@height #1\arrayrulewidth
+\futurelet \reserved@a\@xhlineB{#1}}
+
+\def\@xhlineB#1{\ifx\reserved@a\hlineB
+ \vskip\doublerulesep
+ \vskip-#1\arrayrulewidth
+ \fi
+ \ifnum0=`{\fi}}
+
+% Addition to \cline
+\def\clineB#1#2{\@clineB#1[#2]\@nil}
+\def\@clineB#1-#2[#3]\@nil{%
+ \omit
+ \@multicnt#1%
+ \global\def\Mag@B{#3}%
+ \advance\@multispan\m@ne
+ \ifnum\@multicnt=\@ne\@firstofone{&\omit}\fi
+ \@multicnt#2%
+ \advance\@multicnt-#1%
+ \advance\@multispan\@ne
+ \leaders\hrule\@height \Mag@B\arrayrulewidth\hfill
+ \cr
+ \noalign{\vskip-\Mag@B\arrayrulewidth}}
+
+% For "longtable", input AFTER longtable!
+\@ifundefined{longtable}{}{%
+\def\LT@hlineB{%
+ \noalign{\ifnum0=`}\fi
+ \penalty\@M
+ \futurelet\@let@token\LT@@hlineB}
+\def\LT@@hlineB#1{%
+ \ifx\@let@token\hlineB
+ \global\let\@gtempa\@gobble
+ \gdef\LT@sep{\penalty-\@medpenalty\vskip\doublerulesep}%
+ \else
+ \global\let\@gtempa\@empty
+ \gdef\LT@sep{\penalty-\@lowpenalty\vskip-#1\arrayrulewidth}%
+ \fi
+ \ifnum0=`{\fi}%
+ \multispan\LT@cols
+ \unskip\leaders\hrule\@height #1\arrayrulewidth\hfill\cr
+ \noalign{\LT@sep}%
+ \multispan\LT@cols
+ \unskip\leaders\hrule\@height #1\arrayrulewidth\hfill\cr
+ \noalign{\penalty\@M}%
+ \@gtempa}
+\let\longtable@TMP\longtable
+\def\longtable{%
+\let\hlineB\LT@hlineB
+\longtable@TMP}
+}
+
+% For "mdwtab", input AFTER mdwtab!
+\@ifundefined{hlx}{}{%
+\def\hlxB#1{%
+ \multispan{\tab@columns}%
+ \leaders\hrule\@height #1\arrayrulewidth\hfil%
+ \tab@addruleheight\arrayrulewidth%
+ \cr%
+ \noalign{\ifnum0=`}\fi%
+ \tab@penalty%
+ \futurelet\@let@token\hline@i}
+}
+
+\endinput