2000字范文,分享全网优秀范文,学习好帮手!
2000字范文 > Latex调整表格宽度

Latex调整表格宽度

时间:2018-10-24 04:31:24

相关推荐

Latex调整表格宽度

Latex调整表格列的间距

\renewcommand{\arraystretch}{1.3}%调行距

\setlength\tabcolsep{3pt}%调列距

LaTeX在编译时总会遇到各种各样的问题,今天遇到问题如题所示,解决方法如下:

LaTeX表格代码:

\begin{table}[htbp]\center\caption{ Example}\begin{tabular}{lll}\hlineExample& Example& Example\\\hlineS1& Example&Example \\S2& Example&ExampleExampleExampleExampleExample \\\hline\end{tabular}\end{table}

(1)若表格过宽,则

\begin{table}[htbp]\center\caption{ Example}\resizebox{\textwidth}{12mm}{ %12可随机设置,调整到适合自己的大小为止\begin{tabular}{lll}\hlineExample& Example& Example\\\hlineS1& Example&Example \\S2& Example&ExampleExampleExampleExampleExample \\\hline\end{tabular}}%注意这里还有一个半括号\end{table}

(2)若表格过窄,则

\begin{table}[htbp]\center\caption{ Example}\setlength{\tabcolsep}{7mm}{%7可随机设置,调整到适合自己的大小为止\begin{tabular}{lll}\hlineExample& Example& Example\\\hlineS1& Example&Example \\S2& Example&ExampleExampleExampleExampleExample \\\hline\end{tabular}}%注意这里还有一个半括号\end{table}

————————————————

版权声明:本文为CSDN博主「Rained_99」的原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接及本声明。

原文链接:

本内容不代表本网观点和政治立场,如有侵犯你的权益请联系我们处理。
网友评论
网友评论仅供其表达个人看法,并不表明网站立场。