I need help with a table that, as the title of the post says, contains some long entries which span multiple rows.
I am using the landscape environment to get some more space so that the entries can fit, but still i have the problem that the {*} specification for the multirow command simply assigns the natural width of the text to the column. What I need is that the text of the entry is distributed along the different rows that the cell takes, AND, that when doing this, the text remains centered.
This is my code:
Code: Select all
\documentclass[12pt,spanish,a4paper]{letter}
\usepackage{multirow}
\usepackage[latin1]{inputenc}
\usepackage[spanish]{babel}
\usepackage{pdflscape}
\newcommand{\anchocol}{*}
\newcommand{\sesa}{Loooooong text which must be fit into one cell because it's the title of a session}
\newcommand{\sesb}{Not so long text, but it's also not short either}
\newcommand{\sesc}{Long title of a session which should span several rows and still fit nicely}
\newcommand{\sesd}{another semi-long text which could be longer}
\pagestyle{empty}
\begin{document}
\begin{landscape}
\begin{tabular}{cccc}
Día & 13 & 20 & 27 \\ \hline
16'00 - 16'30 & Opening & \multirow{2}{\anchocol}{\sesa} & \multirow{2}{\anchocol}{\sesb} \\
16'30 - 17'00 & \multirow{3}{\anchocol}{\sesd} & & \\
17'00 - 17'30 & & Session 1 b & Session 2 b \\
17'30 - 18'00 & & Pausa & Pausa \\ \hline
18'00 - 18'30 & Pausa & \multirow{4}{\anchocol}{Workshop 1} & \multirow{4}{\anchocol}{Workshop 2} \\
18'30 - 19'00 & \multirow{3}{\anchocol}{\sesc} & & \\
19'00 - 19'30 & & & \\
19'30 - 20'00 & & & \\ \hline
\end{tabular}
\end{landscape}
\end{document}
Code: Select all
\newcommand{\anchocol}{10cm}
\newcommand{\sesa}{Loooooong text which must be fit into one cell\\because it's the title of a session}
\newcommand{\sesb}{Not so long text, but it's also not short either}
\newcommand{\sesc}{Long title of a session which should\\span several rows and still fit nicely}
\newcommand{\sesd}{another semi-long text which could be longer}
\pagestyle{empty}
This:
Code: Select all
\newcommand{\anchocol}{0.5\textwidth}
Any idea about how to format it so that it looks OK? I'm going crazy!
Thanks for your help and any answer!
