Latex三线表代码

在写论文的过程中我们经常需要如图的三线表,在这里给出相应了Latex代码
Latex三线表代码_第1张图片

\documentclass{article}
\usepackage{booktabs}
\usepackage{multirow}
\usepackage{tabularx}
% 这里我们需要导入以上三个宏包

\begin{table} % 表格开始
\centering % 表格居中显示
\caption{A Simple Example Table} % 表头标题
\label{table_example} % 表格标签,便于引用

\begin{tabular}{cc} % c表示单元格内容居中,l表示靠左,这里有两列,所以是cc,如果是三列就是ccc或cll,根据自己

\toprule % 顶部的线,这里可以定义粗细、toprule{1.5ptx}
\multicolumn{1}{m{1.5cm}}{\centering Symbol} &  % 中间的1.5cm表示第一列宽度
\multicolumn{1}{m{6cm}}{\centering Definition}\\

\midrule % 中间的线
1111&11111\\ % &用来区分列,\\用来区分行
2222&2222\\

\bottomrule
\end{tabular}
\end{table}

你可能感兴趣的:(Latex)