[texhax] matrices

Hartmut Henkel hartmut_henkel at gmx.de
Wed Sep 10 00:32:07 CEST 2003


On Tue, 9 Sep 2003, Philip TAYLOR [PC336/H-XP] wrote:

> Well, presumably the only hard bit is interpolating the {ccc}
> (for $n$ c's, where $n$ is unknown in advance).

Funnily, it's not needed to give the exact number of c's as long as
there are enough of them. E. g. this seems to work, excuse the hack:

\documentclass{article}
\begin{document}
\renewcommand{\matrix}[1]{%
\left(\begin{array}{cccccccccccccccccccccccccccccccccccccccccc}
#1\end{array}\right)}
$\matrix{a \\ b}$
$\matrix{a & b \\ c & d \\ f & g}$
$\matrix{a & b & c \\ d & e & f \\ g & h & i}$
\end{document}

You need more c's?

Greetings Hartmut


------------------------------------------------------------------------
Hartmut Henkel, Oftersheim, Germany
------------------------------------------------------------------------


More information about the texhax mailing list