[OS X TeX] table help

Alain Schremmer Schremmer.Alain at verizon.net
Fri May 20 18:45:42 CEST 2005



Jason Davies wrote:

>>Here's a commented sample.
>>    
>>
>
>
>actually now I think of it, one thing I would like is to vary the
>columns thus
>
>Big Topic A&Big Topic B (two columns, with vertical line between)
>Sub-topic of A1, sub-topic of A2, sub-topic of B1, sub-topic of B2
>(three vertical lines for 4 columns, and henceforth like that.)
>
>should I just put two together with no gaps?
>
>anyway, experimenting now...will no doubt solve it just as a reply comes
>in..:-)
>  
>

Here is an example in a format I find easier to handle.

\begin{center}
\begin{tabular}{lccc}
\toprule
%Row0
$\spadesuit$ Over the \emph{counter}, we \emph{look} at:
& \hspace{3mm}
& \multicolumn{2}{l}{\ding{118} On the \emph{board}, we \emph{write}:}
%& \multicolumn{2}{l}{\ding{118} On the \emph{board}, we \emph{write}:}
\\
\midrule
%Row0

& 
& \hspace{10mm}$\denom{Jack}$
& $\denom{Jill}$
\\
\cline{3-4}
%Row1
\NUMBER{five} \object{dollars \;\;from-Jack-to-Jill}
& 
& \multicolumn{2}{c}{$+5\;\denom{Washingtons}$}
%& \multicolumn{2}{c}{$+5\;\denom{Washingtons}$}
\\
%Row2
\NUMBER{three} \object{dollars \;\;from-Jill-to-Jack}
& 
& \multicolumn{2}{c}{$-3\;\denom{Washingtons}$}
%& \multicolumn{2}{c}{$-3\;\denom{Washingtons}$}
\\
\bottomrule
\end{tabular}
\end{center}

I start with a modification of Will Robertson's macro that gives me 
this: (The boxes stand for Apple's apple, option shift K which I like 
because it is very visible in the source and invisible in /my/ pdf—but 
not in everbody's!!

\begin{center}
\begin{tabular}{lccc}
\toprule
%Row0

& 
& 
& 
\\
\midrule
%Row0

& 
& 
& 
\\
%Row1

& 
& 
& 
\\
%Row2

& 
& 
& 
\\
\bottomrule
\end{tabular}
\end{center}

Then, I tinker with it.
The repeated lines commented out help me keep track of the count when I 
enter the "multicolumns".
Let me know if you want other examples.

Regards
--schremmer



--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list