begintableHcenteringcaption优化后的耗材尺寸begintabularcccccccccchlinetextbf容器编号 & textbf1 & textbf2 & textbf3 & textbf4 & textbf5 & textbf6 & textbf7 & textbf8& textbf9 textbf长$L_i$ & 200 & 250 & 270 & 310 &
要使表格的宽度与文档一致,可以使用\textwidth参数来设置表格的宽度。下面是修改后的代码:
\begin{verbatim}
\begin{table}[H]
\centering
\caption{优化后的耗材尺寸}
\begin{tabular}{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{tabular}
\end{table}
\end{verbatim}
这样,表格的宽度将和文档的宽度一样
原文地址: https://www.cveoy.top/t/topic/ioMs 著作权归作者所有。请勿转载和采集!