Latex设置表格的宽度
发布日期:2021-05-06 23:42:56 浏览次数:18 分类:技术文章

本文共 331 字,大约阅读时间需要 1 分钟。

首先引入宏包:\usepackage{array}

然后,在\begin{tabular}后面加上如{p{8cm} p{2.5cm}<{\centering}}的代码即可。
如:

\begin{
table}[H] \centering \caption{
Parameters in GA}\label{
Para_GA} \begin{
tabular}{
p{
8cm} p{
2.5cm}<{
\centering}} \toprule 123 & 456 \\ \midrule ABC & abc \\ \bottomrule \end{
tabular}\end{
table}
上一篇:Latex设置指定区域的行距
下一篇:Latex排版的时候把图片放在指定位置

发表评论

最新留言

不错!
[***.144.177.141]2025年03月26日 13时07分38秒