[texhax] TeX Tables Questions
Amber K
skubesch at yahoo.com
Sun Nov 14 22:06:52 CET 2010
I would like to know how to do a multiple row header in a table (for example, for a heading that is too long to put all on one row) without having too much of a gap between the two lines. In my table below, I would like to know how to make the header "Dynamic Instructions" where the two words aren't separated so much vertically.
My table is:
\begin{center}
\begin{tabular}{lccccccccccccccc}
\toprule
&Dynamic&\multicolumn{14}{c}{Cycle}\\
\cmidrule(r){3-16}
&Instruction&{\small 0}&{\small 1}&{\small 2}&{\small 3}&{\small 4}&{\small 5}&{\small 6}&{\small 7}&{\small 8}&{\small 9}&{\small 10}&{\small 11}&{\small 12}&{\small 13}\\
\midrule
{\small 1}&&F &D &I&$Y_{0}$&$Y_{1}$&$Y_{2}$&${\color{red}Y_{3}}$&W\\
{\small 2}&& &F &D&i&i&i&I&${\color{red}Y_{0}}$&$Y_{1}$&$Y_{2}$&$Y_{3}$&W\\
{\small 3}&& & &F&D&I&X&w&w&w&w&w&w&W\\
{\small 4}&& \\
{\small 5}&& \\
\bottomrule
\end{tabular}
\end{center}
I appreciate any hints.
Thanks,Amber
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/texhax/attachments/20101114/489d2758/attachment.html>
More information about the texhax
mailing list