longtable - 如何将文本包装在 longtable 的单元格中?
问题描述
请你能帮助我并向我解释我如何将文本包装在长表的单元格中吗?我正在使用 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}
解决方案
推荐阅读
- azure - 使用 Bitbucket 管道将静态网站自动部署到 Azure
- reactjs - 在 Storybook 故事中使用 React JSS 的 withStyles 时“用作映射键的值无效”
- android - 如何在颤动的下拉列表中进行选择?
- node.js - 无法将对象推送到猫鼬中的数组
- firebase - Ionic cordova 运行 android 导致构建错误
- snowflake-cloud-data-platform - 改进 ODBC 和 JDBC API 中的雪花元数据调用
- java - 如何检测调用 onClick 处理程序时是否按下了 shift 键?
- soap - 使用邮递员测试 Microsoft EWS(Exchange Web 服务)
- c# - 使用 C# HttpClient,如何将字符串 HttpContent 发布到 ASP.net Core Web API?
- node.js - docker express 服务器之间的连接被拒绝