multirow tabelle Thema ist als GELÖST markiert

Editoren wie TexWorks, TeXmaker, TeXstudio, TeXnicCenter, Kile, LyX, vi, Emacs und Co.


basti-fantasti-48
Forum-Century
Forum-Century
Beiträge: 164
Registriert: So 4. Apr 2021, 14:27

multirow tabelle

Beitrag 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
Zuletzt geändert von basti-fantasti-48 am Mo 13. Mai 2024, 08:05, insgesamt 3-mal geändert.

Benutzeravatar
Stefan Kottwitz
Admin
Admin
Beiträge: 2559
Registriert: Di 8. Jul 2008, 00:39
Kontaktdaten:

Re: multirow tabelle

Beitrag von Stefan Kottwitz »

Was genau ist die Frage? Was bedeutet 'davor inhalte eingeben'?

Stefan

basti-fantasti-48
Forum-Century
Forum-Century
Beiträge: 164
Registriert: So 4. Apr 2021, 14:27

Re: multirow tabelle

Beitrag 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

Benutzeravatar
Stefan Kottwitz
Admin
Admin
Beiträge: 2559
Registriert: Di 8. Jul 2008, 00:39
Kontaktdaten:

Re: multirow tabelle

Beitrag 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

basti-fantasti-48
Forum-Century
Forum-Century
Beiträge: 164
Registriert: So 4. Apr 2021, 14:27

Re: multirow tabelle

Beitrag von basti-fantasti-48 »

danke Stefan perfekt

Antworten