newline in multirow environment
There is several ways to do it. A very simple way is using \shortstack
\documentclass{article}
\usepackage[frenchb]{babel}
\usepackage[T1]{fontenc}
\usepackage{multirow}
\begin{document}
\begin{table}
\begin{tabular}{|c|c|}\hline
\multirow{5}{*}{\shortstack[l]{Numbers from\\ 1 to 5}}&1 \\
&2 \\
&3 \\
&4 \\
&5 \\ \hline
\end{tabular}
\end{table}
\begin{table}
\begin{tabular}{|c|c|}\hline
\multirow{5}{*}{\shortstack{Numbers from\\ 1 to 5}}&1 \\
&2 \\
&3 \\
&4 \\
&5 \\ \hline
\end{tabular}
\end{table}
\begin{table}
\begin{tabular}{|c|c|}\hline
\multirow{5}{*}{\parbox{3cm}{Numbers from\\ 1 to 5}}&1 \\
&2 \\
&3 \\
&4 \\
&5 \\ \hline
\end{tabular}
\end{table}
\end{document}
Simple with makecell
, which is done for this sort of things: use the \multirowcell
command (syntax even simpler than \multirow):
\documentclass{article}
\usepackage[frenchb]{babel}
\usepackage[T1]{fontenc}
\usepackage{multirow, makecell}
\begin{document}
\begin{table}
\begin{tabular}{|c|c|}\hline
\multirowcell{5}{Numbers\\from\\ 1 to 5}&1 \\
&2 \\
&3 \\
&4 \\
&5 \\ \hline
\end{tabular}
\end{table}
\end{document}