Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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 hat new page?

share|improve this question

migrated from stackoverflow.com Aug 17 '11 at 1:55

This question came from our site for professional and enthusiast programmers.

1 Answer 1

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.)

share|improve this answer
    
I tried the new page command and it didn't work... –  user559142 Aug 17 '11 at 1:57
    
What means "didn't work"? Did you get an error message? Was it simply ignored? –  Paŭlo Ebermann Aug 17 '11 at 2:01
2  
@user: Did you also add some text afterwards. TeX will only create a new page when there is something on it. –  Caramdir Aug 17 '11 at 2:01
    
can you give me some example code I am a complete noob..yes it was ignored –  user559142 Aug 17 '11 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 '11 at 2:42

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.