The page numbering of the pages spanned by a long toc works only for the first page











up vote
0
down vote

favorite












Only the first page which has the toc which spans multiple pages has a page number, the rest is as if the pages had pagestyle{empty}.



Here are images showing what I am facing.
enter image description hereenter image description here



Only the first page shows the page number, the remaining ones which are spanned by the toc don't. As for the rest of the document everything is fine. Even the numbering remains correct.



The lof is on page viii, which is correct, as the toc spans 4 pages.



Here is my preamble along with part of the main document



%   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS

documentclass[12pt,english,doublespacing,nolistspacing,doublespacing,liststotoc,toctotoc]{report}

usepackage[utf8]{inputenc}
usepackage[english]{babel}
usepackage{longtable}
usepackage{setspace} % set space between lines
usepackage{titlesec} % select alternative section titles
usepackage{geometry} % control geometry of the page
usepackage{fancyhdr} % control header and footer settings
usepackage[hidelinks]{hyperref} %extensive support for hyper text
usepackage{tocloft} % control table of contents, figures, tables.
usepackage{graphicx} % grapgics package
usepackage{amsmath} % ams mathematical facilities for LaTeX
usepackage{amssymb} % symbols from ams
usepackage{subcaption} % for subfigures
usepackage{multirow} % for tabular cells spanning multiple rows
usepackage[ampersand]{easylist}
usepackage{soul} % for underline
usepackage{enumitem}
usepackage{changepage}
usepackage{appendix}

usepackage{url} % solves the underscore in url problem
usepackage{listings} % allows listings
usepackage{fancyvrb}
usepackage{enumitem}
usepackage{etoolbox}
usepackage{indentfirst}
usepackage[justification=centering]{caption}
urlstyle{same}

usepackage{times}
usepackage{helvet}
usepackage{courier}
usepackage{bm}
usepackage{amsfonts}
usepackage{wrapfig}
usepackage{breqn}
newtheorem{theorem}{Theorem}
newtheorem{assumption}{Assumption}
newtheorem{lemma}{Lemma}
usepackage{algorithm}
usepackage{algorithmic}
usepackage{indentfirst}

graphicspath{ {images/} }

