Samstag, 25. März 2017

tabulary multirow

tabulary multirow fail
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{tabulary}
\begin{document}
\begin{tabulary}{0.8\textwidth}{RCL}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{*}{ neither \textbackslash newline nor 
\textbackslash linebreak nor \textbackslash\textbackslash 
will work in multirow} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabulary}
\end{document}
tabulary right multirow
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{tabulary}
\begin{document}
\begin{tabulary}{0.8\textwidth}{RCL}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{=}{ neither \textbackslash newline nor 
\textbackslash linebreak nor \textbackslash\textbackslash 
will work in multirow} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabulary}
\end{document}
tabulary center multirow
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{tabulary}
\begin{document}
\begin{tabulary}{0.8\textwidth}{CLR}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{=}{ neither \textbackslash newline nor 
\textbackslash linebreak nor \textbackslash\textbackslash 
will work in multirow} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabulary}
\end{document}
tabulary left multirow
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{tabulary}
\begin{document}
\begin{tabulary}{0.8\textwidth}{LRC}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{=}{ neither \textbackslash newline nor 
\textbackslash linebreak nor \textbackslash\textbackslash 
will work in multirow} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabulary}
\end{document}

tabularx multirow

tabularx multirow fail
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{0.8\textwidth}{Xll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{*}{ neither \textbackslash newline nor 
\textbackslash linebreak nor \textbackslash\textbackslash 
will work in multirow} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabularx}
\end{document}
tabularx multirow work
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\usepackage{tabularx}
\begin{document}
\begin{tabularx}{0.8\textwidth}{Xll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{=}{ neither \textbackslash newline nor
 \textbackslash linebreak nor \textbackslash\textbackslash
will work in multirow} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabularx}
\end{document}

multirow zu viel Inhalt

\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{2cm}{ neither \textbackslash newline nor 
\textbackslash linebreak nor \textbackslash\textbackslash will work
 in multirow} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
multirow angepasst für zu viel Inhalt
 
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{2cm}{ neither \textbackslash newline nor 
\textbackslash linebreak nor \textbackslash\textbackslash will 
work in multirow} & \rule[-10pt]{0pt}{20pt}First steps 
\LaTeX{} & 2004 \\ 
 & \rule[-10pt]{0pt}{28pt}\LaTeX{} course & 2005 \\ 
 & \rule[-10pt]{0pt}{28pt}\LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}

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}

latex multirow line break / Zeilenumbruch

\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{*}{ neither \textbackslash newline nor \textbackslash
 linebreak  will work} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
Zeilenumbruch fix width
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{3cm}{but fix width could work} & First
 steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
Zeilenumbruch mit shortstack left
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{*}{\shortstack[l]{left\\ \textasteriskcentered 
width could work}} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
Zeilenumbruch mit shortstack center
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{*}{\shortstack[c]{center\\ \textasteriskcentered
 width could work}} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
Zeilenumbruch mit shortstack right
\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{*}{\shortstack[r]{right\\ \textasteriskcentered
 width could work}} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}

multirow vertikales Ausrichten

\documentclass{article}
\usepackage{multirow} % new version 2.2
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow[t]{3}{*}{Top} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
multirow vertikales Ausrichten center
\documentclass{article}
\usepackage{multirow} % new version 2.2
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow[c]{3}{*}{Center} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}
multirow vertikales Ausrichten bottom
\documentclass{article}
\usepackage{multirow} % new version 2.2
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow[b]{3}{*}{Bottom} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}

latex multirow and booktabs

\documentclass{article}
\usepackage{multirow}
\usepackage{booktabs}
\begin{document}
\begin{tabular}{lll}
\toprule
Teacher & Title & Year \\
\midrule
\multirow{3}{*}{Dave Miller} & First steps \LaTeX{} & 2004 \\ 
 & \LaTeX{} course & 2005 \\ 
 & \LaTeX{} seminar & 2009 \\ 
\bottomrule
\end{tabular}
\end{document}