| 1 |
%% |
| 2 |
%% This is file `hhline.sty', |
| 3 |
%% generated with the docstrip utility. |
| 4 |
%% |
| 5 |
%% The original source files were: |
| 6 |
%% |
| 7 |
%% hhline.dtx (with options: `package') |
| 8 |
%% |
| 9 |
%% This is a generated file. |
| 10 |
%% |
| 11 |
%% The source is maintained by the LaTeX Project team and bug |
| 12 |
%% reports for it can be opened at https://latex-project.org/bugs/ |
| 13 |
%% (but please observe conditions on bug reports sent to that address!) |
| 14 |
%% |
| 15 |
%% |
| 16 |
%% Copyright (C) 1993-2026 |
| 17 |
%% The LaTeX Project and any individual authors listed elsewhere |
| 18 |
%% in this file. |
| 19 |
%% |
| 20 |
%% This file was generated from file(s) of the Standard LaTeX `Tools Bundle'. |
| 21 |
%% -------------------------------------------------------------------------- |
| 22 |
%% |
| 23 |
%% It may be distributed and/or modified under the |
| 24 |
%% conditions of the LaTeX Project Public License, either version 1.3c |
| 25 |
%% of this license or (at your option) any later version. |
| 26 |
%% The latest version of this license is in |
| 27 |
%% https://www.latex-project.org/lppl.txt |
| 28 |
%% and version 1.3c or later is part of all distributions of LaTeX |
| 29 |
%% version 2005/12/01 or later. |
| 30 |
%% |
| 31 |
%% This file may only be distributed together with a copy of the LaTeX |
| 32 |
%% `Tools Bundle'. You may however distribute the LaTeX `Tools Bundle' |
| 33 |
%% without such generated files. |
| 34 |
%% |
| 35 |
%% The list of all files belonging to the LaTeX `Tools Bundle' is |
| 36 |
%% given in the file `manifest.txt'. |
| 37 |
%% |
| 38 |
%% File: hhline.dtx Copyright (C) 1991-1994 David Carlisle |
| 39 |
\NeedsTeXFormat{LaTeX2e} |
| 40 |
\ProvidesPackage{hhline} |
| 41 |
[2026/05/02 v2.05 Table rule package (DPC)] |
| 42 |
\def\HH@box#1#2{\vbox{% |
| 43 |
\hrule \@height \arrayrulewidth \@width #1 |
| 44 |
\vskip \doublerulesep |
| 45 |
\hrule \@height \arrayrulewidth \@width #2}} |
| 46 |
\def\HH@add#1{\toks@\expandafter{\the\toks@#1}} |
| 47 |
|
| 48 |
\def\HH@xexpast#1*#2#3#4\@@{% |
| 49 |
\@tempcnta #2 |
| 50 |
\toks@={#1}\@temptokena={#3}% |
| 51 |
\let\the@toksz\relax \let\the@toks\relax |
| 52 |
\def\@tempa{\the@toksz}% |
| 53 |
\ifnum\@tempcnta >0 \@whilenum\@tempcnta >0\do |
| 54 |
{\edef\@tempa{\@tempa\the@toks}\advance \@tempcnta \m@ne}% |
| 55 |
\let \@tempb \HH@xexpast \else |
| 56 |
\let \@tempb \HH@xexnoop \fi |
| 57 |
\def\the@toksz{\the\toks@}\def\the@toks{\the\@temptokena}% |
| 58 |
\edef\@tempa{\@tempa}% |
| 59 |
\expandafter \@tempb \@tempa #4\@@} |
| 60 |
|
| 61 |
\def\HH@xexnoop#1\@@{} |
| 62 |
\def\hhline#1{\omit\@firstamptrue\@tempswafalse |
| 63 |
\global\setbox\@ne\HH@box\doublerulesep\doublerulesep |
| 64 |
\xdef\@tempc{\ifx\extrarowheight\HH@undef\hskip-.5\arrayrulewidth\fi}% |
| 65 |
\HH@xexpast\relax#1*0x\@@\toks@{}\expandafter\HH@let\@tempa`} |
| 66 |
|
| 67 |
\def\HH@let#1{\futurelet\@tempb\HH@loop} |
| 68 |
|
| 69 |
\def\HH@loop{% |
| 70 |
\ifx\@tempb`\def\next##1{\the\toks@\UseName{tbl_gdecr_row_count:}\cr}\else\let\next\HH@let |
| 71 |
\ifx\@tempb|\if@tempswa\HH@add{\hskip\doublerulesep}\fi\@tempswatrue |
| 72 |
\HH@add{\@tempc\vline\@tempc}\else |
| 73 |
\ifx\@tempb:\if@tempswa\HH@add{\hskip\doublerulesep}\fi\@tempswatrue |
| 74 |
\HH@add{\@tempc\HH@box\arrayrulewidth\arrayrulewidth\@tempc}\else |
| 75 |
\ifx\@tempb##\if@tempswa\HH@add{\hskip\doublerulesep}\fi\@tempswatrue |
| 76 |
\HH@add{\@tempc\vline\@tempc\copy\@ne\@tempc\vline\@tempc}\else |
| 77 |
\ifx\@tempb~\@tempswafalse |
| 78 |
\if@firstamp\@firstampfalse\else\HH@add{&\omit}\fi |
| 79 |
\HH@add{\hfil}\else |
| 80 |
\ifx\@tempb-\@tempswafalse |
| 81 |
\if@firstamp\@firstampfalse\else\HH@add{&\omit}\fi |
| 82 |
\HH@add{\leaders\hrule\@height\arrayrulewidth\hfil}\else |
| 83 |
\ifx\@tempb=\@tempswafalse |
| 84 |
\if@firstamp\@firstampfalse\else\HH@add{&\omit}\fi |
| 85 |
\HH@add |
| 86 |
{\rlap{\copy\@ne}\leaders\copy\@ne\hfil\llap{\copy\@ne}}\else |
| 87 |
\ifx\@tempb t\HH@add{\rlap{\HH@box\doublerulesep\z@}}\else |
| 88 |
\ifx\@tempb b\HH@add{\rlap{\HH@box\z@\doublerulesep}}\else |
| 89 |
\ifx\@tempb\@sptoken\let\next\HH@spacelet\else |
| 90 |
\PackageWarning{hhline}% |
| 91 |
{\meaning\@tempb\space ignored in \noexpand\hhline argument% |
| 92 |
\MessageBreak}% |
| 93 |
\fi\fi\fi\fi\fi\fi\fi\fi\fi\fi |
| 94 |
\next} |
| 95 |
\lowercase{\def\HH@spacelet} {\futurelet\@tempb \HH@loop} |
| 96 |
\endinput |
| 97 |
%% |
| 98 |
%% End of file `hhline.sty'. |