LaTex正文间距调整与表格调整
- 参考文献编号压缩
\biboptions{numbers,sort&compress} % 参考文献标号压缩 [7-9]
- 行间距调整
\setlength{\baselineskip}{1.5em} % 行间距
- 段间距调整
\setlength{\parskip}{2.0ex} % 段间距
- 段落缩进
\setlength{\parindent}{0pt} % 段落缩进
- 表格列宽度的调整
\renewcommand\tabcolsep{5.0pt} % 调整表格列间的长度
- 表格底部加表注
加载包: \usepackage{threeparttable}
实现代码:
\begin{center}
\label{tab:1}
\renewcommand\tabcolsep{5.0pt} % 调整表格列间的宽度
\begin{threeparttable} % 需要加载 threeparttable 包
\begin{tabular}{ccccccccc} \toprule
\multirow{2}{*}{序} & \multicolumn{2}{c}{本文方法} & \multicolumn{2}{c}{文献[17] \tnote{1}} & \multicolumn{2}{c}{文献[17] \tnote{2} } & \multicolumn{2}{c}{文献[17] \tnote{3}} \\ \cmidrule(r){2-3} \cmidrule(r){4-5} \cmidrule(r){6-7} \cmidrule(r){8-9}
& 样品 & 评价值 & 样品 & 评价值 & 样品 & 评价值 & 样品 & 评价值 \\ \hline
1 & WS23 & 8.143 & WS23 & 8.151 & WS23 & 8.122 & WS23 & 8.177 \\
2 & WS09 & 8.005 & WS09 & 7.927 & WS09 & 7.977 & WS09 & 8.021 \\
3 & WS02 & 7.750 & WS02 & 7.828 & WS17 & 7.793 & WS03 & 7.857 \\
4 & WS03 & 7.747 & WS17 & 7.801 & WS03 & 7.745 & WS02 & 7.843 \\
\bottomrule
\end{tabular}
\begin{tablenotes}
\item [1] 表注1.
\item [2] 表注2.
\item [3] 表注3.
\end{tablenotes}
\end{threeparttable}
\end{center}
结果展示
- 上述代码的一些解释
\multicolumn{2}{c}{本文方法} % 列合并
\multirow{2}{*}{序} % 行合并, 需要加载包 \usepackage{bm}
\cmidrule(r){6-7} % 第6-7列下加横线, 但与前后不连接
\multirow{6}*{\shortstack{First line\\(second line)}} % 表格内换行