I am having an issue that I cannot resolve, even after searching online, I apologize as I'm fairly new to Latex and this is basically my first table (which needs to span over multiple pages).
As you can see, Group 1 and all Zones are not vertically centered. Moreover, the "End of Table" remark is also not horizontally centered properly. I tried applying solutions I found only, but none worked - I believe I'm doing something wrong here...
The code:
\documentclass{article}
\usepackage{longtable}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{pdflscape}
\begin{document}
\begin{landscape}
\begin{longtable}{p{5cm} @{}l p{10cm}}
\toprule
Risk Category & Zone & Description \
\midrule
\endfirsthead
% Longtable rules for subsequent pages
\multicolumn{3}{c}%
{{\tablename\ \thetable{} -- Continued from previous page}} \
\toprule
Risk Category & Zone & Description \
\midrule
\endhead
% Footer for all pages except last page.
\midrule
\multicolumn{3}{r}{{Continued on next page}} \
\endfoot
% Footer forthe last page
\bottomrule
\multicolumn{3}{r}{{End of table.}} \
\endlastfoot
\multirow{2}{*}{Group 1} & Zone A of Group 1 & This is a fairly long sentence that will cause multiple line breaks in the document therefore creating many rows in this column. \
\cmidrule{2-3}
& Zone B of Group 1 & This is a fairly long sentence that will cause multiple line breaks in the document therefore creating many rows in this column.\
\midrule
& Zone C & This is a fairly long sentence that will cause multiple line breaks in the document therefore creating many rows in this column. \
\midrule
& Zone D & This is a fairly long sentence that will cause multiple line breaks in the document therefore creating many rows in this column. \
\end{longtable}
\end{landscape}
\end{document}




subfiles. – cabohah Feb 14 '24 at 11:02\multirow{2}{*}[-1.4em]{Group 1}as shown here works - is there a way to automatically adjust this height, instead of using fixed values like -1.4 in my case? – Botan Feb 14 '24 at 11:41