ToC header appears in next chapter

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP












4















I am writing a document in which I would like to include table of contents, after which I will write a prologue.



The issue is that the second page of the chapter, has the header of the ToC, as seen in the following imageenter image description here



Any idea on how to add the proper header?



A sample code follows



documentclassbook
usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
UCTfalse
usepackageblindtext

begindocument

tableofcontents

chapter*Prologue
blindtext[5]
enddocument









share|improve this question


























    4















    I am writing a document in which I would like to include table of contents, after which I will write a prologue.



    The issue is that the second page of the chapter, has the header of the ToC, as seen in the following imageenter image description here



    Any idea on how to add the proper header?



    A sample code follows



    documentclassbook
    usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
    UCTfalse
    usepackageblindtext

    begindocument

    tableofcontents

    chapter*Prologue
    blindtext[5]
    enddocument









    share|improve this question
























      4












      4








      4








      I am writing a document in which I would like to include table of contents, after which I will write a prologue.



      The issue is that the second page of the chapter, has the header of the ToC, as seen in the following imageenter image description here



      Any idea on how to add the proper header?



      A sample code follows



      documentclassbook
      usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
      UCTfalse
      usepackageblindtext

      begindocument

      tableofcontents

      chapter*Prologue
      blindtext[5]
      enddocument









      share|improve this question














      I am writing a document in which I would like to include table of contents, after which I will write a prologue.



      The issue is that the second page of the chapter, has the header of the ToC, as seen in the following imageenter image description here



      Any idea on how to add the proper header?



      A sample code follows



      documentclassbook
      usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
      UCTfalse
      usepackageblindtext

      begindocument

      tableofcontents

      chapter*Prologue
      blindtext[5]
      enddocument






      table-of-contents header-footer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Mar 7 at 8:07









      ThanosThanos

      6,1461555107




      6,1461555107




















          2 Answers
          2






          active

          oldest

          votes


















          2














          suppressing the chapter name with chapter* causes the headers not to update. You can change that by adding markbothPrologue.



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext

          begindocument
          tableofcontents
          chapter*Prologue
          addcontentslinetocchapterPrologue % if you want to add the Prologue to TOC
          markbothPrologue % to change the header despite chapter* command
          blindtext[5]
          enddocument


          Here's the result:
          preview



          Hope this helps :)



          Edit: note that you will have to do this for every chapter you suppress with *, if you want it to change the headers, not just after the TOC.






          share|improve this answer


















          • 1





            Thank you very much for your help!

            – Thanos
            Mar 7 at 10:22











          • @Thanos you're welcome! :) glad it helped.

            – Superuser27
            Mar 7 at 11:07


















          3














          You can use frontmatter, mainmatter and backmatter commands and place the whole frontmatter inside a "group" (begingroup and endgroup commands) with a pagestyleplain command just after frontmatter:



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext
          titleTest
          begindocument


          maketitle
          begingroup
          pagestyleplain
          frontmatter
          tableofcontents
          chapter*Prologue
          blindtext[5]
          endgroup
          mainmatter
          chapterIntroduction
          blindtext[5]
          backmatter
          appendix
          chapterApp1
          blindtext[5]
          enddocument


          Check the headers and footers in the result of the above code to see if everything is as expected from you.






          share|improve this answer























          • Thank you very much for your help!

            – Thanos
            Mar 7 at 10:23











          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%2f478143%2ftoc-header-appears-in-next-chapter%23new-answer', 'question_page');

          );

          Post as a guest















          Required, but never shown

























          2 Answers
          2






          active

          oldest

          votes








          2 Answers
          2






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          2














          suppressing the chapter name with chapter* causes the headers not to update. You can change that by adding markbothPrologue.



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext

          begindocument
          tableofcontents
          chapter*Prologue
          addcontentslinetocchapterPrologue % if you want to add the Prologue to TOC
          markbothPrologue % to change the header despite chapter* command
          blindtext[5]
          enddocument


          Here's the result:
          preview



          Hope this helps :)



          Edit: note that you will have to do this for every chapter you suppress with *, if you want it to change the headers, not just after the TOC.






          share|improve this answer


















          • 1





            Thank you very much for your help!

            – Thanos
            Mar 7 at 10:22











          • @Thanos you're welcome! :) glad it helped.

            – Superuser27
            Mar 7 at 11:07















          2














          suppressing the chapter name with chapter* causes the headers not to update. You can change that by adding markbothPrologue.



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext

          begindocument
          tableofcontents
          chapter*Prologue
          addcontentslinetocchapterPrologue % if you want to add the Prologue to TOC
          markbothPrologue % to change the header despite chapter* command
          blindtext[5]
          enddocument


          Here's the result:
          preview



          Hope this helps :)



          Edit: note that you will have to do this for every chapter you suppress with *, if you want it to change the headers, not just after the TOC.






          share|improve this answer


















          • 1





            Thank you very much for your help!

            – Thanos
            Mar 7 at 10:22











          • @Thanos you're welcome! :) glad it helped.

            – Superuser27
            Mar 7 at 11:07













          2












          2








          2







          suppressing the chapter name with chapter* causes the headers not to update. You can change that by adding markbothPrologue.



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext

          begindocument
          tableofcontents
          chapter*Prologue
          addcontentslinetocchapterPrologue % if you want to add the Prologue to TOC
          markbothPrologue % to change the header despite chapter* command
          blindtext[5]
          enddocument


          Here's the result:
          preview



          Hope this helps :)



          Edit: note that you will have to do this for every chapter you suppress with *, if you want it to change the headers, not just after the TOC.






          share|improve this answer













          suppressing the chapter name with chapter* causes the headers not to update. You can change that by adding markbothPrologue.



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext

          begindocument
          tableofcontents
          chapter*Prologue
          addcontentslinetocchapterPrologue % if you want to add the Prologue to TOC
          markbothPrologue % to change the header despite chapter* command
          blindtext[5]
          enddocument


          Here's the result:
          preview



          Hope this helps :)



          Edit: note that you will have to do this for every chapter you suppress with *, if you want it to change the headers, not just after the TOC.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 7 at 8:52









          Superuser27Superuser27

          90316




          90316







          • 1





            Thank you very much for your help!

            – Thanos
            Mar 7 at 10:22











          • @Thanos you're welcome! :) glad it helped.

            – Superuser27
            Mar 7 at 11:07












          • 1





            Thank you very much for your help!

            – Thanos
            Mar 7 at 10:22











          • @Thanos you're welcome! :) glad it helped.

            – Superuser27
            Mar 7 at 11:07







          1




          1





          Thank you very much for your help!

          – Thanos
          Mar 7 at 10:22





          Thank you very much for your help!

          – Thanos
          Mar 7 at 10:22













          @Thanos you're welcome! :) glad it helped.

          – Superuser27
          Mar 7 at 11:07





          @Thanos you're welcome! :) glad it helped.

          – Superuser27
          Mar 7 at 11:07











          3














          You can use frontmatter, mainmatter and backmatter commands and place the whole frontmatter inside a "group" (begingroup and endgroup commands) with a pagestyleplain command just after frontmatter:



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext
          titleTest
          begindocument


          maketitle
          begingroup
          pagestyleplain
          frontmatter
          tableofcontents
          chapter*Prologue
          blindtext[5]
          endgroup
          mainmatter
          chapterIntroduction
          blindtext[5]
          backmatter
          appendix
          chapterApp1
          blindtext[5]
          enddocument


          Check the headers and footers in the result of the above code to see if everything is as expected from you.






          share|improve this answer























          • Thank you very much for your help!

            – Thanos
            Mar 7 at 10:23















          3














          You can use frontmatter, mainmatter and backmatter commands and place the whole frontmatter inside a "group" (begingroup and endgroup commands) with a pagestyleplain command just after frontmatter:



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext
          titleTest
          begindocument


          maketitle
          begingroup
          pagestyleplain
          frontmatter
          tableofcontents
          chapter*Prologue
          blindtext[5]
          endgroup
          mainmatter
          chapterIntroduction
          blindtext[5]
          backmatter
          appendix
          chapterApp1
          blindtext[5]
          enddocument


          Check the headers and footers in the result of the above code to see if everything is as expected from you.






          share|improve this answer























          • Thank you very much for your help!

            – Thanos
            Mar 7 at 10:23













          3












          3








          3







          You can use frontmatter, mainmatter and backmatter commands and place the whole frontmatter inside a "group" (begingroup and endgroup commands) with a pagestyleplain command just after frontmatter:



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext
          titleTest
          begindocument


          maketitle
          begingroup
          pagestyleplain
          frontmatter
          tableofcontents
          chapter*Prologue
          blindtext[5]
          endgroup
          mainmatter
          chapterIntroduction
          blindtext[5]
          backmatter
          appendix
          chapterApp1
          blindtext[5]
          enddocument


          Check the headers and footers in the result of the above code to see if everything is as expected from you.






          share|improve this answer













          You can use frontmatter, mainmatter and backmatter commands and place the whole frontmatter inside a "group" (begingroup and endgroup commands) with a pagestyleplain command just after frontmatter:



          documentclassbook
          usepackage[Conny]fncychap%Options: Sonny, Lenny, Glenn, Conny, Rejne, Bjarne, Bjornstrup
          UCTfalse
          usepackageblindtext
          titleTest
          begindocument


          maketitle
          begingroup
          pagestyleplain
          frontmatter
          tableofcontents
          chapter*Prologue
          blindtext[5]
          endgroup
          mainmatter
          chapterIntroduction
          blindtext[5]
          backmatter
          appendix
          chapterApp1
          blindtext[5]
          enddocument


          Check the headers and footers in the result of the above code to see if everything is as expected from you.







          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Mar 7 at 9:03









          koleygrkoleygr

          13.4k11039




          13.4k11039












          • Thank you very much for your help!

            – Thanos
            Mar 7 at 10:23

















          • Thank you very much for your help!

            – Thanos
            Mar 7 at 10:23
















          Thank you very much for your help!

          – Thanos
          Mar 7 at 10:23





          Thank you very much for your help!

          – Thanos
          Mar 7 at 10:23

















          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%2f478143%2ftoc-header-appears-in-next-chapter%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

          How to check contact read email or not when send email to Individual?

          Bahrain

          Postfix configuration issue with fips on centos 7; mailgun relay