Consider the following example:
Code: Select all
\documentclass[12pt]{article}
\usepackage[a4paper,hmargin=2.4cm,vmargin=3cm]{geometry}
\usepackage{rotating}
\usepackage{booktabs}
\usepackage{dcolumn}
\begin{document}
\subsection*{Bilag 7: Resultater fra testen p{\aa} startpapiret}
Her f{\o}lger en tvedelt tabel over resultaterne fra testen f{\o}r undervisningsforl{\o}bet.
\begin{sidewaystable}
\caption{Testresultater f{\o}r undervisningsforl{\o}bet -- del~1.}
\centering
\begin{tabular}{c c c c c c c c c c c c c c c c c c c c}
\toprule
& \multicolumn{3}{l}{St{\o}rrelsesforhold}
& \multicolumn{3}{l}{Addition}
& \multicolumn{3}{l}{Subtraktion}
& \multicolumn{3}{l}{Forkorte}
& \multicolumn{3}{l}{Forl{\ae}nge}
& \multicolumn{3}{l}{F{\ae}llesn{\ae}vner} \\
Elev \textbackslash{} Opgave & 1a & 1b & 1c & 2a & 2b & 2c &
3a & 3b & 3c & 4a & 4b & 4c & 5a & 5b & 5c & 6a & 6b & 6c \\
\midrule
\multicolumn{1}{l}{Amar} & 1 & --- & --- & --- & --- &
--- & --- & --- & --- & --- & --- & --- & --- & --- & --- & --- & --- & --- \\
\multicolumn{1}{l}{Malak} & 1 & 1 & 1 & 0 & 0 &
0 & 0 & 0 & 0 & --- & --- & --- & --- & --- & --- & --- & --- & --- \\
\multicolumn{1}{l}{Gamze} & 1 & 1 & 1 & 0 & 0 &
0 & 0 & 0 & 0 & --- & --- & --- & --- & --- & --- & --- & --- & --- \\
\multicolumn{1}{l}{Cecilie} & 1 & 1 & 1 & 0 & 0 &
0 & 0 & 0 & 0 & 1 & --- & --- & --- & --- & --- & --- & --- & --- \\
\multicolumn{1}{l}{\"{U}lk\"{u}} & 0 & 1 & 1 & 1 & 1 &
1 & 1 & 1 & 1 & 1 & 0 & --- & 1 & 1 & 1 & --- & --- & --- \\
\multicolumn{1}{l}{Sarah} & 1 & 1 & 1 & 1 & 1 &
1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & --- \\
\multicolumn{1}{l}{Idil} & 0 & 1 & 1 & 1 & 1 &
1 & 1 & 1 & 1 & 1 & --- & --- & 0 & 1 & 0 & 1 & 1 & --- \\
\multicolumn{1}{l}{Kim} & 1 & 1 & 1 & 1 & 1 &
1 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & --- & --- \\
\multicolumn{1}{l}{Julie} & 1 & 1 & 1 & 1 & 1 &
1 & 0 & 0 & 0 & 1 & 1 & 1 & 1 & 1 & 0 & 0 & --- & --- \\
\multicolumn{1}{l}{Art} & --- & --- & --- & 1 & 1 &
1 & 0 & 0 & 0 & 1 & 1 & 0 & 0 & 1 & 0 & 0{,}5 & 0{,}5 & 0{,}5 \\
\multicolumn{1}{l}{Christian} & --- & --- & --- & 1 & 1 &
1 & 0 & 0 & 0 & 1 & 1 & 0 & 0 & 1 & 0 & 0{,}5 & 0{,}5 & 0{,}5 \\
\multicolumn{1}{l}{Ali} & 1 & 1 & 1 & 1 & 1 &
1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & --- \\
\multicolumn{1}{l}{Emma} & 1 & 1 & 1 & 1 & 1 &
1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 0{,}5 & 0{,}5 & --- \\
\multicolumn{1}{l}{Sari} & 1 & 1 & 1 & 1 & 1 &
1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & --- \\
\multicolumn{1}{l}{Omar} & 1 & 1 & 1 & 1 & 1 &
1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 1 & 0 \\
\bottomrule
\end{tabular}
\end{sidewaystable}
\end{document}
How do I do that?
Furthermore, I would the the three columns under ``St{\o}rrelsesforhold'' to be of equal width and the sum of the widths equal to the width of the ``St{\o}rrelsesforhold'' box. (I.e., I would each column to have 1/3 the width of the ``St{\o}rrelsesforhold'' box.)
How do I do that?
Thank you in advance!