You can make a new column type, or simply add >{\centering\arraybackslash} before m{6cm} for the two image columns.
For example:
\newcolumntype{C}{>{\centering\arraybackslash} m{6cm} } %# New column type
\begin{tabular}{m{1cm}CC} %# Table with two of them
...
The > directive lets you basically inject the contained code before each entry in that column. We need the \arraybackslash to deal with incompatibility between the centering environment and the tabular environment. [More info can be found here.] 1
发布评论
评论(2)
您可以创建一个新的列类型,或者只需在两个图像列的
m{6cm}
之前添加>{\centering\arraybackslash}
即可。例如:
>
指令基本上可以让您在该列中的每个条目之前注入包含的代码。我们需要\arraybackslash
来处理centering
环境和tabular
环境之间的不兼容问题。[更多信息可在此处找到。]1You can make a new column type, or simply add
>{\centering\arraybackslash}
beforem{6cm}
for the two image columns.For example:
The
>
directive lets you basically inject the contained code before each entry in that column. We need the\arraybackslash
to deal with incompatibility between thecentering
environment and thetabular
environment.[More info can be found here.]1我使用
\dummyimage
,因为我没有im.png
。将其替换为\includegraphics{im.png}
。I use
\dummyimage
, because I have noim.png
. Replace it with\includegraphics{im.png}
.