TransWikia.com

Numbering on the paper does not follow from the abstract page

TeX - LaTeX Asked on May 5, 2021

My page numbers are not following a proper order. Right now what I have is the Abstract page numbered 1, but the Introduction page is also numbered 1. I want the numbers to follow from the Abstract page, that is, 1, 2, 3, and so on. The numbering starts in the Abstract and ends in the very last page of the paper going all the way through.

This is what I have on my preamble

documentclass[12pt,letterpaper]{article}
usepackage[margin=1in]{geometry}
usepackage[english]{babel}
usepackage{amsmath}
setcounter{secnumdepth}{3} %the depth of section numbering 0 means no
usepackage{pdflscape}
usepackage{afterpage}
usepackage{capt-of}
setlength{parskip}{1em}
usepackage{amssymb} 

EDIT:

My abstract is in the title page and the intro:

begin{titlepage}
title{textbf{Title }
{small textbf{    }}}


author{John Doefootnote{Department of XXX, University of XXX, City, State Postal Code, Country. E-mail: url{[email protected]}.} small{Department of XXX, University of XXX}}
date{ small {today}}

maketitle

begin{abstract}
 Blah blah
end{abstract}
noindent textit{blah:} XX; XX
noindent textit{Keywords:} X; X; X
end{titlepage}

%Need to look into Nash Bargaining with interest R costs taken into account. will change x_underline (cutoff)
%doublespacing
onehalfspacing
setcounter{page}{2} %solves the problem
section{Introduction}
label{Introduction}

One Answer

Here's the reason behind what you're seeing: Since you're not using article under the compatibility class option, the titlepage environment is defined in the following way:

newenvironment{titlepage}
  {%
    if@twocolumn
      @restonecoltrueonecolumn
    else
      @restonecolfalsenewpage
    fi
    thispagestyle{empty}%
    setcounter{page}@ne
  }%
  {if@restonecoltwocolumn else newpage fi
   if@twosideelse
      setcounter{page}@ne
   fi
  }

Note how the page number is set to 1 (setcounter{page}@ne) at the end of the begin{titlepage} definition as well as at the end of the end{titlepage} definition if you're not in twoside mode. You're not in twoside mode either, so the page number is reset to 1 as you notice.

The easiest solution is to set it to 2 manually using setcounter{page}{2} or addtocounter{page}{1} after end{titlepage}.

Correct answer by Werner on May 5, 2021

Add your own answers!

Ask a Question

Get help from others!

© 2024 TransWikia.com. All rights reserved. Sites we Love: PCI Database, UKBizDB, Menu Kuliner, Sharing RPP