[texhax] TeX Tables Questions
William Adams
will.adams at frycomm.com
Mon Nov 15 19:24:16 CET 2010
On Nov 14, 2010, at 4:06 PM, Amber K wrote:
> 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.
Sometimes one simply has to adjust things manually:
\documentclass{article}
\usepackage{booktabs}
\usepackage{xcolor}
\begin{document}
\begin{center}
\begin{tabular}{lccccccccccccccc}
\toprule
&\smash{\lower2bp\hbox{Dynamic}}&\multicolumn{14}{c}{Cycle}\\
\cmidrule(r){3-16}
&\smash{\raise2bp\hbox{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}
\end{document}
--
William Adams
senior graphic designer
Fry Communications
Sphinx of black quartz, judge my vow.
More information about the texhax
mailing list