I'm trying to write multiple paragraphs inside a multirow cell,… but I can't find how! I've tried a lot of options, but none of them worked.
First of all, I'll show you what I would like to get:
And using the next file, I get the next table:
\documentclass[a4paper,12pt]{article}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[spanish]{babel}
\usepackage{amsmath}
\usepackage{amssymb,amsfonts,textcomp}
\usepackage{array}
\usepackage{multirow}
\usepackage{hhline}
\usepackage[left=1.5cm,top=2.5cm,right=2.5cm,bottom=2.5cm]{geometry}
\begin{document}
\begin{center}
\begin{tabular}{|b{6cm}|m{0.3cm}|m{10.2cm}|}
\hline
A & B & \multirow{3}{*}{\parbox{10.2cm}{Lorem ipsum dolor sit amet, consectetur adipiscing elit. Integer sit amet tincidunt ante, suscipit consectetur urna. Maecenas cursus libero turpis, fermentum aliquet metus malesuada et. Pellentesque auctor tellus nibh, et dignissim urna dictum ut. Nam posuere nulla odio, posuere convallis massa facilisis sit amet.}
\parbox{10.2cm}{Proin sed nisl tellus. Ut dapibus imperdiet dignissim. Integer rhoncus fringilla ipsum, non fringilla ipsum imperdiet non. Curabitur nisl felis, imperdiet a vestibulum vel, consectetur hendrerit tortor. Etiam metus nisi, hendrerit eget metus at, luctus posuere massa. Sed non lorem lobortis odio eleifend ultrices quis sed arcu. Aenean quam lectus, ornare ut risus ac, rutrum mattis.}} \\ \cline{1-2}
C & D & \\ \cline{1-2}
E & F & \\ \hline
G & H & I \\ \hline
\end{tabular}
\end{center}
\end{document}
I have to say that I've tried with
\p
\par
And all options with those… but I'm stacked!
Anyone who can direct me to the right solution?
Thanks.
Best Answer
You should be able to use a blank line to denote a paragraph break but unfortunately
\multirow
currently doesn't allow\par
(looks like an easily fixable bug) but here as almost always you can use\endgraf
as an alternative command without the restrictions of\par
.