垂直对齐长表中单元格顶部的文本

垂直对齐长表中单元格顶部的文本

我有一个长表,每个单元格都有长文本。文本垂直对齐在单元格的中心,但是我想将其对齐到单元格顶部。我该怎么做?

以下是代码及其输出

 \begin{landscape}
\begin{longtable}[t]{c c m{6cm} m{7cm} m{2cm}}
    \caption{Description of progress toward answering research questions}
    \label{tab:res_ques}\\
    \toprule
        \textbf{Question no.} & \textbf{Status} & \textbf{Output} & \textbf{Details} & \textbf{Question focus}\\
    \toprule
Q.1 & Completed & It was the best of times, it was the worst of times, it was the age of wisdom, it was the age of foolishness, it was the epoch of belief, it was the epoch of incredulity, it was the season of Light, it was the season of Darkness, it was the spring of hope, it was the winter of despair, we had everything before us, we had nothing before us, we were all going direct to Heaven, we were all going direct the other way—in short, the period was so far like the present period, that some of its noisiest authorities insisted on its being received, for good or for evil, in the superlative degree of comparison only. & There were a king with a large jaw and a queen with a plain face, on the throne of England; there were a king with a large jaw and a queen with a fair face, on the throne of France. In both countries it was clearer than crystal to the lords of the State preserves of loaves and fishes, that things in general were settled for ever. & The focus of this question is mainly toward application.\\

\bottomrule
    
\end{longtable}

\end{landscape}

在此处输入图片描述

答案1

(重新发布我之前的评论,以便查询可以被核实为已收到“官方”答复)

  • m类型将单元格内容沿“中间”对齐。

  • 要沿单元格顶部边缘对齐,请使用p列类型。

  • 对于底部对齐,请使用b列类型。

正如 @DavidCarlisle 在评论中指出的那样,值得指出的是,p列类型是在 LaTeX 内核中定义的,而mb列类型是在array包中定义的。

相关内容