Latex调节目录间距\tableofcontents和调整页码

% 调整目录间距的宏包
\usepackage{setspace}


\thispagestyle{empty}   % 不要页眉页脚和页码
\setcounter{page}{-100} % 此命令仅是为了避免页码重复报错,不要在意

%---------以下生成目录----------
\newpage
\begin{spacing}{0.5}
	\tableofcontents
\end{spacing}   % 若不想要目录, 注释掉该句
\thispagestyle{empty}   % 不要页眉页脚和页码
\newpage


%---------以下生成正文----------
\setcounter{page}{1}    % 从正文开始计页码
\section{Introduction}

猜你喜欢

转载自blog.csdn.net/weixin_44179485/article/details/113769334