von Coksi » Fr 28. Jul 2017, 11:51
Hallo ich benötige mal eure Hilfe. Ich habe eine Tabelle erstellt, die soweit auch voll in Ordnung ist. Jedoch würde ich sie gerne etwas kleiner machen von der Höhe her und die Breite so lassen wie sie ist, da ich sonst in meiner Arbeit einen unschönen Freiraum habe.
Ich häng ein kleines Beispiel an um zu zeigen was ich meine:
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\begin{document}
\begin{table}[h]
\centering
\caption{mechanische Eigenschaften nach dem Walzen}
\label{mechanische Eigenschaften nach dem Walzen}
\begin{tabularx}{\textwidth}{|Y|Y|Y|Y|Y|Y|Y|Y|}
\hline
\multicolumn{8}{|c|}{\textit{Längsproben}} \\ \hline
& \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6} & \textbf{7} \\ \hline
\textbf{R$_{p0,2}$ {[}Mpa{]}} & 177,8 & - & 177,4 & 176,9 & 178,0 & - & 177,4 \\ \hline
\textbf{R$_{m}$ {[}Mpa{]}} & 262,4 & - & 263,2 & 263,1 & 263,5 & - & 263,0 \\ \hline
\textbf{A$_{80}$ {[}\%{]}} & 27,8 & - & 24,4 & 25,2 & 29,1 & - & 278 \\ \hline
\textbf{r-Wert} & 2,1 & - & 2,5 & 3,1 & 2,2 & - & 2,4 \\ \hline
\multicolumn{3}{|c|}{\textbf{r-Mittelwert}} & 2,5 & \multicolumn{4}{c|}{} \\ \hline
\multicolumn{8}{|c|}{\textit{Querproben}} \\ \hline
& \textbf{8} & \textbf{9} & \textbf{10} & \textbf{11} & \textbf{12} & \textbf{13} & \textbf{14} \\ \hline
\textbf{R$_{p0,2}$ {[}MPa{]}} & 162,9 & n.b. & 164,6 & 161,4 & n.b. & n.b. & n.b. \\ \hline
\textbf{R$_{m}$ {[}MPa{]}} & 257,9 & n.b. & 258,1 & 257,3 & n.b. & n.b. & n.b. \\ \hline
\textbf{A$_{80}$ {[}\%{]}} & 15,0 & n.b. & 14,8 & 16,3 & n.b. & n.b. & n.b. \\ \hline
\textbf{r-Wert} & 1,8 & n.b. & 1,9 & 1,9 & n.b. & n.b. & n.b. \\ \hline
\multicolumn{3}{|c|}{\textbf{r-Mittelwert}} & 1,9 & \multicolumn{4}{c|}{} \\ \hline
\multicolumn{8}{|c|}{\textit{Diagonalproben}} \\ \hline
& \textbf{15} & \textbf{16} & \textbf{17} & \textbf{18} & \textbf{19} & \textbf{20} & \textbf{21} \\ \hline
\textbf{R$_{p0,2}$ {[}MPa{]}} & 166,6 & - & 167,3 & 167,0 & 165,8 & - & 165,6 \\ \hline
\textbf{R$_{m}$ {[}MPa{]}} & 258,7 & - & 258,3 & 258,2 & 258,1 & - & 259,0 \\ \hline
\textbf{A$_{80}$ {[}\%{]}} & 25,8 & - & 24,6 & 26,1 & 24,8 & - & 27,1 \\ \hline
\textbf{r-Wert} & 2,6 & - & 2,3 & 2,5 & 2,9 & - & 2,5 \\ \hline
\multicolumn{3}{|c|}{\textbf{r-Mittelwert}} & 2,5 & \multicolumn{4}{c|}{} \\ \hline
\end{tabularx}
\end{table}
\end{document}
In dem Beispiel ist jetzt nur die Breite geregelt. Ich würde jedoch gerne die Höhe verkleinern und die Breite beibehalten. Geht das? Und kann man evtl die Zellen zusätzlich mittig zentrieren lassen?
Hallo ich benötige mal eure Hilfe. Ich habe eine Tabelle erstellt, die soweit auch voll in Ordnung ist. Jedoch würde ich sie gerne etwas kleiner machen von der Höhe her und die Breite so lassen wie sie ist, da ich sonst in meiner Arbeit einen unschönen Freiraum habe.
Ich häng ein kleines Beispiel an um zu zeigen was ich meine:
[code]
\documentclass{scrartcl}
\usepackage[utf8]{inputenc}
\usepackage{booktabs}
\usepackage{tabularx}
\newcolumntype{Y}{>{\centering\arraybackslash}X}
\begin{document}
\begin{table}[h]
\centering
\caption{mechanische Eigenschaften nach dem Walzen}
\label{mechanische Eigenschaften nach dem Walzen}
\begin{tabularx}{\textwidth}{|Y|Y|Y|Y|Y|Y|Y|Y|}
\hline
\multicolumn{8}{|c|}{\textit{Längsproben}} \\ \hline
& \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6} & \textbf{7} \\ \hline
\textbf{R$_{p0,2}$ {[}Mpa{]}} & 177,8 & - & 177,4 & 176,9 & 178,0 & - & 177,4 \\ \hline
\textbf{R$_{m}$ {[}Mpa{]}} & 262,4 & - & 263,2 & 263,1 & 263,5 & - & 263,0 \\ \hline
\textbf{A$_{80}$ {[}\%{]}} & 27,8 & - & 24,4 & 25,2 & 29,1 & - & 278 \\ \hline
\textbf{r-Wert} & 2,1 & - & 2,5 & 3,1 & 2,2 & - & 2,4 \\ \hline
\multicolumn{3}{|c|}{\textbf{r-Mittelwert}} & 2,5 & \multicolumn{4}{c|}{} \\ \hline
\multicolumn{8}{|c|}{\textit{Querproben}} \\ \hline
& \textbf{8} & \textbf{9} & \textbf{10} & \textbf{11} & \textbf{12} & \textbf{13} & \textbf{14} \\ \hline
\textbf{R$_{p0,2}$ {[}MPa{]}} & 162,9 & n.b. & 164,6 & 161,4 & n.b. & n.b. & n.b. \\ \hline
\textbf{R$_{m}$ {[}MPa{]}} & 257,9 & n.b. & 258,1 & 257,3 & n.b. & n.b. & n.b. \\ \hline
\textbf{A$_{80}$ {[}\%{]}} & 15,0 & n.b. & 14,8 & 16,3 & n.b. & n.b. & n.b. \\ \hline
\textbf{r-Wert} & 1,8 & n.b. & 1,9 & 1,9 & n.b. & n.b. & n.b. \\ \hline
\multicolumn{3}{|c|}{\textbf{r-Mittelwert}} & 1,9 & \multicolumn{4}{c|}{} \\ \hline
\multicolumn{8}{|c|}{\textit{Diagonalproben}} \\ \hline
& \textbf{15} & \textbf{16} & \textbf{17} & \textbf{18} & \textbf{19} & \textbf{20} & \textbf{21} \\ \hline
\textbf{R$_{p0,2}$ {[}MPa{]}} & 166,6 & - & 167,3 & 167,0 & 165,8 & - & 165,6 \\ \hline
\textbf{R$_{m}$ {[}MPa{]}} & 258,7 & - & 258,3 & 258,2 & 258,1 & - & 259,0 \\ \hline
\textbf{A$_{80}$ {[}\%{]}} & 25,8 & - & 24,6 & 26,1 & 24,8 & - & 27,1 \\ \hline
\textbf{r-Wert} & 2,6 & - & 2,3 & 2,5 & 2,9 & - & 2,5 \\ \hline
\multicolumn{3}{|c|}{\textbf{r-Mittelwert}} & 2,5 & \multicolumn{4}{c|}{} \\ \hline
\end{tabularx}
\end{table}
\end{document}
[/code]
In dem Beispiel ist jetzt nur die Breite geregelt. Ich würde jedoch gerne die Höhe verkleinern und die Breite beibehalten. Geht das? Und kann man evtl die Zellen zusätzlich mittig zentrieren lassen?