\begin{table}[H]\centering\caption{优化后的耗材尺寸}\begin{tabularx}{\textwidth}{cccccccccc}\hline\textbf{容器编号} & \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6} & \textbf{7} & \textbf{8}& \textbf{9} \textbf{长($L_{i}$)} & 200 & 250 & 270 & 310 & 150 & 175 & 200 & 250 & 280 \textbf{宽($W_{i}$)} & 100 & 150 & 180 & 210 & 100 & 120 & 150 & 170 & 200 \textbf{高($H_{i}$)} & 1 & 1 & 1 & 1 & 50 & 70 & 100 & 80 & 150 \\hline\end{tabularx}\end{table}\要使表格的宽度与文档一致,可以使用\texttt{tabularx}宏包,并设置表格的宽度为文档的宽度。以下是修改后的代码:\\begin{verbatim}\usepackage{tabularx}\...\\begin{table}[H]\centering\caption{优化后的耗材尺寸}\begin{tabularx}{\textwidth}{cccccccccc}\hline\textbf{容器编号} & \textbf{1} & \textbf{2} & \textbf{3} & \textbf{4} & \textbf{5} & \textbf{6} & \textbf{7} & \textbf{8}& \textbf{9} \textbf{长($L_{i}$)} & 200 & 250 & 270 & 310 & 150 & 175 & 200 & 250 & 280 \textbf{宽($W_{i}$)} & 100 & 150 & 180 & 210 & 100 & 120 & 150 & 170 & 200 \textbf{高($H_{i}$)} & 1 & 1 & 1 & 1 & 50 & 70 & 100 & 80 & 150 \\hline\end{tabularx}\end{table}\end{verbatim}\这样,表格的宽度就会自动调整为与文档一致。


原文地址: https://www.cveoy.top/t/topic/p6DE 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录