I have a problem concerning line breaks when using multirow. The 'natural' width
*
ignores the table definitions for column width. The text overlaps the adjacent column. A dummy solution is to enter a column width manually based on what looks good after compilation. This is clearly not ideal. Is there no way to invoke the column width specification from within multirow? I know this was posted before but I could not find a satisfactory answer.P.S.: You may ignore the
\url
parts. The line breaks are working fine
Code: Select all
\documentclass{article}
\usepackage[utf8]{inputenc}
% visualize page dimensions:
\usepackage{showframe}
\usepackage{booktabs, multicol, multirow}
\usepackage[hyphens]{url}
% table packages
\usepackage{array,booktabs,tabularx}
\begin{document}
\newcolumntype{R}{>{\raggedleft\arraybackslash}X}%
\begin{table}
\caption{Frequency distribution of returns}
\centering
\begin{tabularx}{\textwidth}{@{}R*{9}{X}@{}}
\toprule
header1 & header2 \\
\midrule
\multirow{4}{*}{a very long cell content that will be much wider than the specified column width of .5 table width} & content2: \\
& \url{http://www.hedge-fund-analysis.net} \\
& WML: \\
& \url{http://www.hedge-fund-analysis.net} \\
\\
\bottomrule
\end{tabularx}
\end{table}
\end{document}