Tabellen und Grafiken erstellen und anordnen
-
LadyGIO
- Forum-Newbie

- Beiträge: 4
- Registriert: Mo 17. Sep 2012, 16:54
Beitrag
von LadyGIO »
Hallo!
Ich habe per SuFu leider nichts dazu gefunden und verzweifle langsam. Zuerst mein Quellcode:
\begin{table}[hb]
\centering
\caption{Proben und Verd"unnungen, Proben 20\_1\_1 - 22\_5\-3b}
\begin{tabular}[ht]{|l|l||l|l||l|l|}
\hline
\cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. & \cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. & \cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. \\
\hline\hline
20\_1\_1 & 1:20 & 21\_2\_5b & 1:20 & 22\_3\_3\_1a & 1:30 \\
\hline
20\_1\_2 & 1:10 & 21\_2\_6a & 1:20 & 22\_3\_4\_1 & 1:50 \\
\hline
20\_1\_4 & 1:10 & 21\_2\_6b & 1:50 & 22\_4\_1 & 1:50 \\
\hline
20\_1\_5 & 1:10 & 21\_2\_7a & 1:50 & 22\_4\_1\_1a & 1:20 \\
\hline
20\_1\_6 & 1:10 & 21\_2\_7b & 1:10 & 22\_4\_1\_1b & 1:10 \\
\hline
20\_2\_2 & 1:10 & 21\_3\_1\_1 & 1:20 & 22\_4\_2a & 1:20 \\
\hline
20\_2\_3 & 1:10 & 21\_3\_2 & 1:20 & 22\_4\_2b & 1:30 \\
\hline
20\_2\_4 & 1:10 & 21\_3\_3 & 1:30 & 22\_4\_3a & 1:50 \\
\hline
20\_2\_5 & 1:10 & 21\_3\_4\_1 & 1:20 & 22\_4\_3b & 1:20 \\
\hline
20\_2\_6 & 1:50 & 21\_3\_5 & 1:50 & 22\_4\_6\_1 & 1:50 \\
\hline
20\_2\_6\_1 & 1:50 & 21\_3\_6 & 1:50 & 22\_5\_1 & 1:20 \\
\hline
20\_3\_1 & 1:10 & 21\_3\_7 & 1:20 & 22\_5\_1\_1 & 1:20\\
\hline
20\_3\_2 & 1:20 & 21\_3\_7\_2 & 1:20 & 22\_5\_2 & 1:10\\
\hline
20\_3\_3 & 1:20 & 21\_4\_1 & 1:50 & 22\_5\_2a & 1:30\\
\hline
20\_3\_4 & 1:10 & 21\_4\_1\_1 & 1:20 & 22\_5\_2b & 1:20\\
\hline
20\_3\_5 & 1:50 & 21\_4\_2 & 1:30 & 22\_5\_3 & 1:20\\
\hline
20\_3\_6 & 1:10 & 21\_4\_3 & 1:20 & 22\_5\_3a & 1:30\\
\hline
20\_4\_2 & 1:30 & 21\_4\_4 & 1:50 & 22\_5\_3b & 1:20\\
\hline
20\_4\_4 & 1:20 & 21\_4\_6\_1 & 1:20 & \\
\hline
20\_4\_5 & 1:10 & 21\_4\_6\_1\_1 & 1:10 & \\
\hline
20\_5\_3 & 1:20 & 21\_4\_7 & 1:50 & \\
\hline
20\_5\_3\_1\_a2 & 1:10 & 21\_5\_3\_1a\_1a & 1:30 & \\
\hline
20\_5\_3\_1\_b2 & 1:10 & 21\_5\_3\_1\_b1 & 1:10 & \\
\hline
20\_5\_6 & 1:10 & 21\_5\_3\_2 & 1:50 & \\
\hline
21\_1\_1 & 1:10 & 21\_5\_4 & 1:20 & \\
\hline
21\_1\_1\_1 & 1:20 & 21\_5\_5 & 1:30 & \\
\hline
21\_1\_1\_1\_1 & 1:10 & 21\_5\_6\_1 & 1:50 & \\
\hline
21\_1\_3b & 1:20 & 21\_5\_6\_2 & 1:20 & \\
\hline
21\_1\_4b & 1:20 & 22\_1\_1\_1a & 1:50 & \\
\hline
21\_1\_5a & 1:10 & 22\_1\_2 & 1:50 & \\
\hline
21\_1\_5b & 1:10 & 22\_1\_3 & 1:20 & \\
\hline
21\_1\_5\_1a & 1:20 & 22\_2\_1 & 1:20 & \\
\hline
21\_1\_5\_1b & 1:20 & 22\_2\_1\_1 & 1:50 &\\
\hline
21\_1\_7b & 1:20 & 22\_2\_2 & 1:30 &\\
\hline
21\_2\_1\_1 & 1:20 & 22\_2\_5 & 1:20 &\\
\hline
21\_2\_2b & 1:20 & 22\_2\_6 & 1:10 &\\
\hline
21\_2\_3 & 1:30 & 22\_3\_1\_1 & 1:20 &\\
\hline
21\_2\_4a & 1:30 & 22\_3\_1\_1b & 1:30 &\\
\hline
21\_2\_4b & 1:50 & 22\_3\_2a & 1:20 &\\
\hline
21\_2\_5a & 1:20 & 22\_3\_2b & 1:20 &\\
\hline
21\_2\_5a1 & 1:20 & 22\_3\_3\_1 & 1:30 & \\
\hline
\end{tabular}
\end{table}
Bei den leeren Feldern bleibt das Feld rechts offen. Ich verstehe einfach nicht wieso.
Kann mir da jemand weiterhelfen?
Vielen Dank.

-
Gast
Beitrag
von Gast »
Zuerst mein Quellcode:
Der ist nicht lauffähig (Präamble fehlt) und viel zu lang – zwei Tabellenzeilen sollten reichen, um das Problem zu demonstrieren.
Ulrike Fischer
www.troubleshooting-tex.de
-
LadyGIO
- Forum-Newbie

- Beiträge: 4
- Registriert: Mo 17. Sep 2012, 16:54
Beitrag
von LadyGIO »
OK...
Präambel gesamt:
\documentclass[a4paper]{scrreprt}
\usepackage{scrpage2}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage[intlimits]{amsmath}
\usepackage{siunitx}
\usepackage{setspace}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{tabularx}
\usepackage{colortbl}
\usepackage{cite}
\usepackage{amssymb}
\definecolor{RubBlau}{rgb}{0,0.207,0.376}
\definecolor{TabColor}{rgb}{0.8,0.8,0.8}
\definecolor{hellgrau}{rgb}{0.92,0.92,0.92}
und dann die gekürzte Fassung der Tabelle:
\begin{table}[hb]
\centering
\caption{Proben und Verd"unnungen, Proben 20\_1\_1 - 22\_5\-3b}
\begin{tabular}[ht]{|l|l||l|l||l|l|}
\hline
\cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. & \cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. & \cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. \\
\hline\hline
20\_1\_1 & 1:20 & 21\_2\_5b & 1:20 & 22\_3\_3\_1a & 1:30 \\
\hline
20\_1\_2 & 1:10 & 21\_2\_6a & 1:20 & 22\_3\_4\_1 & 1:50 \\
\hline
21\_2\_4b & 1:50 & 22\_3\_2a & 1:20 &\\
\hline
21\_2\_5a & 1:20 & 22\_3\_2b & 1:20 &\\
\hline
21\_2\_5a1 & 1:20 & 22\_3\_3\_1 & 1:30 & \\
\hline
\end{tabular}
\end{table}
Ich hoffe, dass es nun aussagekräftig und nicht zu lang ist.
-
Gast
Beitrag
von Gast »
-
LadyGIO
- Forum-Newbie

- Beiträge: 4
- Registriert: Mo 17. Sep 2012, 16:54
Beitrag
von LadyGIO »
Das steht natürlich drin, hier aber gern nochmal...
\documentclass[a4paper]{scrreprt}
\usepackage{scrpage2}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage[pdftex]{graphicx}
\usepackage[intlimits]{amsmath}
\usepackage{siunitx}
\usepackage{setspace}
\usepackage{multirow}
\usepackage{multicol}
\usepackage{tabularx}
\usepackage{colortbl}
\usepackage{cite}
\usepackage{amssymb}
\definecolor{RubBlau}{rgb}{0,0.207,0.376}
\definecolor{TabColor}{rgb}{0.8,0.8,0.8}
\definecolor{hellgrau}{rgb}{0.92,0.92,0.92}
\begin{document}
\begin{table}[hb]
\centering
\caption{Proben und Verd"unnungen, Proben 20\_1\_1 - 22\_5\_3b}
\begin{tabular}[ht]{|l|l||l|l||l|l|}
\hline
\cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. & \cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. & \cellcolor{TabColor}Probe & \cellcolor{hellgrau}Verd. \\
\hline\hline
20\_1\_1 & 1:20 & 21\_2\_5b & 1:20 & 22\_3\_3\_1a & 1:30 \\
\hline
20\_1\_2 & 1:10 & 21\_2\_6a & 1:20 & 22\_3\_4\_1 & 1:50 \\
\hline
21\_2\_4b & 1:50 & 22\_3\_2a & 1:20 &\\
\hline
21\_2\_5a & 1:20 & 22\_3\_2b & 1:20 &\\
\hline
21\_2\_5a1 & 1:20 & 22\_3\_3\_1 & 1:30 & \\
\hline
\end{tabular}
\end{table}
\end{document}
-
Gast
Beitrag
von Gast »
\documentclass{scrreprt}
\begin{document}
\begin{tabular}[t]{|l|l|}
a & b \\
a \\ %ohne Linie
a & \\ %mit Linie
\end{tabular}
\end{document}
Btw: Eine Option [ht] gibt es bei tabular nicht.
Ulrike Fischer
www.troubleshooting-tex.de
-
LadyGIO
- Forum-Newbie

- Beiträge: 4
- Registriert: Mo 17. Sep 2012, 16:54
Beitrag
von LadyGIO »
Das nennt man wohl Tomaten auf den Augen. -.-
Vielen, vielen Dank, es klappt.