Ausrichtung bei mulitrow Tabelle

Tabellen und Grafiken erstellen und anordnen


scarabeaus
Forum-Anfänger
Forum-Anfänger
Beiträge: 10
Registriert: Do 18. Dez 2008, 14:01

Ausrichtung bei mulitrow Tabelle

Beitrag von scarabeaus »

Hallo zusammen,

Ich möchte das der Text aus der ersten Spalte immer zentral in der Zelle steht so wie in den ersten beiden Gruppen. in der 3. 4. und 5. Gruppe passt es leider nicht mehr. (Vorallem in der 5. Gruppe)

hoffe das mir jemand helfen kann

mfg
scarabeaus

hier der code den ich bis jetzt habe:
\documentclass[11pt,a4paper]{book}
%
\usepackage{makeidx}
\makeindex
%
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{geometry}[2008/11/13]
\usepackage{marginnote}[2008/11/10]
\usepackage{graphicx}
\usepackage[table]{xcolor}
\usepackage{framed}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{hhline}
\geometry{paperwidth=170mm,paperheight=220mm,top=19mm,height=180mm,heightrounded,left=15mm,right=35mm,marginparsep=2mm,marginparwidth=27mm}
%\usepackage[cam,a4,center,dvips]{crop}
%
\setlength{\unitlength}{1mm}
\definecolor{shadecolor}{gray}{.8}
%
\newcommand{\BN}{``Bakti Negara'' }
\newcommand{\PS}{Pencak Silat }
%
\begin{document}
\begin{longtable}{ccp{8.4cm}}
	Titel && \multicolumn{1}{c}{Belt}\\[11pt]
	\multirow{4}*{Student} & & Solid Red length of training 6 months\\
		& & Red with one stripe,length of training 1 years\\
		& & Red with two stripes, length of training 1,5 years\\
		& & Red with three stripes, length of training 2 years\\[11pt]
	\multirow{4}*{Junior Cadre} & & Solid Blue length of training 2,5 years\\ 
		& & Blue with one stripe length of training 3,5 years\\
		& &  Blue with two stripes, length of training 4,5 years\\
		& & Blue with three stripes, length of training 5,5 years\\[11pt]
	\multirow{4}*{Mid level Cadre} & & Solid Yellow, length of training 6,5 years\\
		& & Yellow with one stripe, length of training 7,5 years\\
		& & Yellow with two stripes, length of training 8,5 years\\
		& & Yellow with three stripes, length of training 9,5 years\\[11pt]
	\multirow{4}*{Junior Master} & & Solid Purple, length of training 12 years\\
		& & Purple with one stripe, length of training 14 years\\
		& & Purple with two stripes, length of training 16 years\\
		& & Purple with three stripes, length of training 18 years\\[11pt]
	Senior Master & & Black \newline for those who have had at least 20 years of training and have fully mastered the four aspects of teaching \PS \BN It is seen as an honorary title given to cadres/management/members who have been proven to be dedicated, loyal and have made special achievements in the development of \BN school\\[11pt]
	Grand Master & & White
\end{longtable}
\end{document}

harald
Forum-Anfänger
Forum-Anfänger
Beiträge: 44
Registriert: Di 22. Sep 2009, 16:35
Wohnort: München
Kontaktdaten:

Beitrag von harald »

Hallo scarabeus,

probier mal das:
\documentclass[11pt,a4paper]{book}
%
\usepackage{makeidx}
\makeindex
%
\usepackage[T1]{fontenc}
\usepackage[english]{babel}
\usepackage{geometry}[2008/11/13]
\usepackage{marginnote}[2008/11/10]
\usepackage{graphicx}
\usepackage[table]{xcolor}
\usepackage{framed}
\usepackage{multirow}
\usepackage{longtable}
\usepackage{hhline}
\geometry{paperwidth=170mm,paperheight=220mm,top=19mm,height=180mm,heightrounded,left=15mm,right=35mm,marginparsep=2mm,marginparwidth=27mm}
%\usepackage[cam,a4,center,dvips]{crop}
%
\setlength{\unitlength}{1mm}
\definecolor{shadecolor}{gray}{.8}
%
\newcommand{\BN}{``Bakti Negara'' }
\newcommand{\PS}{Pencak Silat }
%
\begin{document}
\begin{longtable}{ccp{8.4cm}}
   Titel && \multicolumn{1}{c}{Belt}\\[11pt]
   \multirow{4}*{Student} & & Solid Red length of training 6 months\\
      & & Red with one stripe,length of training 1 years\\
      & & Red with two stripes, length of training 1,5 years\\
      & & Red with three stripes, length of training 2 years\\[11pt]
   \multirow{4}*{Junior Cadre} & & Solid Blue length of training 2,5 years\\
      & & Blue with one stripe length of training 3,5 years\\
      & &  Blue with two stripes, length of training 4,5 years\\
      & & Blue with three stripes, length of training 5,5 years\\[11pt]
   \multirow{5}*{Mid level Cadre} & & Solid Yellow, length of training 6,5 years\\
      & & Yellow with one stripe, length of training 7,5 years\\
      & & Yellow with two stripes, length of training 8,5 years\\
      & & Yellow with three stripes, length of training 9,5 years\\[11pt]
   \multirow{5}*{Junior Master} & & Solid Purple, length of training 12 years\\
      & & Purple with one stripe, length of training 14 years\\
      & & Purple with two stripes, length of training 16 years\\
      & & Purple with three stripes, length of training 18 years\\[11pt]
 \multirow{8}*{Senior Master} & & Black \newline for those who have had at least 20 years of training and have fully mastered the four aspects of teaching \PS \BN It is seen as an honorary title given to cadres/management/members who have been proven to be dedicated, loyal and have made special achievements in the development of \BN school\\[11pt]
   Grand Master & & White
\end{longtable}
\end{document}
Gruß
Harald

harald
Forum-Anfänger
Forum-Anfänger
Beiträge: 44
Registriert: Di 22. Sep 2009, 16:35
Wohnort: München
Kontaktdaten:

Beitrag von harald »

bzw.
\multirow{9}
Dann ist der auch in der Mitte.

Gruß
Harald

Antworten