參考:
Latex 三線表 及設置列數
繪制三線表:
\begin{table}[htbp]
\caption{\label{tab:test}示例表格}
\begin{tabular}{lcl}
\toprule
。。 & 。。 & 。。 \\
\midrule
。。 & 。。 & 。。 \\
。。 & 。。 & 。。 \\
。。 & 。。 & 。。 \\
\bottomrule
\end{tabular}
\end{table}
上述代碼通過\begin{tabular}{lcl}
設置了三列,第一列居左(l),第二列居中(c),第三列居左(l)。
如果需要改為四列,同時每一列都居中顯示,那么通過設置代碼\begin{tabular}{cccc}
即可實現該效果。以此類推。
2018.2