How can I display a short chapter name in the header and a long chapter name in the ToC?long title in table...

Has the BBC provided arguments for saying Brexit being cancelled is unlikely?

Why do I get two different answers for this counting problem?

Problem of parity - Can we draw a closed path made up of 20 line segments...

How do we improve the relationship with a client software team that performs poorly and is becoming less collaborative?

Writing rule stating superpower from different root cause is bad writing

How old can references or sources in a thesis be?

Can a Warlock become Neutral Good?

I’m planning on buying a laser printer but concerned about the life cycle of toner in the machine

How does strength of boric acid solution increase in presence of salicylic acid?

Why, historically, did Gödel think CH was false?

What do the dots in this tr command do: tr .............A-Z A-ZA-Z <<< "JVPQBOV" (with 13 dots)

Why was the small council so happy for Tyrion to become the Master of Coin?

How is the claim "I am in New York only if I am in America" the same as "If I am in New York, then I am in America?

Approximately how much travel time was saved by the opening of the Suez Canal in 1869?

Which models of the Boeing 737 are still in production?

The use of multiple foreign keys on same column in SQL Server

tikz: show 0 at the axis origin

What would happen to a modern skyscraper if it rains micro blackholes?

Is it tax fraud for an individual to declare non-taxable revenue as taxable income? (US tax laws)

Why doesn't Newton's third law mean a person bounces back to where they started when they hit the ground?

Can an x86 CPU running in real mode be considered to be basically an 8086 CPU?

How to write a macro that is braces sensitive?

Have astronauts in space suits ever taken selfies? If so, how?

Why don't electron-positron collisions release infinite energy?



How can I display a short chapter name in the header and a long chapter name in the ToC?


long title in table of contentsHow to wrap text in toc?Don't use alternative section title in tableofcontentsOverflow in LaTeX scrbook Headerchapter title on two lines in the TOCModify the header in a document - Header out of marginsChapter names in headersChange the text size and type in a page header especially if the text is longHow to change the title of a section in the table of contentsChapter title in header too longProper way to section a textIs it possible to use both long name and short name of the section in headers?TOC and header versions of section titles (titlesec interferes with fancyhdr)Header and footer for a book using: part on even page and chapter on odd pageHow to change the first page (layout + geometry) of each chapter in a report?Force text between part and chapter to be on the next page after the part titleParagraph title in ConTeXt (similar to LaTeX paragraph{})Design chapter*, toc and shorttoc {memoir}Header with Section short title and Chapter short title using KOMA-scriptBold chapter numbers













110















I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the



chapter[short title]{long title}


command. But then, "short title" appears in the table of contents instead of the original/true/long one.



How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?



For reference, here is the code I use:



