Dismiss Notice
Join Physics Forums Today!
The friendliest, high quality science and math community on the planet! Everyone who loves science is here!

Page numbering in LaTex

  1. Dec 11, 2011 #1
    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}
     
  2. jcsd
  3. Dec 11, 2011 #2

    AlephZero

    User Avatar
    Science Advisor
    Homework Helper

    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 (Text):

    \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 (Text):

    \renewenvironment{titlepage}{}{}
     
Know someone interested in this topic? Share this thread via Reddit, Google+, Twitter, or Facebook




Similar Discussions: Page numbering in LaTex
  1. LaTeX Page Numbering? (Replies: 2)

Loading...