LaTex: Table of Contents entry number 1 referring to Title Page instead of the actual page

Failed to fetch jessie backports repository

Would this custom Sorcerer variant that can only learn any verbal-component-only spell be unbalanced?

How can I quit an app using Terminal?

What does "I’d sit this one out, Cap," imply or mean in the context?

Lay out the Carpet

How do I go from 300 unfinished/half written blog posts, to published posts?

Is there a korbon needed for conversion?

Pole-zeros of a real-valued causal FIR system

What happens if you roll doubles 3 times then land on "Go to jail?"

How to pronounce the slash sign

Avoiding estate tax by giving multiple gifts

How long to clear the 'suck zone' of a turbofan after start is initiated?

What grammatical function is や performing here?

I'm in charge of equipment buying but no one's ever happy with what I choose. How to fix this?

Is a stroke of luck acceptable after a series of unfavorable events?

Inappropriate reference requests from Journal reviewers

Why Were Madagascar and New Zealand Discovered So Late?

How do I rename a Linux host without needing to reboot for the rename to take effect?

Is `x >> pure y` equivalent to `liftM (const y) x`

Do sorcerers' Subtle Spells require a skill check to be unseen?

Replace character with another only if repeated and not part of a word

Class Action - which options I have?

How to safely derail a train during transit?

How easy is it to start Magic from scratch?



LaTex: Table of Contents entry number 1 referring to Title Page instead of the actual page














0















In Table of Contents, first entry is Declaration numbered Roman one (i). But when I click on Declaration it refers back to Title Page even though there isn't a page number. The page number starts from Declaration. The referring works correctly from List of Figures.



Code Sample of main.tex



documentclass[Times,12pt,oneside,openany,print,index]{book}
usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
usepackage[english]{babel}
usepackage[utf8]{inputenc}
usepackage{csquotes}
usepackage{amsmath}
pagestyle{plain}
usepackage{graphicx}
graphicspath{/images}
usepackage{caption}
usepackage{array}
usepackage[nottoc]{tocbibind}
usepackage[normalem]{ulem}

usepackage{hyperref}
hypersetup{
colorlinks=true,
linkcolor=black,
filecolor=magenta,
urlcolor=blue,
}
urlstyle{same}

setlength{parindent}{0em}

usepackage{nomencl}
renewcommand{nompreamble}{The next list describes several symbols & abbreviation that will be later used within the body of the document}
makenomenclature

usepackage[backend=biber,style=ieee,sorting=ynt]{biblatex}
addbibresource{bibliography/references.bib}

letcleardoublepage=clearpage

begin{document}

input{core/titlepage}

frontmatter

addcontentsline{toc}{chapter}{Declaration}
input{core/declaration}

addcontentsline{toc}{chapter}{Approval}
input{core/approval}

addcontentsline{toc}{chapter}{Ethics Statement}
input{core/ethics_statement}

addcontentsline{toc}{chapter}{Abstract}
input{core/abstract}

addcontentsline{toc}{chapter}{Dedication}
input{core/dedication}

addcontentsline{toc}{chapter}{Acknowledgment}
input{core/acknowledgement}

renewcommand{contentsname}{Table of Contents}
cleardoublepage
addcontentsline{toc}{chapter}{Table of Contents}
tableofcontents

listoffigures
listoftables

printnomenclature
addcontentsline{toc}{chapter}{Nomenclature}

mainmatter

chapter{Introduction}
input{chapters/chapter_1.tex}

chapter{Related Work}
input{chapters/chapter_2.tex}

chapter{Prediction Modeling using Decision Tree}
input{chapters/chapter_5.tex}

chapter{First and Second}
input{chapters/chapter_10.tex}

printbibliography
addcontentsline{toc}{chapter}{Bibliography}

% ********************************** Appendices ********************************
%begin{appendices} % Using appendices environment for more functionality
newpage
addcontentsline{toc}{chapter}{Appendix A How to install LaTeX}
input{Appendix/appendix_1}

newpage
addcontentsline{toc}{chapter}{Appendix B Overleaf: GitHub for LaTeX projects}
input{Appendix/appendix_2}
%end{appendices}

end{document}


Output of TOC:
enter image description here









share







