- 表格调整行距
\documentclass{article}
\usepackage{booktabs} % for \toprule, \midrule, \bottomrule
\usepackage{caption} % for customizing captions
\usepackage{array} % for \extrarowheight
\begin{table}[!htbp]
\renewcommand{\arraystretch}{0.8} % 减小行间距,默认是1
\begin{tabular}{cc}
- 伪代码调整行距
\usepackage{setspace} % 用于调整行间距
\begin{algorithm}
\caption{MsAD-LEC Algorithm}
\label{algorithm}
\setstretch{0.8} % 调整行间距