「LaTex」插入表格

一.前言

在LaTex中插入表格,分为两类,双栏跨栏和单栏。

二.技术实现

1.单栏插入表格,代码如下:

\begin{table}
\label{tab:1}       % Give a unique label
\begin{tabular*}{\tblwidth}{@{} LLLL@{} }
\toprule
Col 1 & Col 2 & Col 3 & Col4\\
\midrule
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
\bottomrule
\end{tabular*}
\end{table}

效果如下:

2.双栏插入表格

只需要在题头题尾加入“ * ” 即可,代码如下:

\begin{table*}
\label{tab:1}       % Give a unique label
\begin{tabular*}{\tblwidth}{@{} LLLL@{} }
\toprule
Col 1 & Col 2 & Col 3 & Col4\\
\midrule
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
12345 & 12345 & 123 & 12345 \\
\bottomrule
\end{tabular*}
\end{table*}

*亲测有效

发布了203 篇原创文章 · 获赞 838 · 访问量 22万+

猜你喜欢

转载自blog.csdn.net/Robot_Starscream/article/details/104551162