diff options
Diffstat (limited to 'Master/texmf-dist/tex/latex/shipunov/boldline.sty')
-rw-r--r-- | Master/texmf-dist/tex/latex/shipunov/boldline.sty | 78 |
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 |