Open russ-dvm opened 1 year ago
Not entirely sure about this, but perhaps we need \multirow{-2}{=}
instead of \multirow{-2}{*}
as suggested here:
https://tex.stackexchange.com/a/332782/16188
Screenshot and LaTeX document example below:
\documentclass{article}
\usepackage{tabu}
\usepackage{booktabs}
\usepackage{multirow}
\begin{document}
\begin{tabu} to \linewidth {>{\raggedright\arraybackslash}p{10em}>{\raggedright}X}
\toprule
Items & Features\\
\midrule
& Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vehicula tempor ex.\\
\cmidrule{2-2}
\multirow{-2}{*}{\raggedright\arraybackslash Really really really really long column item here 1} & In eu urna at magna luctus rhoncus quis in nisl. Fusce in velit varius, posuere risus\\
\cmidrule{1-2}
Item 2 & Vivamus venenatis egestas eros ut tempus. Vivamus id est nisi. Aliquam molestie erat\\
\bottomrule
\end{tabu}
\begin{tabu} to \linewidth {>{\raggedright\arraybackslash}p{10em}>{\raggedright}X}
\toprule
Items & Features\\
\midrule
& Lorem ipsum dolor sit amet, consectetur adipiscing elit. Proin vehicula tempor ex.\\
\cmidrule{2-2}
\multirow{-2}{=}{\raggedright\arraybackslash Really really really really long column item here 1} & In eu urna at magna luctus rhoncus quis in nisl. Fusce in velit varius, posuere risus\\
\cmidrule{1-2}
Item 2 & Vivamus venenatis egestas eros ut tempus. Vivamus id est nisi. Aliquam molestie erat\\
\bottomrule
\end{tabu}
\end{document}
Hello,
I am rendering a table in a PDF file using Quarto. If there is text is a row that is collapsed, it doesn't wrap properly when the column_spec width is specified. The table that I am trying to create has several columns and will overflow the page if the text in the first column is not wrapped.
Below is an example - I hope I have provided it in a useful way.
Running the above in Quarto creates:
Thanks in advance for any insight