# I need the contents in a single page before the title of the article with page numbers

I want to add a Contents table along with page numbers in a single page before the tile of my article.

I have used the following Code:

\documentclass[12pt,leqno]{amsart}

\topmargin=0.02cm

\textwidth =  17cm

\textheight = 23cm

\baselineskip=11pt

\setlength{\oddsidemargin}{0.01 pt}

\setlength{\evensidemargin}{0.01 pt}

\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}


This is the code I have used the code with special code \tableofcontents but this does not give subsections and subsubsections. Also I need the contents in a single page before the title of the article with page numbers.

Do I need these format or book format?

Help me

• You wrote but this does not give subsections and subsubsections. This is because you didn't use \subsection{} neither \subsubsection{}. How it could be in contents if you didn't insert anywhere. But, if you don't want them like in my second page below, simply delete it. – Sigur Feb 16 at 18:47
• Sir, this page is the 2nd page which I attached and I do not want the box part in the 2nd part and I want the content only in the first page. – M. A. SARKAR Feb 16 at 18:50
• Sorry. I suggest you to learn a little bit about basic LaTeX. You are confusing the contents with the ((sub)sub)section's header. I can only suggest you to delete the lines \subsection{title} and \subsubsection{title} if you don't want them. – Sigur Feb 16 at 18:54
• It is ok. Thanks for your good effort to make me understand but I did not get it fully though it was helpful – M. A. SARKAR Feb 16 at 18:59
• Looking at the comments to the answer below, i have to say... This question is more than confusing. – Johannes_B Feb 18 at 12:43

Just use

\tableofcontents
\clearpage
\maketitle


to insert title page in a new page. Also, move \author{} and \title{} to preamble (ie., before \begin{document}).

To print subsections and subsubsection on table of contents you have to change the tocdepth counter.

So,

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

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

\begin{document}
\tableofcontents

• This gives a new page of the content but same content (repeatedly) again is being appeared in the introduction part after the 'tile' $Mathuser$. Can you check by running it? – M. A. SARKAR Feb 16 at 17:58
• @M.A.SARKAR, please, do like I did, use the commands \tableofcontents \clearpage \maketitle  only once in that order and compile twice to update the table of contents. – Sigur Feb 16 at 18:01