小编lmm*_*000的帖子

如何在表格环境中垂直居中我的文本?

我有一个包含 3 列的表格,其中前 2 列是图片,第三列是我对这些图片的评论,但评论“淹没了”,它位于单元格的底部。

我试过用m{2cm}而不是c

\begin{tabularx}{\textwidth}{c c m{2cm}}
Run Code Online (Sandbox Code Playgroud)

但没有变化。

在此处输入图片说明

\begin{table}
\caption{Caption if needed}
\label{tab:lastcheck}
    \begin{tabularx}{\textwidth}{c c c}

     \textbf{O-Na} & \textbf{Na-Y} & \textbf{Comments} \\

     \includegraphics[width=0.3\linewidth]{pic1.png} & 
     \includegraphics[width=0.3\linewidth]{pic2.png} & 
     My comments. \\
    \end{tabularx}
\end{table}
Run Code Online (Sandbox Code Playgroud)

我的文本位于单元格的底部。

latex tabular

4
推荐指数
1
解决办法
1121
查看次数

标签 统计

latex ×1

tabular ×1