von Stefan Kottwitz » Fr 5. Apr 2024, 23:31
So hast Du beispielsweise Exposure über zwei Spalten:
\multicolumn{2}{c}{Exposure}
Komplett:
\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}
Hier sind übrigens ein paar Beispiele zum Überspannen von Zeilen und Spalten:
LaTeX Beginner's Guide, Chapter 6, Creating Tables.
Stefan
So hast Du beispielsweise Exposure über zwei Spalten:
[code]\multicolumn{2}{c}{Exposure}[/code]
Komplett:
[code]\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}[/code]
Hier sind übrigens ein paar Beispiele zum Überspannen von Zeilen und Spalten: [url=https://latexguide.org/chapter-06]LaTeX Beginner's Guide, Chapter 6, Creating Tables[/url].
Stefan