请你能帮助我并向我解释我如何将文本包装在长表的单元格中吗?我正在使用 longtable 包。
我需要将文本包装在列空间的范围内,因此文本不会超出单元格空间。这对于第一列和最后一列尤其重要。
非常感谢
\newcolumntype{M}[1]{>{\centering\arraybackslash}m{#1}}
\begin{landscape}
\begin{longtable}[c]{
M{2cm}
M{2cm}
M{2cm}
M{2cm}
M{2cm}
M{2cm}
M{2cm}
M{2cm}}
\hline
\multicolumn{1}{c}{Reference} &
HRQoL Instruments &
HRQoL domain &
Assessment timepoints &
HRQoL statistics &
Investigational estimates &
Reference estimates &
\multicolumn{1}{l}{Comparison between groups} \\ \hline
\endfirsthead
%
\multicolumn{8}{c}%
{{\bfseries Table \thetable\ continued from previous page}} \\
\hline
\multicolumn{1}{c}{Reference} &
HRQoL Instruments &
HRQoL domain &
Assessment timepoints &
HRQoL statistics &
Investigational estimates &
Reference estimates &
\multicolumn{1}{l}{Comparison between groups} \\ \hline
\endhead
%
\multicolumn{8}{l}{Primary endpoint PFS} \\ \hline
\multirow{4}{*}{\citeauthor*{Xu2017}, \citeyear{Xu2017} \parencite{Xu2017}} &
\multirow{4}{*}{EORTC QLQ C-30} &
\multirow{4}{*}{Global} &
0 &
\multirow{4}{*}{Mean (SD) {[}N{]}} &
84.9 (4.7) {[}103{]} &
85.3 (5.5) {[}51{]} &
\multirow{4}{*}{p\textgreater{}0.10 for all visits-specific comparisons; p=0.534 for overall comparison} \\ \cline{4-4} \cline{6-7}
&
&
&
Week 6 &
&
82.5 (8.2) {[}85{]} &
83.3 (7.7) {[}42{]} &
\\ \cline{4-4} \cline{6-7}
&
&
&
Week 12 &
&
83.1 (6.4) {[}38{]} &
82.2 (9) {[}19{]} &
\\ \cline{4-4} \cline{6-7}
&
&
&
Week 18 &
&
83.2 (8.2) {[}19{]} &
81.4 (5.1) {[}9{]} &
\\ \hline
\caption{}
\label{tab:my-table}\\
\end{longtable}
\end{landscape}