Was wondering if someone could help me fix an error and format a table using the ctable package. The problem is that I have two levels of headers and i can't get all the padding and alignment equal.
1) if i define the multicolumn to be {c} the header isn't center aligned.
2) the following error comes up:
! Misplaced \omit.
\multispan ->\omit
\@multispan
l.395 }
3) how can i control the font size in the cells?
Code: Select all
\ctable[
caption=Title,
cap=list title,
label=tbl:1,
pos=t,
width=130mm,
left,
]{Xcccccc}
{
%\tnote[a]{A footnote is always good.}
}
{ \FL
& & \multicolumn{3}{l}{Pre-test} \multicolumn{3}{c}{Post-test} \NN
\cmidrule(r){2-4} \cmidrule(l){5-7}
Component & Mean & SD & Range & Mean & SD & Range \ML
Component 1 & 25 & 3.4 & (13-32) & 27 & 3.1 & (15-34) \NN
Component 2 & 25 & 3.4 & (13-32) & 27 & 3.1 & (15-34) \NN
Component 3 & 25 & 3.4 & (13-32) & 27 & 3.1 & (15-34) \NN
Component 4 & 25 & 3.4 & (13-32) & 27 & 3.1 & (15-34) \NN
Component 5 & 25 & 3.4 & (13-32) & 27 & 3.1 & (15-34) \NN
Component 6 & 25 & 3.4 & (13-32) & 27 & 3.1 & (15-34) \NN
Component 7 & 25 & 3.4 & (13-32) & 27 & 3.1 & (15-34) \LL
}