Problems with the table of contentsTable of contents problemsPretty Table of Contentsformatting of the table...

Fully-Firstable Anagram Sets

Can I ask the recruiters in my resume to put the reason why I am rejected?

meaning of に in 本当に?

Why doesn't H₄O²⁺ exist?

Can you really stack all of this on an Opportunity Attack?

What does "Puller Prush Person" mean?

How does one intimidate enemies without having the capacity for violence?

Why is Minecraft giving an OpenGL error?

Malcev's paper "On a class of homogeneous spaces" in English

Codimension of non-flat locus

Modeling an IP Address

What is a clear way to write a bar that has an extra beat?

Could an aircraft fly or hover using only jets of compressed air?

Character reincarnated...as a snail

What are these boxed doors outside store fronts in New York?

What's the output of a record needle playing an out-of-speed record

Can I make popcorn with any corn?

What's the point of deactivating Num Lock on login screens?

Can a vampire attack twice with their claws using Multiattack?

Why can't I see bouncing of a switch on an oscilloscope?

Languages that we cannot (dis)prove to be Context-Free

Replacing matching entries in one column of a file by another column from a different file

Important Resources for Dark Age Civilizations?

I'm flying to France today and my passport expires in less than 2 months



Problems with the table of contents


Table of contents problemsPretty Table of Contentsformatting of the table of contentsFormat table of contents with LaTexPage number on the left with book classVery specifically customized sections and table of contentsHow to show Mini table only sections in a chapter not other chapter?Table of contents amsartAdd entry “Contents” in Table of ContentsProblems with Table of contents and Header/Footer













0















I am facing three types of problems with the table of contents.



First, I want to remove underlining (from the section titles) and bold (from the chapter titles) from the table of contents. The page now looks like this:



enter image description here



For context, the reason the section titles have underlined text is that I have used underline for all section titles, as given in the below picture, which is the university formatting rule for theses:



enter image description here



I do not know, though, why the chapter titles are turning bold.



The second problem is that, as you can see, the table of contents does not include INTRODUCTION as the first chapter. I did use chapter{} code for INTRODUCTION as well though.



The Latex code for my document is large, so I am just including the code until the first chapter (INTRODUCTION) below. I hope it helps.



documentclass[12pt]{report}
usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
usepackage{setspace}
usepackage{amsbsy}
usepackage{fancyhdr}
usepackage{lipsum}
usepackage{graphicx}
usepackage{enumitem}
usepackage{textcomp}
usepackage{lscape}
usepackage{amsmath}
usepackage{calc}
usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.

newlength{depthofsumsign}
setlength{depthofsumsign}{depthof{$sum$}}
newlength{totalheightofsumsign}
newlength{heightanddepthofargument}

usepackage{pdflscape,booktabs}
usepackage[flushleft]{threeparttable}
renewcommandTPTtagStyle{textit}
usepackage[font=it,skip=0.5baselineskip]{caption} % italic text for captions

%to put page numbers as the header
fancyhf{}
fancyhead[C]{thepage}
pagestyle{fancy}

titleformat{chapter}{normalfontcentering}{}{0pt}{}
titlelabel{}
titlespacing*{chapter}{0pt}{-25pt}{4pt}

titleformat{section}{normalfontcentering}{}{0pt}{}

