How can I stop LaTeX from resetting page numbers whenever a new chapter starts? I would like to have a single global page number for the whole report. I don't think I am changing the default page numbering in any way with what I have in my preamble, but just in case, here it is:
\documentclass[12pt]{report}
\usepackage[english]{babel}
%use a new bibliography for each chapter
\usepackage[square,sort,comma,numbers,sectionbib]{natbib}
\usepackage{chapterbib}
%math environment
\usepackage{amsmath}
\numberwithin{equation}{chapter}
%graphics environment
\usepackage{graphicx}
%allow figure captions to cross between pages
\usepackage{caption}
\DeclareCaptionLabelFormat{adja-page}{\\#1 #2 }
% reset figure numbers between chapters
\usepackage{chngcntr}
\counterwithin{figure}{chapter}
% flush all floats whenever a new (sub(sub))section start
\usepackage{placeins}
\let\Oldsection\section
\renewcommand{\section}{\FloatBarrier\Oldsection}
\let\Oldsubsection\subsection
\renewcommand{\subsection}{\FloatBarrier\Oldsubsection}
\let\Oldsubsubsection\subsubsection
\renewcommand{\subsubsection}{\FloatBarrier\Oldsubsubsection}
%double spaced
\usepackage{setspace}
\doublespacing
%smaller margins
\usepackage[margin=1.25in]{geometry}
%define display style for large operators in rational equations
\newcommand\ddfrac[2]{\frac{\displaystyle #1}{\displaystyle #2}}
\newcommand\bfrac[2]{\left(\frac{ #1}{ #2}\right)}
%define a chapter author environment
\makeatletter
\newcommand{\chapterauthor}[1]{%
{\centering\parindent0pt\vspace*{0pt}%
#1%
\par\nobreak\vspace*{25pt}}
\@afterheading%
}
\makeatother
%no header
\pagestyle{plain}
%make bibliographies single spaced
\usepackage{etoolbox}
\AtBeginEnvironment{thebibliography}{\linespread{1}\selectfont}
%include sub(sub(sub)))sections in TOC
\setcounter{tocdepth}{4}
\setcounter{secnumdepth}{4}
\begin{document}
\include{title}
\tableofcontents
\vfill
\newpage
\include{intro}
\include{chap1}
\include{chap2}
\include{chap3}
\end{document}
Within each \included file, I have something like this:
\chapter{chap1}
\chapterauthor{author list}
\begin{abstract}
bla bla
\end{abstract}
\section{Introduction}
bla bla
...
One of the includes has this in its entirety, and it resets page numbers:
\chapter{title}
\cite{Merchant2010}
\bibliographystyle{ieeetr}
\bibliography{bib}
\pagenumbering{arabic}in the includes? – Mar 23 '18 at 17:10\include(just put the content of a small dummy chapter directly in your main document, and you should be able to delete most of the packages, for example do you really needgraphicxorplaceinsto demonstrate the problem? – David Carlisle Mar 23 '18 at 17:20abstract. In thereportclass,abstractresets the page number and you have an abstract for every chapter. – Marcel Krüger Mar 23 '18 at 17:20