summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/tabularborder/tabularborder.sty
blob: 428a055d87e298b77c2546d3f7b1be6976919b56 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
%%
%% This is file `tabularborder.sty',
%% generated with the docstrip utility.
%%
%% The original source files were:
%%
%% tabularborder.dtx  (with options: `package')
%% 
%% This is a generated file.
%% Copyright (C) Johannes Fink
%% 
%% This file may  be distributed and/or modified under the
%% conditions of the LaTeX Project Public License, either version
%% 1.2 of this license or (at your option) any later version. The
%% latest version of this license is in:
%% http://www.latex-project.org/lppl.txt and version 1.2 or later is
%% part of all distributions of LaTeX version 1999/12/01 or later.
%% 
\NeedsTeXFormat{LaTeX2e}[1999/12/01]
\ProvidesPackage{tabularborder}
 [2010/04/14 v1.0a Tabular without border]
\RequirePackage{booktabs}
\RequirePackage{array}[2003/12/17 v2.4a Tabular extension package (FMi)]
\newcommand{\tb@ialign}{\everycr{}\tabskip-\col@sep\halign}
\newcommand{\tb@tbtabarray}{\@ifnextchar[{\tb@array}{\tb@array[c]}}
\def\@tabular{%
  \leavevmode
  \hbox \bgroup $\col@sep\tabcolsep \let\d@llarbegin\begingroup
                                    \let\d@llarend\endgroup
  \@tb@tbtabarray}
\newcommand{\@tb@tbtabarray}{}
\newcommand{\tbon}{\global\let\@tb@tbtabarray\tb@tbtabarray}
\tbon
\newcommand{\tboff}{\global\let\@tb@tbtabarray\@tabarray}
\newcommand{\tb@array}{}
\def\tb@array[#1]#2{%
  \@tempdima \ht \strutbox
  \advance \@tempdima by\extrarowheight
  \setbox \@arstrutbox \hbox{\vrule
             \@height \arraystretch \@tempdima
             \@depth \arraystretch \dp \strutbox
             \@width \z@}%
  \begingroup
  \@mkpream{#2}%
  \xdef\@preamble{\noexpand \tb@ialign \@halignto
                  \bgroup \@arstrut \tabskip \z@skip \@preamble
                          \tabskip-\col@sep \cr}%
  \endgroup
  \@arrayleft
  \if #1t\vtop \else \if#1b\vbox \else \vcenter \fi \fi
  \bgroup
  \let \@sharp ##\let \protect \relax
  \lineskip \z@
  \baselineskip \z@
  \m@th
  \let\\\@arraycr \let\tabularnewline\\\let\par\@empty \@preamble}
\ifdefined\tabcolwidthi\else\newlength{\tabcolwidthi}\fi
\ifdefined\tabcolwidthii\else\newlength{\tabcolwidthii}\fi
\ifdefined\tabcolwidthiii\else\newlength{\tabcolwidthiii}\fi
\ifdefined\tabcolwidthiv\else\newlength{\tabcolwidthiv}\fi
\setlength{\tabcolwidthi}{\textwidth}
\addtolength{\tabcolwidthi}{-0\tabcolsep}
\setlength{\tabcolwidthii}{\textwidth}
\addtolength{\tabcolwidthii}{-2\tabcolsep}
\setlength{\tabcolwidthiii}{\textwidth}
\addtolength{\tabcolwidthiii}{-4\tabcolsep}
\setlength{\tabcolwidthiv}{\textwidth}
\addtolength{\tabcolwidthiv}{-6\tabcolsep}
\endinput
%%
%% End of file `tabularborder.sty'.