documentclass[11pt,a4paper]{book}
begin{document}
tableofcontents
chapter[Short title]{Very vey very very very very very very long title
i can't display in the header}
Lorem ipsum dolor sit amet, consectetur adipiscing elit.
end{document}









share|improve this question





























    110















    I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the



    chapter[short title]{long title}


    command. But then, "short title" appears in the table of contents instead of the original/true/long one.



    How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?



    For reference, here is the code I use:



    documentclass[11pt,a4paper]{book}
    begin{document}
    tableofcontents
    chapter[Short title]{Very vey very very very very very very long title
    i can't display in the header}
    Lorem ipsum dolor sit amet, consectetur adipiscing elit.
    end{document}









    share|improve this question



























      110












      110








      110


      34






      I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the



      chapter[short title]{long title}


      command. But then, "short title" appears in the table of contents instead of the original/true/long one.



      How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?



      For reference, here is the code I use:



      documentclass[11pt,a4paper]{book}
      begin{document}
      tableofcontents
      chapter[Short title]{Very vey very very very very very very long title
      i can't display in the header}
      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
      end{document}









      share|improve this question
















      I am writing a book and one of my chapters has a very long title. As it can't be displayed correctly on the top of even pages, I provide a "short title name" via the



      chapter[short title]{long title}


      command. But then, "short title" appears in the table of contents instead of the original/true/long one.



      How can I have the "short title" in the header of even pages, and the "long title" in the ToC and in the "Title header"?



      For reference, here is the code I use:



      documentclass[11pt,a4paper]{book}
      begin{document}
      tableofcontents
      chapter[Short title]{Very vey very very very very very very long title
      i can't display in the header}
      Lorem ipsum dolor sit amet, consectetur adipiscing elit.
      end{document}






      sectioning table-of-contents header-footer chapters






      share|improve this question















      share|improve this question













      share|improve this question




      share|improve this question








      edited 8 hours ago









      Mico

      285k31388778




      285k31388778










      asked Dec 10 '10 at 13:03







      Thomas ABBALLE





























          4 Answers
          4






          active

          oldest

          votes


















          131














          chapter[toc version]{doc version}
          chaptermark{version for header}


          http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig






          share|improve this answer



















          • 1





            you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?

            – lockstep
            Dec 10 '10 at 13:39











          • Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the [toctitles] package option if you're using the {titlesec} package.

            – phfaist
            Feb 25 '16 at 19:28











          • Extra points should be given for such short answers =)

            – loved.by.Jesus
            Sep 1 '17 at 19:27











          • Aren't you life saver!

            – imsrgadich
            Sep 21 '18 at 13:00



















          27














          The sectioning commands of the memoir class feature a second optional argument:



          documentclass[11pt,a4paper]{memoir}

          begin{document}

          tableofcontents*% Starred form for not including the ToC in the ToC

          chapter[Title displayed in ToC][Title displayed in header]{Title}

          Lorem ipsum dolor sit amet, consectetur adipiscing elit.

          clearpagenull

          end{document}


          EDIT: Since v3.10, the KOMA-Script classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead, headings=optiontotoc, and headings=optiontoheadandtoc.



          documentclass[headings=optiontohead]{scrbook}

          begin{document}

          tableofcontents

          chapter[Title displayed in header]{Title; also displayed in ToC}

          Lorem ipsum dolor sit amet, consectetur adipiscing elit.

          clearpagenull

          end{document}





          share|improve this answer

































            8














            Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:



             usepackage[fit]{truncate}
            usepackage{fancyhdr}
            pagestyle{fancy}
            fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
            fancyfoot[C]{thepage}





            share|improve this answer































              4














              the ams document classes behave this way by default -- the optional argument is used
              only for the running head, and the long form is used in the toc.



              because adjustments such as line breaks must sometimes be applied to the long form,
              the ams classes provide an "in-title" modification mechanism to allow different
              changes to apply to the header itself vs. what goes into the toc.



              two commands are provided:




              • for{toc}{...} includes the specified material in the toc entry;


              • except{toc}{...} uses the material in the header itself, but excludes it from the toc.



              this mechanism works also for lof and lot entries. additional commentary can be
              found in the ams author faq.






              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',
                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%2f6862%2fhow-can-i-display-a-short-chapter-name-in-the-header-and-a-long-chapter-name-in%23new-answer', 'question_page');
                }
                );

                Post as a guest















                Required, but never shown
























                4 Answers
                4






                active

                oldest

                votes








                4 Answers
                4






                active

                oldest

                votes









                active

                oldest

                votes






                active

                oldest

                votes









                131














                chapter[toc version]{doc version}
                chaptermark{version for header}


                http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig






                share|improve this answer



















                • 1





                  you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?

                  – lockstep
                  Dec 10 '10 at 13:39











                • Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the [toctitles] package option if you're using the {titlesec} package.

                  – phfaist
                  Feb 25 '16 at 19:28











                • Extra points should be given for such short answers =)

                  – loved.by.Jesus
                  Sep 1 '17 at 19:27











                • Aren't you life saver!

                  – imsrgadich
                  Sep 21 '18 at 13:00
















                131














                chapter[toc version]{doc version}
                chaptermark{version for header}


                http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig






                share|improve this answer



















                • 1





                  you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?

                  – lockstep
                  Dec 10 '10 at 13:39











                • Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the [toctitles] package option if you're using the {titlesec} package.

                  – phfaist
                  Feb 25 '16 at 19:28











                • Extra points should be given for such short answers =)

                  – loved.by.Jesus
                  Sep 1 '17 at 19:27











                • Aren't you life saver!

                  – imsrgadich
                  Sep 21 '18 at 13:00














                131












                131








                131







                chapter[toc version]{doc version}
                chaptermark{version for header}


                http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig






                share|improve this answer













                chapter[toc version]{doc version}
                chaptermark{version for header}


                http://www.tex.ac.uk/cgi-bin/texfaq2html?label=runheadtoobig







                share|improve this answer












                share|improve this answer



                share|improve this answer










                answered Dec 10 '10 at 13:29









                Ulrike FischerUlrike Fischer

                198k9306692




                198k9306692








                • 1





                  you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?

                  – lockstep
                  Dec 10 '10 at 13:39











                • Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the [toctitles] package option if you're using the {titlesec} package.

                  – phfaist
                  Feb 25 '16 at 19:28











                • Extra points should be given for such short answers =)

                  – loved.by.Jesus
                  Sep 1 '17 at 19:27











                • Aren't you life saver!

                  – imsrgadich
                  Sep 21 '18 at 13:00














                • 1





                  you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?

                  – lockstep
                  Dec 10 '10 at 13:39











                • Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the [toctitles] package option if you're using the {titlesec} package.

                  – phfaist
                  Feb 25 '16 at 19:28











                • Extra points should be given for such short answers =)

                  – loved.by.Jesus
                  Sep 1 '17 at 19:27











                • Aren't you life saver!

                  – imsrgadich
                  Sep 21 '18 at 13:00








                1




                1





                you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?

                – lockstep
                Dec 10 '10 at 13:39





                you were faster. :-) BTW, is this your third account? If yes, have you thought about asking a moderator to merge your accounts?

                – lockstep
                Dec 10 '10 at 13:39













                Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the [toctitles] package option if you're using the {titlesec} package.

                – phfaist
                Feb 25 '16 at 19:28





                Thanks! For future readers: the link also provides very useful information for section headers, and notes the easy solution with the [toctitles] package option if you're using the {titlesec} package.

                – phfaist
                Feb 25 '16 at 19:28













                Extra points should be given for such short answers =)

                – loved.by.Jesus
                Sep 1 '17 at 19:27





                Extra points should be given for such short answers =)

                – loved.by.Jesus
                Sep 1 '17 at 19:27













                Aren't you life saver!

                – imsrgadich
                Sep 21 '18 at 13:00





                Aren't you life saver!

                – imsrgadich
                Sep 21 '18 at 13:00











                27














                The sectioning commands of the memoir class feature a second optional argument:



                documentclass[11pt,a4paper]{memoir}

                begin{document}

                tableofcontents*% Starred form for not including the ToC in the ToC

                chapter[Title displayed in ToC][Title displayed in header]{Title}

                Lorem ipsum dolor sit amet, consectetur adipiscing elit.

                clearpagenull

                end{document}


                EDIT: Since v3.10, the KOMA-Script classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead, headings=optiontotoc, and headings=optiontoheadandtoc.



                documentclass[headings=optiontohead]{scrbook}

                begin{document}

                tableofcontents

                chapter[Title displayed in header]{Title; also displayed in ToC}

                Lorem ipsum dolor sit amet, consectetur adipiscing elit.

                clearpagenull

                end{document}





                share|improve this answer






























                  27














                  The sectioning commands of the memoir class feature a second optional argument:



                  documentclass[11pt,a4paper]{memoir}

                  begin{document}

                  tableofcontents*% Starred form for not including the ToC in the ToC

                  chapter[Title displayed in ToC][Title displayed in header]{Title}

                  Lorem ipsum dolor sit amet, consectetur adipiscing elit.

                  clearpagenull

                  end{document}


                  EDIT: Since v3.10, the KOMA-Script classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead, headings=optiontotoc, and headings=optiontoheadandtoc.



                  documentclass[headings=optiontohead]{scrbook}

                  begin{document}

                  tableofcontents

                  chapter[Title displayed in header]{Title; also displayed in ToC}

                  Lorem ipsum dolor sit amet, consectetur adipiscing elit.

                  clearpagenull

                  end{document}





                  share|improve this answer




























                    27












                    27








                    27







                    The sectioning commands of the memoir class feature a second optional argument:



                    documentclass[11pt,a4paper]{memoir}

                    begin{document}

                    tableofcontents*% Starred form for not including the ToC in the ToC

                    chapter[Title displayed in ToC][Title displayed in header]{Title}

                    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

                    clearpagenull

                    end{document}


                    EDIT: Since v3.10, the KOMA-Script classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead, headings=optiontotoc, and headings=optiontoheadandtoc.



                    documentclass[headings=optiontohead]{scrbook}

                    begin{document}

                    tableofcontents

                    chapter[Title displayed in header]{Title; also displayed in ToC}

                    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

                    clearpagenull

                    end{document}





                    share|improve this answer















                    The sectioning commands of the memoir class feature a second optional argument:



                    documentclass[11pt,a4paper]{memoir}

                    begin{document}

                    tableofcontents*% Starred form for not including the ToC in the ToC

                    chapter[Title displayed in ToC][Title displayed in header]{Title}

                    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

                    clearpagenull

                    end{document}


                    EDIT: Since v3.10, the KOMA-Script classes allow to specify the usage of the optional argument of sectioning commands. The class options are headings=optiontohead, headings=optiontotoc, and headings=optiontoheadandtoc.



                    documentclass[headings=optiontohead]{scrbook}

                    begin{document}

                    tableofcontents

                    chapter[Title displayed in header]{Title; also displayed in ToC}

                    Lorem ipsum dolor sit amet, consectetur adipiscing elit.

                    clearpagenull

                    end{document}






                    share|improve this answer














                    share|improve this answer



                    share|improve this answer








                    edited Mar 15 '12 at 16:06

























                    answered Dec 10 '10 at 15:35









                    locksteplockstep

                    193k53593723




                    193k53593723























                        8














                        Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:



                         usepackage[fit]{truncate}
                        usepackage{fancyhdr}
                        pagestyle{fancy}
                        fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
                        fancyfoot[C]{thepage}





                        share|improve this answer




























                          8














                          Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:



                           usepackage[fit]{truncate}
                          usepackage{fancyhdr}
                          pagestyle{fancy}
                          fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
                          fancyfoot[C]{thepage}





                          share|improve this answer


























                            8












                            8








                            8







                            Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:



                             usepackage[fit]{truncate}
                            usepackage{fancyhdr}
                            pagestyle{fancy}
                            fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
                            fancyfoot[C]{thepage}





                            share|improve this answer













                            Another option is to use the truncate package, with fancyhdr, which truncates the header if it's too long, and adds an elypsis at the end:



                             usepackage[fit]{truncate}
                            usepackage{fancyhdr}
                            pagestyle{fancy}
                            fancyhead[RO,LE]{truncate{.95headwidth}{leftmark}}
                            fancyfoot[C]{thepage}






                            share|improve this answer












                            share|improve this answer



                            share|improve this answer










                            answered Jan 12 '11 at 15:48









                            count0count0

                            1811




                            1811























                                4














                                the ams document classes behave this way by default -- the optional argument is used
                                only for the running head, and the long form is used in the toc.



                                because adjustments such as line breaks must sometimes be applied to the long form,
                                the ams classes provide an "in-title" modification mechanism to allow different
                                changes to apply to the header itself vs. what goes into the toc.



                                two commands are provided:




                                • for{toc}{...} includes the specified material in the toc entry;


                                • except{toc}{...} uses the material in the header itself, but excludes it from the toc.



                                this mechanism works also for lof and lot entries. additional commentary can be
                                found in the ams author faq.






                                share|improve this answer




























                                  4














                                  the ams document classes behave this way by default -- the optional argument is used
                                  only for the running head, and the long form is used in the toc.



                                  because adjustments such as line breaks must sometimes be applied to the long form,
                                  the ams classes provide an "in-title" modification mechanism to allow different
                                  changes to apply to the header itself vs. what goes into the toc.



                                  two commands are provided:




                                  • for{toc}{...} includes the specified material in the toc entry;


                                  • except{toc}{...} uses the material in the header itself, but excludes it from the toc.



                                  this mechanism works also for lof and lot entries. additional commentary can be
                                  found in the ams author faq.






                                  share|improve this answer


























                                    4












                                    4








                                    4







                                    the ams document classes behave this way by default -- the optional argument is used
                                    only for the running head, and the long form is used in the toc.



                                    because adjustments such as line breaks must sometimes be applied to the long form,
                                    the ams classes provide an "in-title" modification mechanism to allow different
                                    changes to apply to the header itself vs. what goes into the toc.



                                    two commands are provided:




                                    • for{toc}{...} includes the specified material in the toc entry;


                                    • except{toc}{...} uses the material in the header itself, but excludes it from the toc.



                                    this mechanism works also for lof and lot entries. additional commentary can be
                                    found in the ams author faq.






                                    share|improve this answer













                                    the ams document classes behave this way by default -- the optional argument is used
                                    only for the running head, and the long form is used in the toc.



                                    because adjustments such as line breaks must sometimes be applied to the long form,
                                    the ams classes provide an "in-title" modification mechanism to allow different
                                    changes to apply to the header itself vs. what goes into the toc.



                                    two commands are provided:




                                    • for{toc}{...} includes the specified material in the toc entry;


                                    • except{toc}{...} uses the material in the header itself, but excludes it from the toc.



                                    this mechanism works also for lof and lot entries. additional commentary can be
                                    found in the ams author faq.







                                    share|improve this answer












                                    share|improve this answer



                                    share|improve this answer










                                    answered Jul 24 '14 at 18:07









                                    barbara beetonbarbara beeton

                                    70.1k9159380




                                    70.1k9159380






























                                        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%2f6862%2fhow-can-i-display-a-short-chapter-name-in-the-header-and-a-long-chapter-name-in%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