NewAtair
26-09-2008, 11:52
Hallo liebes Forum,
nun hab eich ein kleines Problem mit einer Tabelle:
\documentclass[%
fontsize=11pt,
paper=a4,
BCOR5mm,
DIVcalc,
DIV=13,
headinclude,
footinclude=false,
pagesize,
]{scrreprt}
\usepackage{array}
\usepackage{booktabs}
\usepackage{dcolumn}
\usepackage{tabularx}
\usepackage[locale=DE]{siunitx}
\makeatletter
\newcolumntype{d}[1]{>{\DC@{.}{,}{#1}}c<{\DC@end}}
\makeatother
\begin{document}
\begin{table}[!htb]
\caption{Blablablablablabalbalablabalablabalbalbal }
\centering
\begin{tabularx}{\textwidth}{X @{\extracolsep\fill} c d{2.1} d{5.2} d{2.1} d{5.2} d{1.1} d{4.2}} \toprule
\textbf{Affe} & & \multicolumn{2}{c}{\textb{Bananenverkauf2008}} & \multicolumn{2}{c}{\textbf{Kiwiverkauf 2013}} & \multicolumn{2}{c}{\textbf{Differenz}} \\ \midrule
& $U_n$ & \multicolumn{1}{c}{$I_{k3}$} & \multicolumn{1}{c\{$S_k$} & \multicolumn{1}{c}{$I_{k3}$} & \multicolumn{1}{c}{$I_k$} & \multicolumn{1}{c}{$I_{k3}$} & \multicolumn{1}{c}{$I_k$} \\ \midrule
& \si{\kilo\volt} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} \\ \midrule
Gorilla & xxx & 12.3 & 12345.67 & 12.3 & 12345.67 & 1.2 & 1234.56 \\ \midrule
Zwerrgorilla & xxx & 12.3 & 12345.67 & 12.3 & 12345.67 & 1.2 & 1234.56 \\ \bottomrule
\end{tabularx} \\
\label{tab:blabla}
\end{table}
\end{document}
nun hab eich ein kleines Problem mit einer Tabelle:
\documentclass[%
fontsize=11pt,
paper=a4,
BCOR5mm,
DIVcalc,
DIV=13,
headinclude,
footinclude=false,
pagesize,
]{scrreprt}
\usepackage{array}
\usepackage{booktabs}
\usepackage{dcolumn}
\usepackage{tabularx}
\usepackage[locale=DE]{siunitx}
\makeatletter
\newcolumntype{d}[1]{>{\DC@{.}{,}{#1}}c<{\DC@end}}
\makeatother
\begin{document}
\begin{table}[!htb]
\caption{Blablablablablabalbalablabalablabalbalbal }
\centering
\begin{tabularx}{\textwidth}{X @{\extracolsep\fill} c d{2.1} d{5.2} d{2.1} d{5.2} d{1.1} d{4.2}} \toprule
\textbf{Affe} & & \multicolumn{2}{c}{\textb{Bananenverkauf2008}} & \multicolumn{2}{c}{\textbf{Kiwiverkauf 2013}} & \multicolumn{2}{c}{\textbf{Differenz}} \\ \midrule
& $U_n$ & \multicolumn{1}{c}{$I_{k3}$} & \multicolumn{1}{c\{$S_k$} & \multicolumn{1}{c}{$I_{k3}$} & \multicolumn{1}{c}{$I_k$} & \multicolumn{1}{c}{$I_{k3}$} & \multicolumn{1}{c}{$I_k$} \\ \midrule
& \si{\kilo\volt} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} & \multicolumn{1}{c}{\si{\kilo\ampere}} \\ \midrule
Gorilla & xxx & 12.3 & 12345.67 & 12.3 & 12345.67 & 1.2 & 1234.56 \\ \midrule
Zwerrgorilla & xxx & 12.3 & 12345.67 & 12.3 & 12345.67 & 1.2 & 1234.56 \\ \bottomrule
\end{tabularx} \\
\label{tab:blabla}
\end{table}
\end{document}