我需要在文章标题前单独一页显示内容,并加上页码

我需要在文章标题前单独一页显示内容,并加上页码

我想在文章的标题前的单页中添加目录表以及页码。

我使用了以下代码:

\documentclass[12pt,leqno]{amsart}
\topmargin=0.02cm 
\textwidth=17cm
\textheight=23cm
\baselineskip=11pt
\setlength{\oddsidemargin}{0.01pt}
\setlength{\evensidemargin}{0.01pt}
\renewcommand{\baselinestretch}{1.6}
\usepackage{amsmath,amsfonts,amssymb,amsthm}
\usepackage{graphicx}
\graphicspath{ }
\usepackage{wrapfig}
\usepackage[autostyle]{csquotes}
\usepackage{accents}
\usepackage{caption}
\usepackage{subcaption}
\usepackage{calligra}
\newtheorem{fig}{figure}[section]
\numberwithin{figure}{section}
\newcommand\norm[1]{\left\lVert#1\right\rVert}
\theoremstyle{plain}
\newtheorem{thm}{Theorem}[section]
\newtheorem{lem}[thm]{Lemma}
\newtheorem{prop}[thm]{Proposition}
\newtheorem{cor}{Corollary}[thm]
\theoremstyle{definition}
\newtheorem{defn}{Definition}[section]
\newtheorem{conj}{Conjecture}[section]
\newtheorem{exmp}{Example}[section]
\theoremstyle{remark}
\newtheorem*{rem}{Remark}
\newtheorem*{note}{Note}
\usepackage{mathtools}

\begin{document}
\tableofcontents
\title{Term Paper}
\author{Mathuser}
\maketitle 
\section{Introduction}
\end{document}

代码带有特殊代码\tableofcontents,但并未提供子节和子子节。此外,我需要在文章标题前将内容放在一页中,并带有页码。

我需要这些格式或书籍格式吗? 在此处输入图片描述

答案1

只需使用

\tableofcontents
\clearpage
\maketitle 

将标题页插入新页。同时,将\author{}\title{}移至序言部分(即 之前\begin{document})。

要打印目录中的小节和子小节,您必须更改计数器tocdepth

在此处输入图片描述

所以,

\documentclass[12pt,leqno]{amsart}
% .... your full preamble here

\title{Term Paper}          % <--- moved to here
\author{Mathuser}           % <--- moved to here

\setcounter{tocdepth}{3}    % <--- added

\begin{document}
\tableofcontents
\clearpage                  % <--- added
\maketitle 
\section{Introduction}
\subsection{title}          % <--- added
\subsubsection{title}       % <--- added
\end{document}

相关内容