Introduction. \end{document}Page Numbering in LaTeX: Fixing Page 1 Issue

  • Topic: LaTeX 
  • Thread starter Thread starter thephysicsman
  • Start date Start date
  • Tags Tags
    Latex
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 9K views
thephysicsman
Messages
18
Reaction score
0
Why do I only get page numbers on page 2 and not the abstracts? And then it starts over again with page 1 on the first page in the TOC...And then it starts over again on the first page of the first chapger...




\documentclass[12pt,a4paper]{report}
\usepackage{epsfig}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}

\usepackage{multicol}
\usepackage{comment}
\usepackage{glossary}
\makeglossary

\usepackage{natbib}
\usepackage[font= {sf}, labelfont={sf,bf}, margin=1cm]{caption}
\setcitestyle{super,square}

\renewcommand{\abstractname}{Abstract}

\begin{document}


\begin{titlepage}

\begin{center}
\Huge{\textbf{Title}}\\

\end{titlepage}

\newpage

\setcounter{page}{2}

\end{center}


\begin{abstract}

This is the abstract

\end{abstract}

\renewcommand{\abstractname}{Abstract 2}
\begin{abstract}

This is the second abstract.


\end{abstract}


\renewcommand{\abstractname}{Abstract 3}
\begin{abstract}

This is the third abstract.

\end{abstract}



\tableofcontents


\chapter*{List of Symbols and Abbreviations}\label{glossary}\addcontentsline{toc}{chapter}{List of Symbols and Abbreviations}

List.

\chapter{Introduction}
 
Physics news on Phys.org
Because if the titlepage option of the report document class is true (which is the default), the abstract environment executes the \titlepage macro, which does
Code:
\thispagestyle{empty}%
\setcounter{page}\@ne

Try \documentclass[12pt,a4paper,notitlepage]{report}, and/or reset the page number after the abstracts.

If that doesn't work, you will have to redefine the titlepage environment (from report.cls). The only thing it does is mess about with page styles, page numbers, and the number of columns in a mult-column document, so you can probably define it to do nothing:
Code:
\renewenvironment{titlepage}{}{}