[Tex/LaTex] How to center a cell horizontally and vertically

multirowvertical alignment

I just have a question.
I do have the impression that s21 (and also s22, s23, s24) is not exactly in the middle of the lines "Falls Spieler 1 'schiessen' wählt, wähle 'schiessen'." and "Falls Spieler 1 'passen' wählt, wähle 'passen'."
How can I center s21 (and also s22, s23, s24) horizontally and vertically? I hope you see what I mean. Thank you for your help!!

enter image description here

\documentclass[a4paper, fontsize=11pt]{scrbook}
\usepackage{geometry} \geometry{a4paper, top=25mm, left=25mm, right=25mm, bottom=20mm, headsep=10mm, footskip=12mm} 

\usepackage[ngerman]{babel}  
\usepackage[T1]{fontenc}         
\usepackage[latin1]{inputenc}   
\usepackage{csquotes}             

\usepackage{amsmath} 
\usepackage{amssymb} 

\usepackage{multirow,array} 
\usepackage{arydshln}         

\begin{document}

\begin{center}
\begin{tabular}{l|l}

\multirow{2}{10mm}{$s_{21}$} & Falls Spieler 1 \enquote*{schiessen} wählt, wähle \enquote*{schiessen}. \\
& Falls Spieler 1 \enquote*{passen} wählt, wähle \enquote*{passen}. \\
\hline

\multirow{2}{10mm}{$s_{22}$} & Falls Spieler 1 \enquote*{schiessen} wählt, wähle \enquote*{schiessen}. \\
& Falls Spieler 1 \enquote*{passen} wählt, wähle \enquote*{schiessen}. \\
\hline

\multirow{2}{10mm}{$s_{23}$} & Falls Spieler 1 \enquote*{schiessen} wählt, wähle \enquote*{passen}. \\
& Falls Spieler 1 \enquote*{passen} wählt, wähle \enquote*{passen}. \\
\hline

\multirow{2}{10mm}{$s_{24}$} & Falls Spieler 1 \enquote*{schiessen} wählt, wähle \enquote*{passen}. \\
& Falls Spieler 1 \enquote*{passen} wählt, wähle \enquote*{schiessen}. \\

\end{tabular}
\end{center}

\end{document}

Best Answer

For centering you need to make two changes in your code:

  • first column type should be c
  • for multirow use \multirow{2}*{...} instead \multirow{2}{10mm}{

Since I can not compile your original MWE, I comment parts which doing troubles. SO I get the following result:

enter image description here

\documentclass[a4paper,fontsize=11pt]{scrbook}
\usepackage[margin=25mm]{geometry} 

\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage[latin1]{inputenc}
\usepackage{csquotes}

%\usepackage{amsmath,amssymb}

\usepackage{array,multirow}
\usepackage{arydshln}

\begin{document}
    \begin{center}
\begin{tabular}{c|l}
\multirow{2}*{$s_{21}$} 
    &   Falls Spieler 1 \\    %\enquote*{schiessen} wählt, wähle \enquote*{schiessen}. \\
    &   Falls Spieler 1 \\    %\enquote*{passen} wählt, wähle \enquote*{passen}. \\
\hline
\multirow{2}*{$s_{22}$} 
    &   Falls Spieler 1 \\    %\enquote*{schiessen} wählt, wähle \enquote*{schiessen}. \\
    &   Falls Spieler 1 \\    %\enquote*{passen} wählt, wähle \enquote*{schiessen}. \\
\hline
\multirow{2}*{$s_{23}$} 
    &   Falls Spieler 1 \\    %\enquote*{schiessen} wählt, wähle \enquote*{passen}. \\
    &   Falls Spieler 1 \\    %\enquote*{passen} wählt, wähle \enquote*{passen}. \\
\hline
\multirow{2}*{$s_{24}$} 
    &   Falls Spieler 1 \\    %\enquote*{schiessen} wählt, wähle \enquote*{passen}. \\
    &   Falls Spieler 1 \\    %\enquote*{passen} wählt, wähle \enquote*{schiessen}. \\
\hline
\end{tabular}
    \end{center}
\end{document}
Related Question