[OS X TeX] Partial Vertical Lines in Tables?
Luis Sequeira
lfsequeira at gmail.com
Thu May 8 16:59:41 CEST 2008
>
> Is there a command similar to \cline{i-j}
> to control the scope of vertical lines within tables?
>
>
> AJG Baeumel mailto:ajgB at st-maurices.n-lanark.sch.uk
AFAIK, the standard way to deal with a table where you have vertical
lines that occur in some rows but not others is to use the
\multicolumn command:
1) Define, as usual, the general layout of your table in the argument
to the tabular environment
2) Override, as needed, for each appropriate entry. The \multicolumn
command can not only define an entry that spans several columns, but
also define an entry that spans a single cell but with a different
alignment and/or vertical line specification.
Here is a quick and ugly example:
\begin{tabular}{c|c|c}
A & B & C\
D & \multicolumn{1}{c}{E} & F
\end{tabular}
In this example, there will be no vertical bar between the E and the F.
Of course, also the opposite effect (i.e. adding a vertical bar where
one was not present in the template) can be just as easily achieved.
Luis Sequeira
More information about the macostex-archives
mailing list