I have a Problem with tabularx. I Need to put a larger text inside a pretty tightly packed table. The result Looks like this:
As you see, the text kind of bleeds into the next row. Additionally I cant find the reason, why the row with "Kaltstart" in it is twice as big as the others. My Minimal Example:
\documentclass[a4paper,12pt]{scrreprt}
\usepackage{multirow}
\usepackage{tabularx}
\newcolumntype{s}{>{\hsize=.17\hsize}X}
\newcolumntype{g}{>{\hsize=.5\hsize}X}
\renewcommand\arraystretch{1.2}
\begin{document}
\begin{table}
\caption{caption}
\begin{tabularx}{\textwidth}{|g|X|g|g|s|s|s|s|}
\hline
A & & B & C & D & E & F & G \\ \hline
A & B & & C & 373 & 361 & 679 & 676 \\ \cline{2-8}
&A& & B & 321 & 321 & 660 & 660 \\ \cline{2-8}
&A& & B & 210 & 210 & 245 & 245 \\\hline
Start-Parameter &\multirow{3}{\linewidth}{Zeit zw. Anforderung und techn. Mindestlast bei Anfahrt}
& Kaltstart &min &500 &500 &515 &515 \\ \cline{3-8}
& &A&min &470 &470 &433 &433 \\ \cline{3-8}
& &B &min &470 &470 &380 &380 \\ \cline{2-8}
&\multirow{4}{\linewidth}{Zeit zw. Synchronisation und techn. Mindestlast}
& Kaltstart &min &500 &500 &515 &515 \\ \cline{3-8}
& & A &min &470 &470 &433 &433 \\ \cline{3-8}
& & B &min &470 &470 &380 &380 \\ \cline{2-8}
&\multirow{3}{\linewidth}{Duchschnittsgradient zw. Synchronisation und technischer Mindestlast}
& Kaltstart &MW/min &2,6 &2,6 &4,5 &4,5 \\ \cline{3-8}
& & A &MW/min &3,5 &3,5 &10,7 &10,7 \\ \cline{3-8}
& & B &MW/min &3,5 &3,5 &12,3 &12,3 \\ \hline
\end{tabularx}
\label{tab:meinetabelle}
\end{table}
\end{document}
This example is sadly not as good looking as I hoped it to be. Advice to make it easier to read is very welcome!
Note: ABCDEFG being placeholders for blacked out data.
m
column type is already defined and requires a parameter.\caption
is\begin
m
andb
as they are the built in column types from the array package. with your edit you changedm
tomid
which can not work at all, the column types have to be a single token.multirow
text has more lines as other cells in spanned row.