DeclareMathOperator*{argmin}{arg!min}
newcommand{norm}[1]{leftlVert#1rightrVert}
newcommand{mvec}[1]{tilde{text{vec}}left(#1right)}
newcommand{piua}[1]{pi_{#1}left(bm{u}^k_m mid bm{x}^k_mright)}
newcommandnumberthis{addtocounter{equation}{1}tag{theequation}}



% fixed column width + centering problem
usepackage{array}
newcolumntype{L}[1]{>{raggedrightletnewline\arraybackslashhspace{0pt}}m{#1}}
newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}
newcolumntype{R}[1]{>{raggedleftletnewline\arraybackslashhspace{0pt}}m{#1}}



%table of contents settings

addto{captionsenglish}{renewcommandcontentsname{TABLE OF CONTENTS}}%title name
renewcommand{cfttoctitlefont}{hfillLarge} % title font
renewcommand{cftaftertoctitle}{hfillhfill} % center title
setlength{cftbeforetoctitleskip}{-3em} % space above title
renewcommand{cftchapleader}{cftdotfill{cftdotsep}} % add dots
renewcommand{cftchappagefont}{normalfont} % control page number font
renewcommand{cftchapaftersnum}{.} % add dot after page number

% scale dots
newcommandmydot[1]{scalebox{#1}{.}}
renewcommandcftdot{mydot{1}}
renewcommandcftdotsep{1}

renewcommand{cftchapfont}{Large} %chapter name font
renewcommand{cftsecfont}{ } %section name font
renewcommand{cftfigfont}{ } %figure name font
renewcommand{cfttabfont}{ } %table name font
cftsetindents{section}{3.5em}{1.75em}
cftsetindents{subsection}{7 em}{2.5em}

setlength{cftsecindent}{3.5em}
setlength{cftsubsecindent}{7em}
setlength{cftsubsubsecindent}{9em}

%list of figures, tables, and equations settings

addto{captionsenglish}{renewcommandlistfigurename{LIST OF FIGURES}}
renewcommand{cftloftitlefont}{hfillLarge}
renewcommand{cftafterloftitle}{hfill}
setlength{cftbeforeloftitleskip}{-3em}

addto{captionsenglish}{renewcommandlisttablename{LIST OF TABLES}}
renewcommand{cftlottitlefont}{hfillLarge}
renewcommand{cftafterlottitle}{hfill}
setlength{cftbeforelottitleskip}{-3em}

addto{captionsenglish}{renewcommandlistequationsname{LIST OF EQUATIONS}}
newcommand{listequationsname}{LIST OF EQUATIONS}
newlistof{myequations}{equ}{listequationsname}
newcommand{myequations}[1]{%
addcontentsline{equ}{myequations}{protectnumberline{theequation}#1}par}

renewcommand{cftequtitlefont}{hfillLarge}
renewcommand{cftafterequtitle}{hfillhfill}
setlength{cftbeforeequtitleskip}{-3em}

% title format settings
titleformat{section}[block]{normalsizebfseries}{thesection}{3 pt}{}
titleformat{subsection}[block]{normalsizebfseriesitshape}{thesubsection}{3 pt}{}
titlespacing{subsection}{0.5in}{0cm}{0cm}
titleformat{subsubsection}[block]{normalsizeitshape}{thesubsubsection}{3 pt}{}
titlespacing{subsubsection}{0.5in}{0cm}{0cm}
titleformat*{paragraph}{normalsizebfseries}
titleformat*{subparagraph}{normalsizebfseries}

% paragraph settings
setlength{parindent}{0.5in}
setlength{parskip}{1mm}
usepackage{indentfirst}
newcommandtab[1][0.5in]{hspace*{#1}}

%margin settings
geometry{paper=a4paper,top=3cm,bottom=3cm,left=3.5cm,right=2.5cm}


%biblography settings

addto{captionsenglish}{renewcommand{bibname}{REFERENCES}}
hypersetup{
colorlinks=true,
linkcolor=black,
filecolor=black,
citecolor=black,
urlcolor=blue,
}

newenvironment{subs}
{adjustwidth{7ex}{0pt}}
{endadjustwidth}

newenvironment{listindent}
{adjustwidth{8.4ex}{0pt}}
{endadjustwidth}
begin{document}

% chapter settings%
titleformat{chapter}[display]
{normalfontLargecentering}{chaptertitlenamethechapter}{0pt}{uppercase}
titlespacing*{chapter}{0pt}{-40pt}{20pt}
renewcommand{chaptername}{CHAPTER }

pagenumbering{roman}
pagestyle{plain}


include{preChapters/TitlePage}
include{preChapters/CopyrightPage}
%include{preChapters/SignaturePage}
%include{preChapters/Declaration}
include{preChapters/Acknowledgment}
include{preChapters/Abstract}
phantomsection

%setcounter{tocdepth}{4}

% LIST OF CONTENTS/FIGURES/TABLES PAGES
setlength{cftbeforetoctitleskip}{0pt}
setlength{cftbeforeloftitleskip}{0pt}
setlength{cftbeforelottitleskip}{0pt}
addcontentsline{toc}{chapter}{contentsname}
tableofcontents
cleardoublepage
setlength{cftfigindent}{0pt} % remove indentation from figures in lof

letorigaddvspaceaddvspace
renewcommand{addvspace}[1]{}
phantomsection
addcontentsline{toc}{chapter}{listfigurename}
listoffigures
cleardoublepage

setlength{cfttabindent}{0pt} % remove indentation from figures in lof
phantomsection
addcontentsline{toc}{chapter}{listtablename}
listoftables
cleardoublepage

setlength{cfttabindent}{0pt} % remove indentation from figures in lof
phantomsection
addcontentsline{toc}{chapter}{listequationsname}
listofmyequations
cleardoublepage
renewcommand{addvspace}[1]{origaddvspace{#1}}

addtocontents{toc}{vspace{1cm}Chapterhfill Pageparvspace{2cm}}
addtocontents{lof}{vspace{1cm}Figurehfill Pageparvspace{2cm}}
addtocontents{lot}{vspace{1cm}Tablehfill Pageparvspace{2cm}}
addtocontents{equ}{vspace{1cm}Equationhfill Pageparvspace{2cm}}


pagenumbering{arabic}


I would appreciate any help. Thank you in advance.










share|improve this question














bumped to the homepage by Community 58 mins ago


This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.



















    up vote
    0
    down vote

    favorite












    Only the first page which has the toc which spans multiple pages has a page number, the rest is as if the pages had pagestyle{empty}.



    Here are images showing what I am facing.
    enter image description hereenter image description here



    Only the first page shows the page number, the remaining ones which are spanned by the toc don't. As for the rest of the document everything is fine. Even the numbering remains correct.



    The lof is on page viii, which is correct, as the toc spans 4 pages.



    Here is my preamble along with part of the main document



    %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS

    documentclass[12pt,english,doublespacing,nolistspacing,doublespacing,liststotoc,toctotoc]{report}

    usepackage[utf8]{inputenc}
    usepackage[english]{babel}
    usepackage{longtable}
    usepackage{setspace} % set space between lines
    usepackage{titlesec} % select alternative section titles
    usepackage{geometry} % control geometry of the page
    usepackage{fancyhdr} % control header and footer settings
    usepackage[hidelinks]{hyperref} %extensive support for hyper text
    usepackage{tocloft} % control table of contents, figures, tables.
    usepackage{graphicx} % grapgics package
    usepackage{amsmath} % ams mathematical facilities for LaTeX
    usepackage{amssymb} % symbols from ams
    usepackage{subcaption} % for subfigures
    usepackage{multirow} % for tabular cells spanning multiple rows
    usepackage[ampersand]{easylist}
    usepackage{soul} % for underline
    usepackage{enumitem}
    usepackage{changepage}
    usepackage{appendix}

    usepackage{url} % solves the underscore in url problem
    usepackage{listings} % allows listings
    usepackage{fancyvrb}
    usepackage{enumitem}
    usepackage{etoolbox}
    usepackage{indentfirst}
    usepackage[justification=centering]{caption}
    urlstyle{same}

    usepackage{times}
    usepackage{helvet}
    usepackage{courier}
    usepackage{bm}
    usepackage{amsfonts}
    usepackage{wrapfig}
    usepackage{breqn}
    newtheorem{theorem}{Theorem}
    newtheorem{assumption}{Assumption}
    newtheorem{lemma}{Lemma}
    usepackage{algorithm}
    usepackage{algorithmic}
    usepackage{indentfirst}

    graphicspath{ {images/} }

    DeclareMathOperator*{argmin}{arg!min}
    newcommand{norm}[1]{leftlVert#1rightrVert}
    newcommand{mvec}[1]{tilde{text{vec}}left(#1right)}
    newcommand{piua}[1]{pi_{#1}left(bm{u}^k_m mid bm{x}^k_mright)}
    newcommandnumberthis{addtocounter{equation}{1}tag{theequation}}



    % fixed column width + centering problem
    usepackage{array}
    newcolumntype{L}[1]{>{raggedrightletnewline\arraybackslashhspace{0pt}}m{#1}}
    newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}
    newcolumntype{R}[1]{>{raggedleftletnewline\arraybackslashhspace{0pt}}m{#1}}



    %table of contents settings

    addto{captionsenglish}{renewcommandcontentsname{TABLE OF CONTENTS}}%title name
    renewcommand{cfttoctitlefont}{hfillLarge} % title font
    renewcommand{cftaftertoctitle}{hfillhfill} % center title
    setlength{cftbeforetoctitleskip}{-3em} % space above title
    renewcommand{cftchapleader}{cftdotfill{cftdotsep}} % add dots
    renewcommand{cftchappagefont}{normalfont} % control page number font
    renewcommand{cftchapaftersnum}{.} % add dot after page number

    % scale dots
    newcommandmydot[1]{scalebox{#1}{.}}
    renewcommandcftdot{mydot{1}}
    renewcommandcftdotsep{1}

    renewcommand{cftchapfont}{Large} %chapter name font
    renewcommand{cftsecfont}{ } %section name font
    renewcommand{cftfigfont}{ } %figure name font
    renewcommand{cfttabfont}{ } %table name font
    cftsetindents{section}{3.5em}{1.75em}
    cftsetindents{subsection}{7 em}{2.5em}

    setlength{cftsecindent}{3.5em}
    setlength{cftsubsecindent}{7em}
    setlength{cftsubsubsecindent}{9em}

    %list of figures, tables, and equations settings

    addto{captionsenglish}{renewcommandlistfigurename{LIST OF FIGURES}}
    renewcommand{cftloftitlefont}{hfillLarge}
    renewcommand{cftafterloftitle}{hfill}
    setlength{cftbeforeloftitleskip}{-3em}

    addto{captionsenglish}{renewcommandlisttablename{LIST OF TABLES}}
    renewcommand{cftlottitlefont}{hfillLarge}
    renewcommand{cftafterlottitle}{hfill}
    setlength{cftbeforelottitleskip}{-3em}

    addto{captionsenglish}{renewcommandlistequationsname{LIST OF EQUATIONS}}
    newcommand{listequationsname}{LIST OF EQUATIONS}
    newlistof{myequations}{equ}{listequationsname}
    newcommand{myequations}[1]{%
    addcontentsline{equ}{myequations}{protectnumberline{theequation}#1}par}

    renewcommand{cftequtitlefont}{hfillLarge}
    renewcommand{cftafterequtitle}{hfillhfill}
    setlength{cftbeforeequtitleskip}{-3em}

    % title format settings
    titleformat{section}[block]{normalsizebfseries}{thesection}{3 pt}{}
    titleformat{subsection}[block]{normalsizebfseriesitshape}{thesubsection}{3 pt}{}
    titlespacing{subsection}{0.5in}{0cm}{0cm}
    titleformat{subsubsection}[block]{normalsizeitshape}{thesubsubsection}{3 pt}{}
    titlespacing{subsubsection}{0.5in}{0cm}{0cm}
    titleformat*{paragraph}{normalsizebfseries}
    titleformat*{subparagraph}{normalsizebfseries}

    % paragraph settings
    setlength{parindent}{0.5in}
    setlength{parskip}{1mm}
    usepackage{indentfirst}
    newcommandtab[1][0.5in]{hspace*{#1}}

    %margin settings
    geometry{paper=a4paper,top=3cm,bottom=3cm,left=3.5cm,right=2.5cm}


    %biblography settings

    addto{captionsenglish}{renewcommand{bibname}{REFERENCES}}
    hypersetup{
    colorlinks=true,
    linkcolor=black,
    filecolor=black,
    citecolor=black,
    urlcolor=blue,
    }

    newenvironment{subs}
    {adjustwidth{7ex}{0pt}}
    {endadjustwidth}

    newenvironment{listindent}
    {adjustwidth{8.4ex}{0pt}}
    {endadjustwidth}
    begin{document}

    % chapter settings%
    titleformat{chapter}[display]
    {normalfontLargecentering}{chaptertitlenamethechapter}{0pt}{uppercase}
    titlespacing*{chapter}{0pt}{-40pt}{20pt}
    renewcommand{chaptername}{CHAPTER }

    pagenumbering{roman}
    pagestyle{plain}


    include{preChapters/TitlePage}
    include{preChapters/CopyrightPage}
    %include{preChapters/SignaturePage}
    %include{preChapters/Declaration}
    include{preChapters/Acknowledgment}
    include{preChapters/Abstract}
    phantomsection

    %setcounter{tocdepth}{4}

    % LIST OF CONTENTS/FIGURES/TABLES PAGES
    setlength{cftbeforetoctitleskip}{0pt}
    setlength{cftbeforeloftitleskip}{0pt}
    setlength{cftbeforelottitleskip}{0pt}
    addcontentsline{toc}{chapter}{contentsname}
    tableofcontents
    cleardoublepage
    setlength{cftfigindent}{0pt} % remove indentation from figures in lof

    letorigaddvspaceaddvspace
    renewcommand{addvspace}[1]{}
    phantomsection
    addcontentsline{toc}{chapter}{listfigurename}
    listoffigures
    cleardoublepage

    setlength{cfttabindent}{0pt} % remove indentation from figures in lof
    phantomsection
    addcontentsline{toc}{chapter}{listtablename}
    listoftables
    cleardoublepage

    setlength{cfttabindent}{0pt} % remove indentation from figures in lof
    phantomsection
    addcontentsline{toc}{chapter}{listequationsname}
    listofmyequations
    cleardoublepage
    renewcommand{addvspace}[1]{origaddvspace{#1}}

    addtocontents{toc}{vspace{1cm}Chapterhfill Pageparvspace{2cm}}
    addtocontents{lof}{vspace{1cm}Figurehfill Pageparvspace{2cm}}
    addtocontents{lot}{vspace{1cm}Tablehfill Pageparvspace{2cm}}
    addtocontents{equ}{vspace{1cm}Equationhfill Pageparvspace{2cm}}


    pagenumbering{arabic}


    I would appreciate any help. Thank you in advance.










    share|improve this question














    bumped to the homepage by Community 58 mins ago


    This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.

















      up vote
      0
      down vote

      favorite









      up vote
      0
      down vote

      favorite











      Only the first page which has the toc which spans multiple pages has a page number, the rest is as if the pages had pagestyle{empty}.



      Here are images showing what I am facing.
      enter image description hereenter image description here



      Only the first page shows the page number, the remaining ones which are spanned by the toc don't. As for the rest of the document everything is fine. Even the numbering remains correct.



      The lof is on page viii, which is correct, as the toc spans 4 pages.



      Here is my preamble along with part of the main document



      %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS

      documentclass[12pt,english,doublespacing,nolistspacing,doublespacing,liststotoc,toctotoc]{report}

      usepackage[utf8]{inputenc}
      usepackage[english]{babel}
      usepackage{longtable}
      usepackage{setspace} % set space between lines
      usepackage{titlesec} % select alternative section titles
      usepackage{geometry} % control geometry of the page
      usepackage{fancyhdr} % control header and footer settings
      usepackage[hidelinks]{hyperref} %extensive support for hyper text
      usepackage{tocloft} % control table of contents, figures, tables.
      usepackage{graphicx} % grapgics package
      usepackage{amsmath} % ams mathematical facilities for LaTeX
      usepackage{amssymb} % symbols from ams
      usepackage{subcaption} % for subfigures
      usepackage{multirow} % for tabular cells spanning multiple rows
      usepackage[ampersand]{easylist}
      usepackage{soul} % for underline
      usepackage{enumitem}
      usepackage{changepage}
      usepackage{appendix}

      usepackage{url} % solves the underscore in url problem
      usepackage{listings} % allows listings
      usepackage{fancyvrb}
      usepackage{enumitem}
      usepackage{etoolbox}
      usepackage{indentfirst}
      usepackage[justification=centering]{caption}
      urlstyle{same}

      usepackage{times}
      usepackage{helvet}
      usepackage{courier}
      usepackage{bm}
      usepackage{amsfonts}
      usepackage{wrapfig}
      usepackage{breqn}
      newtheorem{theorem}{Theorem}
      newtheorem{assumption}{Assumption}
      newtheorem{lemma}{Lemma}
      usepackage{algorithm}
      usepackage{algorithmic}
      usepackage{indentfirst}

      graphicspath{ {images/} }

      DeclareMathOperator*{argmin}{arg!min}
      newcommand{norm}[1]{leftlVert#1rightrVert}
      newcommand{mvec}[1]{tilde{text{vec}}left(#1right)}
      newcommand{piua}[1]{pi_{#1}left(bm{u}^k_m mid bm{x}^k_mright)}
      newcommandnumberthis{addtocounter{equation}{1}tag{theequation}}



      % fixed column width + centering problem
      usepackage{array}
      newcolumntype{L}[1]{>{raggedrightletnewline\arraybackslashhspace{0pt}}m{#1}}
      newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}
      newcolumntype{R}[1]{>{raggedleftletnewline\arraybackslashhspace{0pt}}m{#1}}



      %table of contents settings

      addto{captionsenglish}{renewcommandcontentsname{TABLE OF CONTENTS}}%title name
      renewcommand{cfttoctitlefont}{hfillLarge} % title font
      renewcommand{cftaftertoctitle}{hfillhfill} % center title
      setlength{cftbeforetoctitleskip}{-3em} % space above title
      renewcommand{cftchapleader}{cftdotfill{cftdotsep}} % add dots
      renewcommand{cftchappagefont}{normalfont} % control page number font
      renewcommand{cftchapaftersnum}{.} % add dot after page number

      % scale dots
      newcommandmydot[1]{scalebox{#1}{.}}
      renewcommandcftdot{mydot{1}}
      renewcommandcftdotsep{1}

      renewcommand{cftchapfont}{Large} %chapter name font
      renewcommand{cftsecfont}{ } %section name font
      renewcommand{cftfigfont}{ } %figure name font
      renewcommand{cfttabfont}{ } %table name font
      cftsetindents{section}{3.5em}{1.75em}
      cftsetindents{subsection}{7 em}{2.5em}

      setlength{cftsecindent}{3.5em}
      setlength{cftsubsecindent}{7em}
      setlength{cftsubsubsecindent}{9em}

      %list of figures, tables, and equations settings

      addto{captionsenglish}{renewcommandlistfigurename{LIST OF FIGURES}}
      renewcommand{cftloftitlefont}{hfillLarge}
      renewcommand{cftafterloftitle}{hfill}
      setlength{cftbeforeloftitleskip}{-3em}

      addto{captionsenglish}{renewcommandlisttablename{LIST OF TABLES}}
      renewcommand{cftlottitlefont}{hfillLarge}
      renewcommand{cftafterlottitle}{hfill}
      setlength{cftbeforelottitleskip}{-3em}

      addto{captionsenglish}{renewcommandlistequationsname{LIST OF EQUATIONS}}
      newcommand{listequationsname}{LIST OF EQUATIONS}
      newlistof{myequations}{equ}{listequationsname}
      newcommand{myequations}[1]{%
      addcontentsline{equ}{myequations}{protectnumberline{theequation}#1}par}

      renewcommand{cftequtitlefont}{hfillLarge}
      renewcommand{cftafterequtitle}{hfillhfill}
      setlength{cftbeforeequtitleskip}{-3em}

      % title format settings
      titleformat{section}[block]{normalsizebfseries}{thesection}{3 pt}{}
      titleformat{subsection}[block]{normalsizebfseriesitshape}{thesubsection}{3 pt}{}
      titlespacing{subsection}{0.5in}{0cm}{0cm}
      titleformat{subsubsection}[block]{normalsizeitshape}{thesubsubsection}{3 pt}{}
      titlespacing{subsubsection}{0.5in}{0cm}{0cm}
      titleformat*{paragraph}{normalsizebfseries}
      titleformat*{subparagraph}{normalsizebfseries}

      % paragraph settings
      setlength{parindent}{0.5in}
      setlength{parskip}{1mm}
      usepackage{indentfirst}
      newcommandtab[1][0.5in]{hspace*{#1}}

      %margin settings
      geometry{paper=a4paper,top=3cm,bottom=3cm,left=3.5cm,right=2.5cm}


      %biblography settings

      addto{captionsenglish}{renewcommand{bibname}{REFERENCES}}
      hypersetup{
      colorlinks=true,
      linkcolor=black,
      filecolor=black,
      citecolor=black,
      urlcolor=blue,
      }

      newenvironment{subs}
      {adjustwidth{7ex}{0pt}}
      {endadjustwidth}

      newenvironment{listindent}
      {adjustwidth{8.4ex}{0pt}}
      {endadjustwidth}
      begin{document}

      % chapter settings%
      titleformat{chapter}[display]
      {normalfontLargecentering}{chaptertitlenamethechapter}{0pt}{uppercase}
      titlespacing*{chapter}{0pt}{-40pt}{20pt}
      renewcommand{chaptername}{CHAPTER }

      pagenumbering{roman}
      pagestyle{plain}


      include{preChapters/TitlePage}
      include{preChapters/CopyrightPage}
      %include{preChapters/SignaturePage}
      %include{preChapters/Declaration}
      include{preChapters/Acknowledgment}
      include{preChapters/Abstract}
      phantomsection

      %setcounter{tocdepth}{4}

      % LIST OF CONTENTS/FIGURES/TABLES PAGES
      setlength{cftbeforetoctitleskip}{0pt}
      setlength{cftbeforeloftitleskip}{0pt}
      setlength{cftbeforelottitleskip}{0pt}
      addcontentsline{toc}{chapter}{contentsname}
      tableofcontents
      cleardoublepage
      setlength{cftfigindent}{0pt} % remove indentation from figures in lof

      letorigaddvspaceaddvspace
      renewcommand{addvspace}[1]{}
      phantomsection
      addcontentsline{toc}{chapter}{listfigurename}
      listoffigures
      cleardoublepage

      setlength{cfttabindent}{0pt} % remove indentation from figures in lof
      phantomsection
      addcontentsline{toc}{chapter}{listtablename}
      listoftables
      cleardoublepage

      setlength{cfttabindent}{0pt} % remove indentation from figures in lof
      phantomsection
      addcontentsline{toc}{chapter}{listequationsname}
      listofmyequations
      cleardoublepage
      renewcommand{addvspace}[1]{origaddvspace{#1}}

      addtocontents{toc}{vspace{1cm}Chapterhfill Pageparvspace{2cm}}
      addtocontents{lof}{vspace{1cm}Figurehfill Pageparvspace{2cm}}
      addtocontents{lot}{vspace{1cm}Tablehfill Pageparvspace{2cm}}
      addtocontents{equ}{vspace{1cm}Equationhfill Pageparvspace{2cm}}


      pagenumbering{arabic}


      I would appreciate any help. Thank you in advance.










      share|improve this question













      Only the first page which has the toc which spans multiple pages has a page number, the rest is as if the pages had pagestyle{empty}.



      Here are images showing what I am facing.
      enter image description hereenter image description here



      Only the first page shows the page number, the remaining ones which are spanned by the toc don't. As for the rest of the document everything is fine. Even the numbering remains correct.



      The lof is on page viii, which is correct, as the toc spans 4 pages.



      Here is my preamble along with part of the main document



      %   PACKAGES AND OTHER DOCUMENT CONFIGURATIONS

      documentclass[12pt,english,doublespacing,nolistspacing,doublespacing,liststotoc,toctotoc]{report}

      usepackage[utf8]{inputenc}
      usepackage[english]{babel}
      usepackage{longtable}
      usepackage{setspace} % set space between lines
      usepackage{titlesec} % select alternative section titles
      usepackage{geometry} % control geometry of the page
      usepackage{fancyhdr} % control header and footer settings
      usepackage[hidelinks]{hyperref} %extensive support for hyper text
      usepackage{tocloft} % control table of contents, figures, tables.
      usepackage{graphicx} % grapgics package
      usepackage{amsmath} % ams mathematical facilities for LaTeX
      usepackage{amssymb} % symbols from ams
      usepackage{subcaption} % for subfigures
      usepackage{multirow} % for tabular cells spanning multiple rows
      usepackage[ampersand]{easylist}
      usepackage{soul} % for underline
      usepackage{enumitem}
      usepackage{changepage}
      usepackage{appendix}

      usepackage{url} % solves the underscore in url problem
      usepackage{listings} % allows listings
      usepackage{fancyvrb}
      usepackage{enumitem}
      usepackage{etoolbox}
      usepackage{indentfirst}
      usepackage[justification=centering]{caption}
      urlstyle{same}

      usepackage{times}
      usepackage{helvet}
      usepackage{courier}
      usepackage{bm}
      usepackage{amsfonts}
      usepackage{wrapfig}
      usepackage{breqn}
      newtheorem{theorem}{Theorem}
      newtheorem{assumption}{Assumption}
      newtheorem{lemma}{Lemma}
      usepackage{algorithm}
      usepackage{algorithmic}
      usepackage{indentfirst}

      graphicspath{ {images/} }

      DeclareMathOperator*{argmin}{arg!min}
      newcommand{norm}[1]{leftlVert#1rightrVert}
      newcommand{mvec}[1]{tilde{text{vec}}left(#1right)}
      newcommand{piua}[1]{pi_{#1}left(bm{u}^k_m mid bm{x}^k_mright)}
      newcommandnumberthis{addtocounter{equation}{1}tag{theequation}}



      % fixed column width + centering problem
      usepackage{array}
      newcolumntype{L}[1]{>{raggedrightletnewline\arraybackslashhspace{0pt}}m{#1}}
      newcolumntype{C}[1]{>{centeringletnewline\arraybackslashhspace{0pt}}m{#1}}
      newcolumntype{R}[1]{>{raggedleftletnewline\arraybackslashhspace{0pt}}m{#1}}



      %table of contents settings

      addto{captionsenglish}{renewcommandcontentsname{TABLE OF CONTENTS}}%title name
      renewcommand{cfttoctitlefont}{hfillLarge} % title font
      renewcommand{cftaftertoctitle}{hfillhfill} % center title
      setlength{cftbeforetoctitleskip}{-3em} % space above title
      renewcommand{cftchapleader}{cftdotfill{cftdotsep}} % add dots
      renewcommand{cftchappagefont}{normalfont} % control page number font
      renewcommand{cftchapaftersnum}{.} % add dot after page number

      % scale dots
      newcommandmydot[1]{scalebox{#1}{.}}
      renewcommandcftdot{mydot{1}}
      renewcommandcftdotsep{1}

      renewcommand{cftchapfont}{Large} %chapter name font
      renewcommand{cftsecfont}{ } %section name font
      renewcommand{cftfigfont}{ } %figure name font
      renewcommand{cfttabfont}{ } %table name font
      cftsetindents{section}{3.5em}{1.75em}
      cftsetindents{subsection}{7 em}{2.5em}

      setlength{cftsecindent}{3.5em}
      setlength{cftsubsecindent}{7em}
      setlength{cftsubsubsecindent}{9em}

      %list of figures, tables, and equations settings

      addto{captionsenglish}{renewcommandlistfigurename{LIST OF FIGURES}}
      renewcommand{cftloftitlefont}{hfillLarge}
      renewcommand{cftafterloftitle}{hfill}
      setlength{cftbeforeloftitleskip}{-3em}

      addto{captionsenglish}{renewcommandlisttablename{LIST OF TABLES}}
      renewcommand{cftlottitlefont}{hfillLarge}
      renewcommand{cftafterlottitle}{hfill}
      setlength{cftbeforelottitleskip}{-3em}

      addto{captionsenglish}{renewcommandlistequationsname{LIST OF EQUATIONS}}
      newcommand{listequationsname}{LIST OF EQUATIONS}
      newlistof{myequations}{equ}{listequationsname}
      newcommand{myequations}[1]{%
      addcontentsline{equ}{myequations}{protectnumberline{theequation}#1}par}

      renewcommand{cftequtitlefont}{hfillLarge}
      renewcommand{cftafterequtitle}{hfillhfill}
      setlength{cftbeforeequtitleskip}{-3em}

      % title format settings
      titleformat{section}[block]{normalsizebfseries}{thesection}{3 pt}{}
      titleformat{subsection}[block]{normalsizebfseriesitshape}{thesubsection}{3 pt}{}
      titlespacing{subsection}{0.5in}{0cm}{0cm}
      titleformat{subsubsection}[block]{normalsizeitshape}{thesubsubsection}{3 pt}{}
      titlespacing{subsubsection}{0.5in}{0cm}{0cm}
      titleformat*{paragraph}{normalsizebfseries}
      titleformat*{subparagraph}{normalsizebfseries}

      % paragraph settings
      setlength{parindent}{0.5in}
      setlength{parskip}{1mm}
      usepackage{indentfirst}
      newcommandtab[1][0.5in]{hspace*{#1}}

      %margin settings
      geometry{paper=a4paper,top=3cm,bottom=3cm,left=3.5cm,right=2.5cm}


      %biblography settings

      addto{captionsenglish}{renewcommand{bibname}{REFERENCES}}
      hypersetup{
      colorlinks=true,
      linkcolor=black,
      filecolor=black,
      citecolor=black,
      urlcolor=blue,
      }

      newenvironment{subs}
      {adjustwidth{7ex}{0pt}}
      {endadjustwidth}

      newenvironment{listindent}
      {adjustwidth{8.4ex}{0pt}}
      {endadjustwidth}
      begin{document}

      % chapter settings%
      titleformat{chapter}[display]
      {normalfontLargecentering}{chaptertitlenamethechapter}{0pt}{uppercase}
      titlespacing*{chapter}{0pt}{-40pt}{20pt}
      renewcommand{chaptername}{CHAPTER }

      pagenumbering{roman}
      pagestyle{plain}


      include{preChapters/TitlePage}
      include{preChapters/CopyrightPage}
      %include{preChapters/SignaturePage}
      %include{preChapters/Declaration}
      include{preChapters/Acknowledgment}
      include{preChapters/Abstract}
      phantomsection

      %setcounter{tocdepth}{4}

      % LIST OF CONTENTS/FIGURES/TABLES PAGES
      setlength{cftbeforetoctitleskip}{0pt}
      setlength{cftbeforeloftitleskip}{0pt}
      setlength{cftbeforelottitleskip}{0pt}
      addcontentsline{toc}{chapter}{contentsname}
      tableofcontents
      cleardoublepage
      setlength{cftfigindent}{0pt} % remove indentation from figures in lof

      letorigaddvspaceaddvspace
      renewcommand{addvspace}[1]{}
      phantomsection
      addcontentsline{toc}{chapter}{listfigurename}
      listoffigures
      cleardoublepage

      setlength{cfttabindent}{0pt} % remove indentation from figures in lof
      phantomsection
      addcontentsline{toc}{chapter}{listtablename}
      listoftables
      cleardoublepage

      setlength{cfttabindent}{0pt} % remove indentation from figures in lof
      phantomsection
      addcontentsline{toc}{chapter}{listequationsname}
      listofmyequations
      cleardoublepage
      renewcommand{addvspace}[1]{origaddvspace{#1}}

      addtocontents{toc}{vspace{1cm}Chapterhfill Pageparvspace{2cm}}
      addtocontents{lof}{vspace{1cm}Figurehfill Pageparvspace{2cm}}
      addtocontents{lot}{vspace{1cm}Tablehfill Pageparvspace{2cm}}
      addtocontents{equ}{vspace{1cm}Equationhfill Pageparvspace{2cm}}


      pagenumbering{arabic}


      I would appreciate any help. Thank you in advance.







      page-numbering tocloft






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Jul 12 at 21:55









      Nanis

      1




      1





      bumped to the homepage by Community 58 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.







      bumped to the homepage by Community 58 mins ago


      This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
























          1 Answer
          1






          active

          oldest

          votes

















          up vote
          0
          down vote













          It turns out that in one of the include statements, specifically



          include{preChapters/CopyrightPage}


          I placed



          pagestyle{empty}


          Then forgot to undo this with a



          pagestyle{plain}


          after the



          pagebreak


          within.



          pagestyle{empty}


          Shows the page number only on the first page of each chapter.



          Placing this



          pagestyle{plain}


          fixed the issue.



          The only needed change here would be at the level of the include statements.



          include{preChapters/TitlePage}
          include{preChapters/CopyrightPage}
          %include{preChapters/SignaturePage}
          %include{preChapters/Declaration}
          pagestyle{plain} % this is the added line
          include{preChapters/Acknowledgment}
          include{preChapters/Abstract}
          phantomsection


          Sorry if this was a trivial issue. It wasn't for me. Thank you for your patience.






          share|improve this answer





















            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "85"
            };
            initTagRenderer("".split(" "), "".split(" "), channelOptions);

            StackExchange.using("externalEditor", function() {
            // Have to fire editor after snippets, if snippets enabled
            if (StackExchange.settings.snippets.snippetsEnabled) {
            StackExchange.using("snippets", function() {
            createEditor();
            });
            }
            else {
            createEditor();
            }
            });

            function createEditor() {
            StackExchange.prepareEditor({
            heartbeatType: 'answer',
            convertImagesToLinks: false,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: null,
            bindNavPrevention: true,
            postfix: "",
            imageUploader: {
            brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
            contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
            allowUrls: true
            },
            onDemand: true,
            discardSelector: ".discard-answer"
            ,immediatelyShowMarkdownHelp:true
            });


            }
            });














            draft saved

            draft discarded


















            StackExchange.ready(
            function () {
            StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f440410%2fthe-page-numbering-of-the-pages-spanned-by-a-long-toc-works-only-for-the-first-p%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes








            up vote
            0
            down vote













            It turns out that in one of the include statements, specifically



            include{preChapters/CopyrightPage}


            I placed



            pagestyle{empty}


            Then forgot to undo this with a



            pagestyle{plain}


            after the



            pagebreak


            within.



            pagestyle{empty}


            Shows the page number only on the first page of each chapter.



            Placing this



            pagestyle{plain}


            fixed the issue.



            The only needed change here would be at the level of the include statements.



            include{preChapters/TitlePage}
            include{preChapters/CopyrightPage}
            %include{preChapters/SignaturePage}
            %include{preChapters/Declaration}
            pagestyle{plain} % this is the added line
            include{preChapters/Acknowledgment}
            include{preChapters/Abstract}
            phantomsection


            Sorry if this was a trivial issue. It wasn't for me. Thank you for your patience.






            share|improve this answer

























              up vote
              0
              down vote













              It turns out that in one of the include statements, specifically



              include{preChapters/CopyrightPage}


              I placed



              pagestyle{empty}


              Then forgot to undo this with a



              pagestyle{plain}


              after the



              pagebreak


              within.



              pagestyle{empty}


              Shows the page number only on the first page of each chapter.



              Placing this



              pagestyle{plain}


              fixed the issue.



              The only needed change here would be at the level of the include statements.



              include{preChapters/TitlePage}
              include{preChapters/CopyrightPage}
              %include{preChapters/SignaturePage}
              %include{preChapters/Declaration}
              pagestyle{plain} % this is the added line
              include{preChapters/Acknowledgment}
              include{preChapters/Abstract}
              phantomsection


              Sorry if this was a trivial issue. It wasn't for me. Thank you for your patience.






              share|improve this answer























                up vote
                0
                down vote










                up vote
                0
                down vote









                It turns out that in one of the include statements, specifically



                include{preChapters/CopyrightPage}


                I placed



                pagestyle{empty}


                Then forgot to undo this with a



                pagestyle{plain}


                after the



                pagebreak


                within.



                pagestyle{empty}


                Shows the page number only on the first page of each chapter.



                Placing this



                pagestyle{plain}


                fixed the issue.



                The only needed change here would be at the level of the include statements.



                include{preChapters/TitlePage}
                include{preChapters/CopyrightPage}
                %include{preChapters/SignaturePage}
                %include{preChapters/Declaration}
                pagestyle{plain} % this is the added line
                include{preChapters/Acknowledgment}
                include{preChapters/Abstract}
                phantomsection


                Sorry if this was a trivial issue. It wasn't for me. Thank you for your patience.






                share|improve this answer












                It turns out that in one of the include statements, specifically



                include{preChapters/CopyrightPage}


                I placed



                pagestyle{empty}


                Then forgot to undo this with a



                pagestyle{plain}


                after the



                pagebreak


                within.



                pagestyle{empty}


                Shows the page number only on the first page of each chapter.



                Placing this



                pagestyle{plain}


                fixed the issue.



                The only needed change here would be at the level of the include statements.



                include{preChapters/TitlePage}
                include{preChapters/CopyrightPage}
                %include{preChapters/SignaturePage}
                %include{preChapters/Declaration}
                pagestyle{plain} % this is the added line
                include{preChapters/Acknowledgment}
                include{preChapters/Abstract}
                phantomsection


                Sorry if this was a trivial issue. It wasn't for me. Thank you for your patience.







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Jul 14 at 10:52









                Nanis

                1




                1






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to TeX - LaTeX Stack Exchange!


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.





                    Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


                    Please pay close attention to the following guidance:


                    • Please be sure to answer the question. Provide details and share your research!

                    But avoid



                    • Asking for help, clarification, or responding to other answers.

                    • Making statements based on opinion; back them up with references or personal experience.


                    To learn more, see our tips on writing great answers.




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f440410%2fthe-page-numbering-of-the-pages-spanned-by-a-long-toc-works-only-for-the-first-p%23new-answer', 'question_page');
                    }
                    );

                    Post as a guest















                    Required, but never shown





















































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown

































                    Required, but never shown














                    Required, but never shown












                    Required, but never shown







                    Required, but never shown







                    Popular posts from this blog

                    Accessing regular linux commands in Huawei's Dopra Linux

                    Can't connect RFCOMM socket: Host is down

                    Kernel panic - not syncing: Fatal Exception in Interrupt