matrix/tabular with 12 columns...
- From: hotmail_spam@xxxxxxxxxxx (Martin Jørgensen)
- Date: 24 Jun 2006 20:56:04 +0200
Hi,
I have not used big matrices with 12 columns before and generally I haven't
used them much, but now LaTeX seem to complain something about too many
columns (that's what I figured out from google)...
Moreover the column width is not constant and I don't know what to do about
this error:
?
! Extra alignment tab has been changed to \cr.
<recently read> \endtemplate
The minimal example is "ready to go". Just copy/paste the code. All kinds of
improvements are most welcome. If you can make it look like a million dollar,
then that would be great, but if you can make it look decent that's far enough
for me :-)
I don't know which of the two solutions you would pick ; I think solution
number 2 is the better one, but solution number 1 also has its
strengths.... Solution number 2 seem not capable of dealing with 12
columns?
----------
\documentclass[a4paper]{article}
\usepackage{amsmath}
\begin{document}
\begin{gather}
\begin{tabular}{|c|c|c|c|c|c|c|c|c|c|c|c|}
\hline
$B_1$ & $C_1$ & & $E_1$ & & & & & & & & \\
\hline
$A_2$ & $B_2$ & $C_2$ & & $E_2$ & & & & & & & \\
\hline
& $A_3$ & $B_3$ & & & $E_3$ & & & & & & \\
\hline
$D_4$ & & & $B_4$ & $C_4$ & & $E_4$ & & & & & \\
\hline
& $D_5$ & & $A_5$ & $B_5$ & $C_5$ & & $E_5$ & & & & \\
\hline
& & $D_6$ & & $A_6$ & $B_6$ & & & $E_6$ & & & \\
\hline
& & & $D_7$ & & & $B_7$ & $C_7$ & & $E_7$ & & \\
\hline
& & & & $D_8$ & & $A_8$ & $B_8$ & $C_8$ & & $E_8$ & \\
\hline
& & & & & $D_9$ & & $A_9$ & $B_9$ & & & $E_9$ \\
\hline
& & & & & & $D_{10}$& & & $B_{10}$ & $C_{10}$ & \\
\hline
& & & & & & & $D_{11}$& & $A_{11}$ & $B_{11}$ & $C_{11}$ \\
\hline
& & & & & & & & $D_{12}$& & $A_{12}$& $B_{12}$\\
\hline
\end{tabular}
\end{gather}
\footnotesize % this had no effect at all (still too few columns)....
\[
\begin{pmatrix}
B_1 & C_1 & & E_1 & & & & & & & & \\
A_2 & B_2 & C_2 & & E_2 & & & & & & & \\
& A_3 & B_3 & & & E_3 & & & & & & \\
D_4 & & & B_4 & C_4 & & E_4 & & & & & \\
& D_5 & & A_5 & B_5 & C_5 & & E_5 & & & & \\
& & D_6 & & A_6 & B_6 & & & E_6 & & & \\
& & & D_7 & & & B_7 & C_7 & & E_7 & & \\
& & & & D_8 & & A_8 & B_8 & C_8 & & E_8 & \\
& & & & & D_9 & & A_9 & B_9 & & & E_9 \\
& & & & & &D_{10}& & &B_{10}&C_{10}& \\
& & & & & & &D_{11}& &A_{11}&B_{11}& C_{11} \\
& & & & & & & &D_{12}& &A_{12}& B_{12} \\
\end{pmatrix}
\]
\normalsize
\end{document}
----------
Best regards
Martin Jørgensen
--
---------------------------------------------------------------------------
Home of Martin Jørgensen - http://www.martinjoergensen.dk
.
- Follow-Ups:
- Re: matrix/tabular with 12 columns...
- From: Herbert Voss
- Re: matrix/tabular with 12 columns...
- Prev by Date: LaTeX + SCons, construction tool
- Next by Date: Re: showing bonding boxes for PFG figures in a dvi viewer
- Previous by thread: LaTeX + SCons, construction tool
- Next by thread: Re: matrix/tabular with 12 columns...
- Index(es):
Relevant Pages
|
Loading