我们通常会利用Create LaTeX tables online – TablesGenerator.c这个网站来生成表格。但是将代码导入到latex中然后运行往往会发现表格宽度很奇怪,有时候会和字重叠;行高小,导致边界框与字重叠,要解决这两个问题,一般两个命令即可。
假设原始表格:
\begin{table}[h]
\begin{tabular}{clllclllll}
·····························(表格中的具体内容)
\end{tabular}
\end{table}
加入两行命令:
\begin{table}[h]
\renewcommand{\arraystretch}{1.5}
\resizebox{\linewidth}{!}{
\begin{tabular}{clllclllll}
·····························(表格中的具体内容)
\end{tabular}
}
\end{table}