11

I have the following title page in LaTeX:

\documentclass{article}

\title{Appendix A: User Manual}

\author{
John Smith\\University XYZ\\Albert Square\\Walford\\NC1 8AE
}

\begin{document}
\maketitle
\end{document}

What is the proper way to add a new page, say, for the contents page and start editing that new page?

0

1 Answer 1

13

The easiest way to finish a page (and create a new one) is the \newpage command. This will add enough vertical space to fill the current page, and then add a page break.

\documentclass{article}

\title{Appendix A: User Manual}

\author{
John Smith\\University XyZ\\Albert Square\\Walford\\NC1 8AE
}

\begin{document}
  \maketitle
  \newpage
  \tableofcontents
  \newpage
  \section{Introduction}
  Lorem Ipsum.
\end{document}

But in your case you will have an almost empty first page - in an article you normally don't want a separate title page. Simply put the table of contents (\tableofcontents) on the same page, and then start with the first section:

\documentclass{article}

\title{Appendix A: User Manual}

\author{
John Smith\\University XyZ\\Albert Square\\Walford\\NC1 8AE
}

\begin{document}
  \maketitle

  \tableofcontents

  \section{Introduction}
   Lorem Ipsum.

\end{document}

(You will need at least two LaTeX runs to see the full table of contents.)

7
  • I tried the new page command and it didn't work...
    – user559142
    Aug 17, 2011 at 1:57
  • What means "didn't work"? Did you get an error message? Was it simply ignored? Aug 17, 2011 at 2:01
  • 3
    @user: Did you also add some text afterwards. TeX will only create a new page when there is something on it.
    – Caramdir
    Aug 17, 2011 at 2:01
  • can you give me some example code I am a complete noob..yes it was ignored
    – user559142
    Aug 17, 2011 at 2:03
  • 2
    @user: with \subsection. Please have a look the Not so short introduction to LaTeX2e or some of the resources listed at tex.stackexchange.com/questions/11/….
    – Caramdir
    Aug 17, 2011 at 2:42

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .