I want to create following table:
\documentclass{article}
\usepackage{units}
\begin{document}
\begin{table*}[t]
\small
\begin{tabular}{ |l|c|c|c|c|c|c|c|c|c|c| }
\hline
\multicolumn{1}{|p{0.9in}}{ }&
\multicolumn{10}{|c|}{Factor level}\\
\hline
\multicolumn{1}{|p{0.9in}}{Output} &
\multicolumn{1}{|p{0.35in}}{ABS-UTS} &
\multicolumn{1}{|p{0.35in}}{ABS-THETA MIN} &
\multicolumn{1}{|p{0.35in}}{ABS-THETA MAX} &
\multicolumn{1}{|p{0.35in}}{ABS-Sa MIN} &
\multicolumn{1}{|p{0.35in}}{ABS-Sa max} &
\multicolumn{1}{|p{0.35in}}{PLA-UTS} &
\multicolumn{1}{|p{0.35in}}{PLA-THETA MIN} &
\multicolumn{1}{|p{0.35in}}{PLA-THETA MAX} &
\multicolumn{1}{|p{0.35in}}{PLA-Sa MIN}&
\multicolumn{1}{|p{0.35in}|}{PLA-Sa max}\\
\hline
Nozzle temperature ($ ^{\circ} $ C) & 3 & 1 & 2 & 2 & 1 & 2 & 3 & 1 & 1 & 3 \\
\hline
Deposition speed (\( \frac{\textrm{mm}}{\textrm{s}} \)) &
3 & 1 & 3 & 2 & 3 & 1 & 1 & 2 & 2 & 1 \\
\hline
Layer heigh (mm) &
3 & 1 & 3 & 3 & 3 & 3 & 2 & 1 & 1 & 2 \\
\hline
\end{tabular}
\caption{Configurations for single lap experimental investigation}
\label{tab:results}
\paperwidth
\end{table*}
\end{document}
Why am I getting these errors while the .tex file still compiles:
./paper.tex:317: Missing number, treated as zero.
<to be read again>
\par
l.317 \end{table*}
./paper.tex:317: Illegal unit of measure (pt inserted).
<to be read again>
\par
l.317 \end{table*}
Also, is it possible to increase the fourth line height?
Thank You.
Best Answer
To me is simpler to rewrite your table code fragment than search for errors. They can be hidden in superfluous use of
\multicolumn{1}{p{<length>}}{...}
(why you not define columns type on this way?), or in spurious\paperwidth
at end oftable
environment etc.For your table I would:
tabularx
table environmentbooktabs
packagemin
,max
values make comon column hears