]> AND Private Git Repository - prnggpu1.git/blob - booktabs.sty
Logo AND Algorithmique Numérique Distribuée

Private GIT Repository
initialisation
[prnggpu1.git] / booktabs.sty
1 %%\r
2 %% This is file `booktabs.sty',\r
3 %% generated with the docstrip utility.\r
4 %%\r
5 %% The original source files were:\r
6 %%\r
7 %% booktabs.dtx  (with options: `package')\r
8 %% \r
9 %% -----------------------------------------------------------------\r
10 %% Author:     Simon Fear\r
11 %% Maintainer: Danie Els (dnjels@sun.ac.za)\r
12 %% \r
13 %% This file is part of the booktabs package for publication\r
14 %% quality tables for LaTeX\r
15 %% \r
16 %%       Copyright (C) 1995--2005 Simon Fear\r
17 %% \r
18 %% This program is free software; you can redistribute it and/or\r
19 %% modify it under the terms of the GNU General Public License as\r
20 %% published by the Free Software Foundation; either version 2 of\r
21 %% the License, or (at your option) any later version.\r
22 %% \r
23 %% This program is distributed in the hope that it will be useful,\r
24 %% but WITHOUT ANY WARRANTY; without even the implied warranty of\r
25 %% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the\r
26 %% GNU General Public License for more details.\r
27 %% \r
28 %% You should have received a copy of the GNU General Public\r
29 %% License along with this program; if not, write to the Free\r
30 %% Software Foundation, Inc., 59 Temple Place, Suite 330, Boston,\r
31 %% MA 02111-1307 USA\r
32 %% -----------------------------------------------------------------\r
33 \NeedsTeXFormat{LaTeX2e}[1999/12/01]\r
34 \ProvidesPackage{booktabs}\r
35     [2005/04/14 v1.61803 publication quality tables]\r
36 \newdimen\heavyrulewidth\r
37 \newdimen\lightrulewidth\r
38 \newdimen\cmidrulewidth\r
39 \newdimen\belowrulesep\r
40 \newdimen\belowbottomsep\r
41 \newdimen\aboverulesep\r
42 \newdimen\abovetopsep\r
43 \newdimen\cmidrulesep\r
44 \newdimen\cmidrulekern\r
45 \newdimen\defaultaddspace\r
46 \heavyrulewidth=.08em\r
47 \lightrulewidth=.05em\r
48 \cmidrulewidth=.03em\r
49 \belowrulesep=.65ex\r
50 \belowbottomsep=0pt\r
51 \aboverulesep=.4ex\r
52 \abovetopsep=0pt\r
53 \cmidrulesep=\doublerulesep\r
54 \cmidrulekern=.5em\r
55 \defaultaddspace=.5em\r
56 \newcount\@cmidla\r
57 \newcount\@cmidlb\r
58 \newdimen\@aboverulesep\r
59 \newdimen\@belowrulesep\r
60 \newcount\@thisruleclass\r
61 \newcount\@lastruleclass\r
62 \@lastruleclass=0\r
63 \newdimen\@thisrulewidth\r
64 \def\futurenonspacelet#1{\def\@BTcs{#1}%\r
65    \afterassignment\@BTfnslone\let\nexttoken= }\r
66 \def\@BTfnslone{\expandafter\futurelet\@BTcs\@BTfnsltwo}\r
67 \def\@BTfnsltwo{\expandafter\ifx\@BTcs\@sptoken\let\next=\@BTfnslthree\r
68    \else\let\next=\nexttoken\fi \next}\r
69 \def\@BTfnslthree{\afterassignment\@BTfnslone\let\next= }\r
70 \def\toprule{\noalign{\ifnum0=`}\fi\r
71   \@aboverulesep=\abovetopsep\r
72   \global\@belowrulesep=\belowrulesep %global cos for use in the next noalign\r
73   \global\@thisruleclass=\@ne\r
74   \@ifnextchar[{\@BTrule}{\@BTrule[\heavyrulewidth]}}\r
75 \def\midrule{\noalign{\ifnum0=`}\fi\r
76   \@aboverulesep=\aboverulesep\r
77   \global\@belowrulesep=\belowrulesep\r
78   \global\@thisruleclass=\@ne\r
79   \@ifnextchar[{\@BTrule}{\@BTrule[\lightrulewidth]}}\r
80 \def\bottomrule{\noalign{\ifnum0=`}\fi\r
81   \@aboverulesep=\aboverulesep\r
82   \global\@belowrulesep=\belowbottomsep\r
83   \global\@thisruleclass=\@ne\r
84   \@ifnextchar[{\@BTrule}{\@BTrule[\heavyrulewidth]}}\r
85 \def\specialrule#1#2#3{\noalign{\ifnum0=`}\fi\r
86   \@aboverulesep=#2\global\@belowrulesep=#3\global\@thisruleclass=\tw@\r
87   \@BTrule[#1]}\r
88 \def\addlinespace{\noalign{\ifnum0=`}\fi\r
89   \@ifnextchar[{\@addspace}{\@addspace[\defaultaddspace]}}\r
90 \def\@addspace[#1]{\global\@belowrulesep=#1\global\@thisruleclass=\tw@\r
91   \futurelet\@tempa\@BTendrule}\r
92 \def\@BTrule[#1]{%\r
93   \global\@thisrulewidth=#1\relax\r
94   \ifnum\@thisruleclass=\tw@\vskip\@aboverulesep\else\r
95   \ifnum\@lastruleclass=\z@\vskip\@aboverulesep\else\r
96   \ifnum\@lastruleclass=\@ne\vskip\doublerulesep\fi\fi\fi\r
97   \ifx\longtable\undefined\r
98      \let\@BTswitch\@BTnormal\r
99   \else\ifx\hline\LT@hline\r
100      \let\@BTswitch\@BLTrule\r
101   \else\r
102      \let\@BTswitch\@BTnormal\r
103   \fi\fi\r
104   \@BTswitch}\r
105 \AtBeginDocument{%\r
106    \providecommand*\CT@arc@{}}%% colortbl support\r
107 \def\@BTnormal{%\r
108     {\CT@arc@\hrule\@height\@thisrulewidth}%\r
109     \futurenonspacelet\@tempa\@BTendrule}\r
110 \def\@BLTrule{\@ifnextchar({\@@BLTrule}{\@@BLTrule()}}\r
111 \def\@@BLTrule(#1){\@setrulekerning{#1}%\r
112 \global\@cmidlb\LT@cols\r
113 \ifnum0=`{\fi}%\r
114 \@cmidruleb\r
115 \noalign{\ifnum0=`}\fi\r
116 \futurenonspacelet\@tempa\@BTendrule}\r
117 \def\@BTendrule{\ifx\@tempa\toprule\global\@lastruleclass=\@thisruleclass\r
118   \else\ifx\@tempa\midrule\global\@lastruleclass=\@thisruleclass\r
119   \else\ifx\@tempa\bottomrule\global\@lastruleclass=\@thisruleclass\r
120   \else\ifx\@tempa\cmidrule\global\@lastruleclass=\@thisruleclass\r
121   \else\ifx\@tempa\specialrule\global\@lastruleclass=\@thisruleclass\r
122   \else\ifx\@tempa\addlinespace\global\@lastruleclass=\@thisruleclass\r
123   \else\global\@lastruleclass=\z@\fi\fi\fi\fi\fi\fi\r
124   \ifnum\@lastruleclass=\@ne\relax\else\vskip\@belowrulesep\fi\r
125   \ifnum0=`{\fi}}\r
126 \def\@setrulekerning#1{%\r
127    \global\let\cmrkern@l\z@\r
128    \global\let\cmrkern@r\z@\r
129    \@tfor\@tempa :=#1\do\r
130   {\def\@tempb{r}%\r
131    \ifx\@tempa\@tempb\r
132       \global\let\cmrkern@r\cmidrulekern\r
133       \def\cmrsideswitch{\cmrkern@r}%\r
134    \else\r
135       \def\@tempb{l}%\r
136       \ifx\@tempa\@tempb\r
137          \global\let\cmrkern@l\cmidrulekern\r
138          \def\cmrsideswitch{\cmrkern@l}%\r
139       \else\r
140          \global\expandafter\let\cmrsideswitch\@tempa\r
141       \fi\r
142    \fi}}\r
143 \def\cmidrule{\noalign{\ifnum0=`}\fi\r
144     \@ifnextchar[{\@cmidrule}{\@cmidrule[\cmidrulewidth]}}\r
145 \def\@cmidrule[#1]{\@ifnextchar({\@@cmidrule[#1]}{\@@cmidrule[#1]()}}\r
146 \def\@@cmidrule[#1](#2)#3{\@@@cmidrule[#3]{#1}{#2}}\r
147 \def\@@@cmidrule[#1-#2]#3#4{\global\@cmidla#1\relax\r
148     \global\advance\@cmidla\m@ne\r
149     \ifnum\@cmidla>0\global\let\@gtempa\@cmidrulea\else\r
150     \global\let\@gtempa\@cmidruleb\fi\r
151     \global\@cmidlb#2\relax\r
152     \global\advance\@cmidlb-\@cmidla\r
153     \global\@thisrulewidth=#3\r
154     \@setrulekerning{#4}\r
155     \ifnum\@lastruleclass=\z@\vskip \aboverulesep\fi\r
156     \ifnum0=`{\fi}\@gtempa\r
157     \noalign{\ifnum0=`}\fi\futurenonspacelet\@tempa\@xcmidrule}\r
158 \def\@xcmidrule{%\r
159    \ifx\@tempa\cmidrule\r
160        \vskip-\@thisrulewidth\r
161        \global\@lastruleclass=\@ne\r
162    \else \ifx\@tempa\morecmidrules\r
163        \vskip \cmidrulesep\r
164        \global\@lastruleclass=\@ne\else\r
165        \vskip \belowrulesep\r
166        \global\@lastruleclass=\z@\r
167    \fi\fi\r
168    \ifnum0=`{\fi}}\r
169 \def\@cmidrulea{%\r
170    \multispan\@cmidla&\multispan\@cmidlb\r
171    \unskip\hskip\cmrkern@l%\r
172   {\CT@arc@\leaders\hrule \@height\@thisrulewidth\hfill}%\r
173    \hskip\cmrkern@r\cr}%\r
174 \def\@cmidruleb{%\r
175     \multispan\@cmidlb\r
176     \unskip\hskip \cmrkern@l%\r
177    {\CT@arc@\leaders\hrule \@height\@thisrulewidth\hfill}%\r
178     \hskip\cmrkern@r\cr}%\r
179 \def\morecmidrules{\noalign{\relax}}\r
180 \endinput\r
181 %%\r
182 %% End of file `booktabs.sty'.\r