Seite 1 von 1

multirow tabelle

Verfasst: Fr 10. Mai 2024, 10:50
von basti-fantasti-48
\documentclass{article}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}
\begin{table}
	\centering
	\begin{tabular}{p{2cm} c c c c c c}
		\toprule
		Component\newline Name & a & g & c & d & e &f\\
		\midrule
			\multirow{3}{*}{R3} & 3& YES &a &aa&a & a\\
		
		&  a & a & a & a& a&d \\
		& a& a &a & a & A&d \\
		& a& a &aa&a &a&af\\

	
		\bottomrule
		
	\end{tabular}

\end{table}
\end{document}
ich möchte das meine tabelle so aussieht wie auf dem bild. mit multirow geht das aber ich weiß nicht wie ich davor inhalte eingeben kann

Re: multirow tabelle

Verfasst: Fr 10. Mai 2024, 13:26
von Stefan Kottwitz
Was genau ist die Frage? Was bedeutet 'davor inhalte eingeben'?

Stefan

Re: multirow tabelle

Verfasst: Fr 10. Mai 2024, 13:37
von basti-fantasti-48
ich möchte meine Tabelle ganz genauso wie das Bild ist. Bisher ging nur dass sich die Reihe von Anfang an "spaltet" aber ich habe ja drei Zellen davor. R3 und YES und 3.

Es soll genau wie das Bild sein

Re: multirow tabelle

Verfasst: Fr 10. Mai 2024, 14:08
von Stefan Kottwitz
Du kannst \multirow auch in den anderen Tabellen-Zellen verwenden, und die Inhalte der Zellen in den Zeilen drunter löschen.
\documentclass{article}
\usepackage{booktabs}
\usepackage{tabularx}
\usepackage{multirow}
\begin{document}
\begin{table}
	\centering
	\begin{tabular}{p{2cm} c c c c c c}
		\toprule
		Component\newline Name & a & g & c & d & e &f\\
		\midrule
			\multirow{3}{*}{R3} & \multirow{3}{*}{3}& \multirow{3}{*}{YES} &a &aa&a & a\\	
		& &  & a & a& a&d \\
		& &  &a & a & A&d \\
		& &  &aa&a &a&af\\
		\bottomrule	
	\end{tabular}
\end{table}
\end{document}
Stefan

Re: multirow tabelle

Verfasst: Mo 13. Mai 2024, 08:03
von basti-fantasti-48
danke Stefan perfekt