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

  • Context: LaTeX 
  • Thread starter Thread starter thephysicsman
  • Start date Start date
  • Tags Tags
    Latex
Click For Summary
SUMMARY

The discussion addresses the issue of page numbering in LaTeX documents, specifically when using the report document class. Users encounter problems where page numbers appear only starting from page 2, and the numbering resets unexpectedly in the table of contents and chapter pages. The recommended solution is to use the command \setcounter{page}{2} after the title page and to consider using the option notitlepage in the document class declaration. Additionally, redefining the titlepage environment may be necessary to prevent conflicts with page styles and numbering.

PREREQUISITES
  • Familiarity with LaTeX document classes, specifically report
  • Understanding of LaTeX page numbering commands
  • Knowledge of LaTeX environments, particularly titlepage and abstract
  • Basic experience with LaTeX packages such as multicol and natbib
NEXT STEPS
  • Research how to customize the titlepage environment in LaTeX
  • Learn about the notitlepage option in LaTeX document classes
  • Explore advanced page numbering techniques in LaTeX
  • Investigate the use of the setcounter command for various document elements
USEFUL FOR

LaTeX users, academic writers, and researchers who need to format documents with complex page numbering and structure, particularly those using the report document class.

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
13K
  • · Replies 1 ·
Replies
1
Views
4K
  • · Replies 4 ·
Replies
4
Views
3K
  • · Replies 2 ·
Replies
2
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 ·
Replies
4
Views
4K