Samstag, 25. März 2017

latex multirow center

\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multicolumn{1}{c}{\multirow{3}{*}{C}} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
latex multirow left
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multicolumn{1}{l}{\multirow{3}{*}{L}} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
latex multirow right
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multicolumn{1}{r}{\multirow{3}{*}{R}} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}

Keine Kommentare:

Kommentar veröffentlichen