Latex设置表格的宽度

首先引入宏包:\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}
发布了116 篇原创文章 · 获赞 13 · 访问量 3万+

猜你喜欢

转载自blog.csdn.net/qq_36758914/article/details/104453331