1. 程式人生 > >Latex 三線表及設置列數

Latex 三線表及設置列數

同時 down 錯誤 -m 需要 bottom 設置 效果 net

參考:

  • latex的三線表格及一些錯誤的修改
  • latex 三線表

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

Latex 三線表及設置列數