Latex表格内换行

遇到表格内容太长,需要换行。
宏包:

\usepackage{makecell}

使用方法

\begin{center}
	\tabcaption{表格}
	\label{tab:2}
	\renewcommand\tabcolsep{7pt}%调整表格长度
	\begin{tabular}
{cccccccccc}\toprule
        参数&参数&\makecell{最大\\数值} \\
		 $a$&$b$&$c$\\\midrule
		 1&1&2\\
		\bottomrule
\end{tabular}\end{center}

在这里插入图片描述
在这里插入图片描述

猜你喜欢

转载自blog.csdn.net/iii66yy/article/details/132646712