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

  • LaTeX
  • Thread starter thephysicsman
  • Start date
  • Tags
    Latex
In summary, the conversation is discussing an issue where the page numbers only appear on page 2 and not on the abstract pages. It is also mentioned that the page numbers start over again in the Table of Contents and on the first page of the first chapter. Possible solutions suggested are to change the document class or to redefine the titlepage environment.
  • #1
thephysicsman
22
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
  • #2
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}{}{}
 

What is LaTeX?

LaTeX is a typesetting language commonly used in academia and scientific publishing. It allows for precise formatting and layout of documents, particularly those containing mathematical equations and symbols.

Why is page numbering important in LaTeX?

Page numbering allows readers to easily navigate and reference specific pages within a document. In academic and scientific writing, it is important to have consistent and accurate page numbering for citation purposes.

What is the "Page 1" issue in LaTeX?

The "Page 1" issue in LaTeX refers to the fact that page numbers do not appear on the first page of a document by default. This can be problematic for readers who may not realize that the first page is actually considered page 1.

How can I fix the "Page 1" issue in LaTeX?

To fix the "Page 1" issue, you can use the \thispagestyle{plain} command to add a page number to the first page of your document. Alternatively, you can use the fancyhdr package to customize the page numbering for all pages.

Can I have different page numbering styles in my LaTeX document?

Yes, with the fancyhdr package, you can have different page numbering styles for different sections or chapters in your document. This is useful for distinguishing between the main body of your document and any appendices or references.

Similar threads

  • MATLAB, Maple, Mathematica, LaTeX
Replies
8
Views
11K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
3K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
2K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
6K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
4
Views
5K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
1
Views
7K
  • MATLAB, Maple, Mathematica, LaTeX
Replies
2
Views
3K
  • Engineering and Comp Sci Homework Help
Replies
2
Views
2K
  • Linear and Abstract Algebra
Replies
4
Views
3K
Back
Top