%koleygr: Redefining chapter to include thispagestyle{fancy}
letoldchapterchapter
makeatletter
defchapter{%
@ifstar{@Starred}{@nonStarred}%
}
def@Starred{%
@ifnextchar[%
{GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
{@StarredWithout}%
}
def@StarredWith[#1]#2{%
oldchapter*{#2}%
thispagestyle{fancy}
}
def@StarredWithout#1{
oldchapter*{#1}%
thispagestyle{fancy}
}
def@nonStarred{%
@ifnextchar[%
{@nonStarredWith}%
{@nonStarredWithout}%
}
def@nonStarredWith[#1]#2{%
oldchapter[#1]{#2}%
thispagestyle{fancy}
}
def@nonStarredWithout#1{%
oldchapter{#1}%
thispagestyle{fancy}
}
makeatother

interfootnotelinepenalty=10000

begin{document}

setlength{headheight}{50pt} %to note where the header lies.
setlength{headsep}{15pt} %to set the distance between header and the first line after it.

renewcommand{headrulewidth}{0pt}
doublespacing
thispagestyle{empty}
begin{center}
vspace*{0.2in}
THESIS TITLE\
vspace*{0.4in}
by\
Samyam Shrestha\

vspace*{1.2in}
singlespacing
A thesis submitted in partial fulfillment\
of the requirements for the degree\
doublespacing
of\
Master of Science\
in\
Applied Economics\

vspace*{1in}
UNIVERSITY\
University location\
vspace*{0.2in}
Date
end{center}
pagebreak

pagenumbering{gobble}
begin{center}
vspace*{1in}
textcopyright COPYRIGHT\
by\
Samyam Shrestha\
2019\
All Rights Reserved
end{center}
pagebreak

begin{center}
ACKNOWLEDGEMENTS
end{center}

Acknowledgment text

pagebreak
tableofcontents

pagebreak

begin{center}
ABSTRACT
end{center}
singlespacing
noindent
Abstract text\


pagebreak

pagenumbering{arabic}
setcounter{page}{1}
doublespacing

chapter{INTRODUCTION}

Introduction starts


Third, and this is just a trivial problem, but is there any way I can remove the numbering in the section titles (and just keep the numbering in the chapter titles)?



Edit: For the third problem, I did try using section*{underline{}} command, but it hid those section titles from the table of contents altogether (and only showed the chapter title).



Thanks a lot!










share|improve this question





























    0















    I am facing three types of problems with the table of contents.



    First, I want to remove underlining (from the section titles) and bold (from the chapter titles) from the table of contents. The page now looks like this:



    enter image description here



    For context, the reason the section titles have underlined text is that I have used underline for all section titles, as given in the below picture, which is the university formatting rule for theses:



    enter image description here



    I do not know, though, why the chapter titles are turning bold.



    The second problem is that, as you can see, the table of contents does not include INTRODUCTION as the first chapter. I did use chapter{} code for INTRODUCTION as well though.



    The Latex code for my document is large, so I am just including the code until the first chapter (INTRODUCTION) below. I hope it helps.



    documentclass[12pt]{report}
    usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
    usepackage{setspace}
    usepackage{amsbsy}
    usepackage{fancyhdr}
    usepackage{lipsum}
    usepackage{graphicx}
    usepackage{enumitem}
    usepackage{textcomp}
    usepackage{lscape}
    usepackage{amsmath}
    usepackage{calc}
    usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.

    newlength{depthofsumsign}
    setlength{depthofsumsign}{depthof{$sum$}}
    newlength{totalheightofsumsign}
    newlength{heightanddepthofargument}

    usepackage{pdflscape,booktabs}
    usepackage[flushleft]{threeparttable}
    renewcommandTPTtagStyle{textit}
    usepackage[font=it,skip=0.5baselineskip]{caption} % italic text for captions

    %to put page numbers as the header
    fancyhf{}
    fancyhead[C]{thepage}
    pagestyle{fancy}

    titleformat{chapter}{normalfontcentering}{}{0pt}{}
    titlelabel{}
    titlespacing*{chapter}{0pt}{-25pt}{4pt}

    titleformat{section}{normalfontcentering}{}{0pt}{}

    %koleygr: Redefining chapter to include thispagestyle{fancy}
    letoldchapterchapter
    makeatletter
    defchapter{%
    @ifstar{@Starred}{@nonStarred}%
    }
    def@Starred{%
    @ifnextchar[%
    {GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
    {@StarredWithout}%
    }
    def@StarredWith[#1]#2{%
    oldchapter*{#2}%
    thispagestyle{fancy}
    }
    def@StarredWithout#1{
    oldchapter*{#1}%
    thispagestyle{fancy}
    }
    def@nonStarred{%
    @ifnextchar[%
    {@nonStarredWith}%
    {@nonStarredWithout}%
    }
    def@nonStarredWith[#1]#2{%
    oldchapter[#1]{#2}%
    thispagestyle{fancy}
    }
    def@nonStarredWithout#1{%
    oldchapter{#1}%
    thispagestyle{fancy}
    }
    makeatother

    interfootnotelinepenalty=10000

    begin{document}

    setlength{headheight}{50pt} %to note where the header lies.
    setlength{headsep}{15pt} %to set the distance between header and the first line after it.

    renewcommand{headrulewidth}{0pt}
    doublespacing
    thispagestyle{empty}
    begin{center}
    vspace*{0.2in}
    THESIS TITLE\
    vspace*{0.4in}
    by\
    Samyam Shrestha\

    vspace*{1.2in}
    singlespacing
    A thesis submitted in partial fulfillment\
    of the requirements for the degree\
    doublespacing
    of\
    Master of Science\
    in\
    Applied Economics\

    vspace*{1in}
    UNIVERSITY\
    University location\
    vspace*{0.2in}
    Date
    end{center}
    pagebreak

    pagenumbering{gobble}
    begin{center}
    vspace*{1in}
    textcopyright COPYRIGHT\
    by\
    Samyam Shrestha\
    2019\
    All Rights Reserved
    end{center}
    pagebreak

    begin{center}
    ACKNOWLEDGEMENTS
    end{center}

    Acknowledgment text

    pagebreak
    tableofcontents

    pagebreak

    begin{center}
    ABSTRACT
    end{center}
    singlespacing
    noindent
    Abstract text\


    pagebreak

    pagenumbering{arabic}
    setcounter{page}{1}
    doublespacing

    chapter{INTRODUCTION}

    Introduction starts


    Third, and this is just a trivial problem, but is there any way I can remove the numbering in the section titles (and just keep the numbering in the chapter titles)?



    Edit: For the third problem, I did try using section*{underline{}} command, but it hid those section titles from the table of contents altogether (and only showed the chapter title).



    Thanks a lot!










    share|improve this question



























      0












      0








      0








      I am facing three types of problems with the table of contents.



      First, I want to remove underlining (from the section titles) and bold (from the chapter titles) from the table of contents. The page now looks like this:



      enter image description here



      For context, the reason the section titles have underlined text is that I have used underline for all section titles, as given in the below picture, which is the university formatting rule for theses:



      enter image description here



      I do not know, though, why the chapter titles are turning bold.



      The second problem is that, as you can see, the table of contents does not include INTRODUCTION as the first chapter. I did use chapter{} code for INTRODUCTION as well though.



      The Latex code for my document is large, so I am just including the code until the first chapter (INTRODUCTION) below. I hope it helps.



      documentclass[12pt]{report}
      usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
      usepackage{setspace}
      usepackage{amsbsy}
      usepackage{fancyhdr}
      usepackage{lipsum}
      usepackage{graphicx}
      usepackage{enumitem}
      usepackage{textcomp}
      usepackage{lscape}
      usepackage{amsmath}
      usepackage{calc}
      usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.

      newlength{depthofsumsign}
      setlength{depthofsumsign}{depthof{$sum$}}
      newlength{totalheightofsumsign}
      newlength{heightanddepthofargument}

      usepackage{pdflscape,booktabs}
      usepackage[flushleft]{threeparttable}
      renewcommandTPTtagStyle{textit}
      usepackage[font=it,skip=0.5baselineskip]{caption} % italic text for captions

      %to put page numbers as the header
      fancyhf{}
      fancyhead[C]{thepage}
      pagestyle{fancy}

      titleformat{chapter}{normalfontcentering}{}{0pt}{}
      titlelabel{}
      titlespacing*{chapter}{0pt}{-25pt}{4pt}

      titleformat{section}{normalfontcentering}{}{0pt}{}

      %koleygr: Redefining chapter to include thispagestyle{fancy}
      letoldchapterchapter
      makeatletter
      defchapter{%
      @ifstar{@Starred}{@nonStarred}%
      }
      def@Starred{%
      @ifnextchar[%
      {GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
      {@StarredWithout}%
      }
      def@StarredWith[#1]#2{%
      oldchapter*{#2}%
      thispagestyle{fancy}
      }
      def@StarredWithout#1{
      oldchapter*{#1}%
      thispagestyle{fancy}
      }
      def@nonStarred{%
      @ifnextchar[%
      {@nonStarredWith}%
      {@nonStarredWithout}%
      }
      def@nonStarredWith[#1]#2{%
      oldchapter[#1]{#2}%
      thispagestyle{fancy}
      }
      def@nonStarredWithout#1{%
      oldchapter{#1}%
      thispagestyle{fancy}
      }
      makeatother

      interfootnotelinepenalty=10000

      begin{document}

      setlength{headheight}{50pt} %to note where the header lies.
      setlength{headsep}{15pt} %to set the distance between header and the first line after it.

      renewcommand{headrulewidth}{0pt}
      doublespacing
      thispagestyle{empty}
      begin{center}
      vspace*{0.2in}
      THESIS TITLE\
      vspace*{0.4in}
      by\
      Samyam Shrestha\

      vspace*{1.2in}
      singlespacing
      A thesis submitted in partial fulfillment\
      of the requirements for the degree\
      doublespacing
      of\
      Master of Science\
      in\
      Applied Economics\

      vspace*{1in}
      UNIVERSITY\
      University location\
      vspace*{0.2in}
      Date
      end{center}
      pagebreak

      pagenumbering{gobble}
      begin{center}
      vspace*{1in}
      textcopyright COPYRIGHT\
      by\
      Samyam Shrestha\
      2019\
      All Rights Reserved
      end{center}
      pagebreak

      begin{center}
      ACKNOWLEDGEMENTS
      end{center}

      Acknowledgment text

      pagebreak
      tableofcontents

      pagebreak

      begin{center}
      ABSTRACT
      end{center}
      singlespacing
      noindent
      Abstract text\


      pagebreak

      pagenumbering{arabic}
      setcounter{page}{1}
      doublespacing

      chapter{INTRODUCTION}

      Introduction starts


      Third, and this is just a trivial problem, but is there any way I can remove the numbering in the section titles (and just keep the numbering in the chapter titles)?



      Edit: For the third problem, I did try using section*{underline{}} command, but it hid those section titles from the table of contents altogether (and only showed the chapter title).



      Thanks a lot!










      share|improve this question
















      I am facing three types of problems with the table of contents.



      First, I want to remove underlining (from the section titles) and bold (from the chapter titles) from the table of contents. The page now looks like this:



      enter image description here



      For context, the reason the section titles have underlined text is that I have used underline for all section titles, as given in the below picture, which is the university formatting rule for theses:



      enter image description here



      I do not know, though, why the chapter titles are turning bold.



      The second problem is that, as you can see, the table of contents does not include INTRODUCTION as the first chapter. I did use chapter{} code for INTRODUCTION as well though.



      The Latex code for my document is large, so I am just including the code until the first chapter (INTRODUCTION) below. I hope it helps.



      documentclass[12pt]{report}
      usepackage[left=1.5in, right=1in, top=1in, bottom=1.5in]{geometry}
      usepackage{setspace}
      usepackage{amsbsy}
      usepackage{fancyhdr}
      usepackage{lipsum}
      usepackage{graphicx}
      usepackage{enumitem}
      usepackage{textcomp}
      usepackage{lscape}
      usepackage{amsmath}
      usepackage{calc}
      usepackage[rm,tiny]{titlesec} %added this to change the chapter title's font as default regular text font.

      newlength{depthofsumsign}
      setlength{depthofsumsign}{depthof{$sum$}}
      newlength{totalheightofsumsign}
      newlength{heightanddepthofargument}

      usepackage{pdflscape,booktabs}
      usepackage[flushleft]{threeparttable}
      renewcommandTPTtagStyle{textit}
      usepackage[font=it,skip=0.5baselineskip]{caption} % italic text for captions

      %to put page numbers as the header
      fancyhf{}
      fancyhead[C]{thepage}
      pagestyle{fancy}

      titleformat{chapter}{normalfontcentering}{}{0pt}{}
      titlelabel{}
      titlespacing*{chapter}{0pt}{-25pt}{4pt}

      titleformat{section}{normalfontcentering}{}{0pt}{}

      %koleygr: Redefining chapter to include thispagestyle{fancy}
      letoldchapterchapter
      makeatletter
      defchapter{%
      @ifstar{@Starred}{@nonStarred}%
      }
      def@Starred{%
      @ifnextchar[%
      {GenericWarning{}{Warning: A starred section can not have parameters. I am going to ignore them!}@StarredWith}%
      {@StarredWithout}%
      }
      def@StarredWith[#1]#2{%
      oldchapter*{#2}%
      thispagestyle{fancy}
      }
      def@StarredWithout#1{
      oldchapter*{#1}%
      thispagestyle{fancy}
      }
      def@nonStarred{%
      @ifnextchar[%
      {@nonStarredWith}%
      {@nonStarredWithout}%
      }
      def@nonStarredWith[#1]#2{%
      oldchapter[#1]{#2}%
      thispagestyle{fancy}
      }
      def@nonStarredWithout#1{%
      oldchapter{#1}%
      thispagestyle{fancy}
      }
      makeatother

      interfootnotelinepenalty=10000

      begin{document}

      setlength{headheight}{50pt} %to note where the header lies.
      setlength{headsep}{15pt} %to set the distance between header and the first line after it.

      renewcommand{headrulewidth}{0pt}
      doublespacing
      thispagestyle{empty}
      begin{center}
      vspace*{0.2in}
      THESIS TITLE\
      vspace*{0.4in}
      by\
      Samyam Shrestha\

      vspace*{1.2in}
      singlespacing
      A thesis submitted in partial fulfillment\
      of the requirements for the degree\
      doublespacing
      of\
      Master of Science\
      in\
      Applied Economics\

      vspace*{1in}
      UNIVERSITY\
      University location\
      vspace*{0.2in}
      Date
      end{center}
      pagebreak

      pagenumbering{gobble}
      begin{center}
      vspace*{1in}
      textcopyright COPYRIGHT\
      by\
      Samyam Shrestha\
      2019\
      All Rights Reserved
      end{center}
      pagebreak

      begin{center}
      ACKNOWLEDGEMENTS
      end{center}

      Acknowledgment text

      pagebreak
      tableofcontents

      pagebreak

      begin{center}
      ABSTRACT
      end{center}
      singlespacing
      noindent
      Abstract text\


      pagebreak

      pagenumbering{arabic}
      setcounter{page}{1}
      doublespacing

      chapter{INTRODUCTION}

      Introduction starts


      Third, and this is just a trivial problem, but is there any way I can remove the numbering in the section titles (and just keep the numbering in the chapter titles)?



      Edit: For the third problem, I did try using section*{underline{}} command, but it hid those section titles from the table of contents altogether (and only showed the chapter title).



      Thanks a lot!







      table-of-contents formatting bold underline






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 7 hours ago







      Samyam Shrestha

















      asked 8 hours ago









      Samyam ShresthaSamyam Shrestha

      374




      374






















          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
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483427%2fproblems-with-the-table-of-contents%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
















          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.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2ftex.stackexchange.com%2fquestions%2f483427%2fproblems-with-the-table-of-contents%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...

          Puerta de Hutt Referencias Enlaces externos Menú de navegación15°58′00″S 5°42′00″O /...

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