Samstag, 25. März 2017

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}

Keine Kommentare:

Kommentar veröffentlichen