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

  • Thread starter Thread starter thephysicsman
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
The discussion centers around issues with page numbering and abstract formatting in a LaTeX document using the report class. The user experiences a problem where only page numbers appear on page 2, and the abstracts are not displayed correctly, with the numbering restarting on the first page of the table of contents and the first chapter. Solutions suggested include using the option "notitlepage" in the document class to prevent the title page from affecting the abstract environment and resetting the page number after the abstracts. If these adjustments do not resolve the issue, redefining the titlepage environment to eliminate its default behavior is recommended, as it interferes with page styles and numbering.
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}{}{}
 

Similar threads

  • · Replies 8 ·
Replies
8
Views
12K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 1 ·
Replies
1
Views
8K
  • · Replies 3 ·
Replies
3
Views
7K
  • · Replies 2 ·
Replies
2
Views
4K
  • · Replies 2 ·
Replies
2
Views
3K
Replies
4
Views
4K