New contributor




Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.

























    0















    In Table of Contents, first entry is Declaration numbered Roman one (i). But when I click on Declaration it refers back to Title Page even though there isn't a page number. The page number starts from Declaration. The referring works correctly from List of Figures.



    Code Sample of main.tex



    documentclass[Times,12pt,oneside,openany,print,index]{book}
    usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
    usepackage[english]{babel}
    usepackage[utf8]{inputenc}
    usepackage{csquotes}
    usepackage{amsmath}
    pagestyle{plain}
    usepackage{graphicx}
    graphicspath{/images}
    usepackage{caption}
    usepackage{array}
    usepackage[nottoc]{tocbibind}
    usepackage[normalem]{ulem}

    usepackage{hyperref}
    hypersetup{
    colorlinks=true,
    linkcolor=black,
    filecolor=magenta,
    urlcolor=blue,
    }
    urlstyle{same}

    setlength{parindent}{0em}

    usepackage{nomencl}
    renewcommand{nompreamble}{The next list describes several symbols & abbreviation that will be later used within the body of the document}
    makenomenclature

    usepackage[backend=biber,style=ieee,sorting=ynt]{biblatex}
    addbibresource{bibliography/references.bib}

    letcleardoublepage=clearpage

    begin{document}

    input{core/titlepage}

    frontmatter

    addcontentsline{toc}{chapter}{Declaration}
    input{core/declaration}

    addcontentsline{toc}{chapter}{Approval}
    input{core/approval}

    addcontentsline{toc}{chapter}{Ethics Statement}
    input{core/ethics_statement}

    addcontentsline{toc}{chapter}{Abstract}
    input{core/abstract}

    addcontentsline{toc}{chapter}{Dedication}
    input{core/dedication}

    addcontentsline{toc}{chapter}{Acknowledgment}
    input{core/acknowledgement}

    renewcommand{contentsname}{Table of Contents}
    cleardoublepage
    addcontentsline{toc}{chapter}{Table of Contents}
    tableofcontents

    listoffigures
    listoftables

    printnomenclature
    addcontentsline{toc}{chapter}{Nomenclature}

    mainmatter

    chapter{Introduction}
    input{chapters/chapter_1.tex}

    chapter{Related Work}
    input{chapters/chapter_2.tex}

    chapter{Prediction Modeling using Decision Tree}
    input{chapters/chapter_5.tex}

    chapter{First and Second}
    input{chapters/chapter_10.tex}

    printbibliography
    addcontentsline{toc}{chapter}{Bibliography}

    % ********************************** Appendices ********************************
    %begin{appendices} % Using appendices environment for more functionality
    newpage
    addcontentsline{toc}{chapter}{Appendix A How to install LaTeX}
    input{Appendix/appendix_1}

    newpage
    addcontentsline{toc}{chapter}{Appendix B Overleaf: GitHub for LaTeX projects}
    input{Appendix/appendix_2}
    %end{appendices}

    end{document}


    Output of TOC:
    enter image description here









    share







    New contributor




    Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
    Check out our Code of Conduct.























      0












      0








      0








      In Table of Contents, first entry is Declaration numbered Roman one (i). But when I click on Declaration it refers back to Title Page even though there isn't a page number. The page number starts from Declaration. The referring works correctly from List of Figures.



      Code Sample of main.tex



      documentclass[Times,12pt,oneside,openany,print,index]{book}
      usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
      usepackage[english]{babel}
      usepackage[utf8]{inputenc}
      usepackage{csquotes}
      usepackage{amsmath}
      pagestyle{plain}
      usepackage{graphicx}
      graphicspath{/images}
      usepackage{caption}
      usepackage{array}
      usepackage[nottoc]{tocbibind}
      usepackage[normalem]{ulem}

      usepackage{hyperref}
      hypersetup{
      colorlinks=true,
      linkcolor=black,
      filecolor=magenta,
      urlcolor=blue,
      }
      urlstyle{same}

      setlength{parindent}{0em}

      usepackage{nomencl}
      renewcommand{nompreamble}{The next list describes several symbols & abbreviation that will be later used within the body of the document}
      makenomenclature

      usepackage[backend=biber,style=ieee,sorting=ynt]{biblatex}
      addbibresource{bibliography/references.bib}

      letcleardoublepage=clearpage

      begin{document}

      input{core/titlepage}

      frontmatter

      addcontentsline{toc}{chapter}{Declaration}
      input{core/declaration}

      addcontentsline{toc}{chapter}{Approval}
      input{core/approval}

      addcontentsline{toc}{chapter}{Ethics Statement}
      input{core/ethics_statement}

      addcontentsline{toc}{chapter}{Abstract}
      input{core/abstract}

      addcontentsline{toc}{chapter}{Dedication}
      input{core/dedication}

      addcontentsline{toc}{chapter}{Acknowledgment}
      input{core/acknowledgement}

      renewcommand{contentsname}{Table of Contents}
      cleardoublepage
      addcontentsline{toc}{chapter}{Table of Contents}
      tableofcontents

      listoffigures
      listoftables

      printnomenclature
      addcontentsline{toc}{chapter}{Nomenclature}

      mainmatter

      chapter{Introduction}
      input{chapters/chapter_1.tex}

      chapter{Related Work}
      input{chapters/chapter_2.tex}

      chapter{Prediction Modeling using Decision Tree}
      input{chapters/chapter_5.tex}

      chapter{First and Second}
      input{chapters/chapter_10.tex}

      printbibliography
      addcontentsline{toc}{chapter}{Bibliography}

      % ********************************** Appendices ********************************
      %begin{appendices} % Using appendices environment for more functionality
      newpage
      addcontentsline{toc}{chapter}{Appendix A How to install LaTeX}
      input{Appendix/appendix_1}

      newpage
      addcontentsline{toc}{chapter}{Appendix B Overleaf: GitHub for LaTeX projects}
      input{Appendix/appendix_2}
      %end{appendices}

      end{document}


      Output of TOC:
      enter image description here









      share







      New contributor




      Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.












      In Table of Contents, first entry is Declaration numbered Roman one (i). But when I click on Declaration it refers back to Title Page even though there isn't a page number. The page number starts from Declaration. The referring works correctly from List of Figures.



      Code Sample of main.tex



      documentclass[Times,12pt,oneside,openany,print,index]{book}
      usepackage[a4paper,width=150mm,top=25mm,bottom=25mm]{geometry}
      usepackage[english]{babel}
      usepackage[utf8]{inputenc}
      usepackage{csquotes}
      usepackage{amsmath}
      pagestyle{plain}
      usepackage{graphicx}
      graphicspath{/images}
      usepackage{caption}
      usepackage{array}
      usepackage[nottoc]{tocbibind}
      usepackage[normalem]{ulem}

      usepackage{hyperref}
      hypersetup{
      colorlinks=true,
      linkcolor=black,
      filecolor=magenta,
      urlcolor=blue,
      }
      urlstyle{same}

      setlength{parindent}{0em}

      usepackage{nomencl}
      renewcommand{nompreamble}{The next list describes several symbols & abbreviation that will be later used within the body of the document}
      makenomenclature

      usepackage[backend=biber,style=ieee,sorting=ynt]{biblatex}
      addbibresource{bibliography/references.bib}

      letcleardoublepage=clearpage

      begin{document}

      input{core/titlepage}

      frontmatter

      addcontentsline{toc}{chapter}{Declaration}
      input{core/declaration}

      addcontentsline{toc}{chapter}{Approval}
      input{core/approval}

      addcontentsline{toc}{chapter}{Ethics Statement}
      input{core/ethics_statement}

      addcontentsline{toc}{chapter}{Abstract}
      input{core/abstract}

      addcontentsline{toc}{chapter}{Dedication}
      input{core/dedication}

      addcontentsline{toc}{chapter}{Acknowledgment}
      input{core/acknowledgement}

      renewcommand{contentsname}{Table of Contents}
      cleardoublepage
      addcontentsline{toc}{chapter}{Table of Contents}
      tableofcontents

      listoffigures
      listoftables

      printnomenclature
      addcontentsline{toc}{chapter}{Nomenclature}

      mainmatter

      chapter{Introduction}
      input{chapters/chapter_1.tex}

      chapter{Related Work}
      input{chapters/chapter_2.tex}

      chapter{Prediction Modeling using Decision Tree}
      input{chapters/chapter_5.tex}

      chapter{First and Second}
      input{chapters/chapter_10.tex}

      printbibliography
      addcontentsline{toc}{chapter}{Bibliography}

      % ********************************** Appendices ********************************
      %begin{appendices} % Using appendices environment for more functionality
      newpage
      addcontentsline{toc}{chapter}{Appendix A How to install LaTeX}
      input{Appendix/appendix_1}

      newpage
      addcontentsline{toc}{chapter}{Appendix B Overleaf: GitHub for LaTeX projects}
      input{Appendix/appendix_2}
      %end{appendices}

      end{document}


      Output of TOC:
      enter image description here







      biblatex table-of-contents





      share







      New contributor




      Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.










      share







      New contributor




      Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.








      share



      share






      New contributor




      Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.









      asked 56 secs ago









      Sakib AhmedSakib Ahmed

      1




      1




      New contributor




      Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.





      New contributor





      Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






      Sakib Ahmed is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
      Check out our Code of Conduct.






















          0






          active

          oldest

          votes











          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',
          autoActivateHeartbeat: false,
          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
          });


          }
          });






          Sakib Ahmed is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481843%2flatex-table-of-contents-entry-number-1-referring-to-title-page-instead-of-the-a%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          0






          active

          oldest

          votes








          0






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes








          Sakib Ahmed is a new contributor. Be nice, and check out our Code of Conduct.










          draft saved

          draft discarded


















          Sakib Ahmed is a new contributor. Be nice, and check out our Code of Conduct.













          Sakib Ahmed is a new contributor. Be nice, and check out our Code of Conduct.












          Sakib Ahmed is a new contributor. Be nice, and check out our Code of Conduct.
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f481843%2flatex-table-of-contents-entry-number-1-referring-to-title-page-instead-of-the-a%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

          El tren de la libertad Índice Antecedentes "Porque yo decido" Desarrollo de la...

          Castillo d'Acher Características Menú de navegación

          Connecting two nodes from the same mother node horizontallyTikZ: What EXACTLY does the the |- notation for...