\documentclass{article}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}
\begin{tabular}{c c c}
\toprule
Controllabilty & Exposure & Severity \\
\midrule
\multirow{3}{*}{C1} & E1 & QM \\
& E2 & QM \\
& E3 &QM \\
& E4 & QM \\
\midrule
\multirow{3}{*}{C1} & E1 & QM \\
& E2 & QM \\
& E3 &QM \\
& E4 & QM \\
\midrule\multirow{3}{*}{C1} & E1 & QM \\
& E2 & QM \\
& E3 &QM \\
& E4 & QM \\
\bottomrule
\end{tabular}
\end{document}
Tabelle multirow und multicolumn Thema ist als GELÖST markiert
-
basti-fantasti-48
- Forum-Century

- Beiträge: 214
- Registriert: So 4. Apr 2021, 14:27
Tabelle multirow und multicolumn
Hallo ich möchte eine Tabelle wie im bild. Multirow habe ich hinbekommen aber mit der column nicht. Kann mir da jemand meinen code ergänzen?
- Dateianhänge
-
- images.png (8.54 KiB) 7135 mal betrachtet
- Stefan Kottwitz
- Admin

- Beiträge: 2793
- Registriert: Di 8. Jul 2008, 00:39
- Kontaktdaten:
Re: Tabelle multirow und multicolumn
So hast Du beispielsweise Exposure über zwei Spalten:
Komplett:
Hier sind übrigens ein paar Beispiele zum Überspannen von Zeilen und Spalten: LaTeX Beginner's Guide, Chapter 6, Creating Tables.
Stefan
\multicolumn{2}{c}{Exposure}\documentclass{article}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}
\begin{tabular}{c c c}
\toprule
Controllabilty & \multicolumn{2}{c}{Exposure} \\
\midrule
\multirow{3}{*}{C1} & E1 & QM \\
& E2 & QM \\
& E3 &QM \\
& E4 & QM \\
\midrule
\multirow{3}{*}{C1} & E1 & QM \\
& E2 & QM \\
& E3 &QM \\
& E4 & QM \\
\midrule\multirow{3}{*}{C1} & E1 & QM \\
& E2 & QM \\
& E3 &QM \\
& E4 & QM \\
\bottomrule
\end{tabular}
\end{document}Stefan
-
basti-fantasti-48
- Forum-Century

- Beiträge: 214
- Registriert: So 4. Apr 2021, 14:27
Re: Tabelle multirow und multicolumn
Danke aber wie funktioniert das einfügen dieser extra Zeile. Also auf dem Bild das C1 C2 C3
- Stefan Kottwitz
- Admin

- Beiträge: 2793
- Registriert: Di 8. Jul 2008, 00:39
- Kontaktdaten:
Re: Tabelle multirow und multicolumn
C1, C2 und C3 sind ganz normale einzelne Zellen. Du brauchst natürlich in der Tabellen-Definition 6 Spalten dann, also \begin{tabular}{cccccc}.
Stefan
Stefan