Latex表格宽窄调整

\begin{table}[!ht]
\setlength{\tabcolsep}{15mm}{
\begin{tabular}{lc}
\toprule[1.5pt]
\head{symbol} & \head{meaning}\\
\midrule
\(b_i\)&Level of urgency of the area $i$\\
\(N_i\)&Number of containers in area$i$\\
$C$&cost\\
$U$&Utility of relief\\
\(U^*\)&Net utility of relief\\
\(d_{ij}\)&Distance between port and hospital\\
$l_{ik}$&Distance between port and hospital\\
$e_{kij}$&0-1 variables\\
$LD_k$&The maximum range of drone $k$\\

\bottomrule[1.5pt]
\end{tabular}}
\end{table}

以上是实现一个表格的代码块,但是实际过程中表格可能过宽或者过窄影响美观,所以可以使用\setlength{\tabcolsep}{15mm}{xxx}命令来调整表格的宽度,xxx代表tabular代码块,只需要调整15mm来改变宽度,至于自适应页面宽度的方法我还没有找到。还是肉眼调整吧。

发布了3 篇原创文章 · 获赞 2 · 访问量 81

猜你喜欢

转载自blog.csdn.net/courson/article/details/104541197