summaryrefslogtreecommitdiff
path: root/macros/latex/contrib/cweb/cwebarray.sty
blob: 1eb73a0d48b5623345692fd4534b09c8f3977cf9 (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
% $Id: cwebarray.sty,v 1.2 1995/08/08 00:14:31 schrod Exp $
%----------------------------------------------------------------------

%
% LaTeX style option cwebarray
% depends on array style option
%
% [LaTeX]
% (history at end)

\ProvidesPackage{cwebarray}


%
% What's this style option for?
%
% If you use CWEB, you cannot use vertical bars (`|') as rule specifiers in
% tables any more; CWEAVE processes them already. This style option
% defines `I' (that's an uppercase i) as a replacement for the
% vertical bar.
%
% I.e., write
%
%	\begin{tabular}{lIl}
%
% instead of \begin{tabular}{l|l}.

% This option won't work without the array style.

\ifx \d@llarbegin\undefined
    \RequirePackage{array}
\fi

\newcolumntype{I}{|}



%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% $Log: cwebarray.sty,v $
% Revision 1.2  1995/08/08  00:14:31  schrod
% Updated to \LaTeXe{}, the |cweb| style is now a document class. Used
% my standard templates for that, no changes in functionality.
%
% Revision 1.1  1993/08/09  18:05:55  schrod
%     Mentioned that `|' cannot be used for LaTeX purposes, in
% particular, not for ruled tables. Described workarounds, one of them
% is the new style option cwebarray.
% [Reported by Felix G\"artner]
%