参考:
Latex 三线表 及设置列数
绘制三线表:
egin{table}[htbp]
caption{label{tab:test}示例表格}
egin{tabular}{lcl}
oprule
。。 & 。。 & 。。 \
midrule
。。 & 。。 & 。。 \
。。 & 。。 & 。。 \
。。 & 。。 & 。。 \
ottomrule
end{tabular}
end{table}
上述代码通过egin{tabular}{lcl}
设置了三列,第一列居左(l),第二列居中(c),第三列居左(l)。
如果需要改为四列,同时每一列都居中显示,那么通过设置代码egin{tabular}{cccc}
即可实现该效果。以此类推。
2018.2