[Tex/LaTex] tabu how to specify individual absolute column width and row height

heighttabuwidth

I am trying to generate a table that requires different row widths. The first column should have as little width as possible (just to print single digit 1,2,3 upto 9), whereas column 3 (where I have put *) should be 20mm wide. The rest I want 1cm wide.

But my following code just produces an equal column width table. Strangly, I could increase the row height by using \vspace{15mm}.

How to control (specify absolute value like 3mm, 23mm) the width and height of individual rows and columns in tabu (not in tabular)? It's very important for me to be able to specify width and height of individual rows and columns. It seems tex is coming in my way 🙁
I wish to use tabu as I find it more convenient to do some other stuff.

\documentclass{article}
\usepackage{tabu}

\begin{document}

\begin{table}[htbp]
\centering
\begin{tabu} spread 0pt {|*{12}{[0.5pt]X[c,m]|}}
\hline
1  \vspace{5mm} & & \hspace{20mm}* & & & & & & & & & \\  \hline
2  \vspace{15mm} & & & & & & & & & & & \\  \hline
\end{tabu}
\end{table}

\end{document}

Best Answer

I got some information here here. It is about tabular but it also worked for tabu.

Here is working code:

\documentclass{article}
\usepackage{tabu}

\begin{document}

\begin{table}[htbp]
\centering
\begin{tabu} spread 0pt {|@{}X[c,m]@{}|*{11}{[0.5pt]X[c,m]|}}
\hline
1\vspace{5mm} & & \hspace{20mm}* & & & & & & & & & \\  \hline
2\vspace{15mm} & & & & & & & & & & & \\  \hline
\end{tabu}
\end{table}

\end{document}
Related Question