Latex 三线表 及设置列数
绘制三线表:
\begin{table}[htbp]\caption{\label{tab:test}示例表格}\begin{tabular}{lcl}\toprule。。 & 。。 & 。。 \\\midrule。。 & 。。 & 。。 \\。。 & 。。 & 。。 \\。。 & 。。 & 。。 \\\bottomrule\end{tabular}\end{table}
上述代码通过\begin{tabular}{lcl}设置了三列,第一列居左(l),第二列居中©,第三列居左(l)。
如果需要改为四列,同时每一列都居中显示,那么通过设置代码\begin{tabular}{cccc}即可实现该效果。以此类推。
原博客
/qq952693358/p/8452803.html