[OS X TeX] table in math mode
Alain Schremmer
schremmer.alain at gmail.com
Tue Jan 6 14:52:22 EST 2009
On Jan 6, 2009, at 12:44 PM, Joseph C. Slater wrote:
> \begin{displaymath}
> \begin{array}{|c|c|}
> \hline
> a & \alpha \\
> \hline
> c & d \\
> \hline
> \end{array}
> \end{displaymath}
On Jan 6, 2009, at 12:56 PM, Alan Munn wrote:
> Use the array package and define a columntype for math:
>
> \documentclass{article}
> \usepackage{array}
> \usepackage{amsmath}
> \begin{document}
> \newcolumntype{M}{>{$}c<{$}}
> \begin{tabular}{MMM}
> \text{Heading} & \text{Heading} & \text{Heading}\\
> \alpha & \sigma^{2} & a^{2} + b^{2}\\
> \end{tabular}
> \end{document}
As it just turned out, I can't give either one a try right now.
In the meantime,
Very grateful regards
--schremmer
More information about the MacOSX-TeX
mailing list