Inline chapters' names in page header












0














Probably not a very precise title for a question but I couldn't figure out a better one... Let me explain.



I have a document with a number of chapters in it (their names are defined by "Heading 1" style), and I want to make a header for each page with current chapter name styled the same way.



E.g.:



Chapter 1 <- title of chapter 1 added by me
text
Chapter 2 <- title of chapter 2 added by me
text
-- page break here --
Chapter 2 <- this is inserted automatically
more text
Chapter 3 <- title of Chapter 3 added by me
text
-- page break here --
Chapter 4 <- title of Chapter 4 added by me


I can add a header, insert "Chapter name" field there and add same style to it, and it will be sort of what I want, except for cases when chapter starts a page (that'd be Chapter 1 and Chapter 4 in the example). In those cases there will be duplicated chapter name - one from page header and then one from chapter heading.



It doesn't have to be chapters; I'm gladly accept almost any way to get this behaviour however hackish it might be.










share|improve this question



























    0














    Probably not a very precise title for a question but I couldn't figure out a better one... Let me explain.



    I have a document with a number of chapters in it (their names are defined by "Heading 1" style), and I want to make a header for each page with current chapter name styled the same way.



    E.g.:



    Chapter 1 <- title of chapter 1 added by me
    text
    Chapter 2 <- title of chapter 2 added by me
    text
    -- page break here --
    Chapter 2 <- this is inserted automatically
    more text
    Chapter 3 <- title of Chapter 3 added by me
    text
    -- page break here --
    Chapter 4 <- title of Chapter 4 added by me


    I can add a header, insert "Chapter name" field there and add same style to it, and it will be sort of what I want, except for cases when chapter starts a page (that'd be Chapter 1 and Chapter 4 in the example). In those cases there will be duplicated chapter name - one from page header and then one from chapter heading.



    It doesn't have to be chapters; I'm gladly accept almost any way to get this behaviour however hackish it might be.










    share|improve this question

























      0












      0








      0







      Probably not a very precise title for a question but I couldn't figure out a better one... Let me explain.



      I have a document with a number of chapters in it (their names are defined by "Heading 1" style), and I want to make a header for each page with current chapter name styled the same way.



      E.g.:



      Chapter 1 <- title of chapter 1 added by me
      text
      Chapter 2 <- title of chapter 2 added by me
      text
      -- page break here --
      Chapter 2 <- this is inserted automatically
      more text
      Chapter 3 <- title of Chapter 3 added by me
      text
      -- page break here --
      Chapter 4 <- title of Chapter 4 added by me


      I can add a header, insert "Chapter name" field there and add same style to it, and it will be sort of what I want, except for cases when chapter starts a page (that'd be Chapter 1 and Chapter 4 in the example). In those cases there will be duplicated chapter name - one from page header and then one from chapter heading.



      It doesn't have to be chapters; I'm gladly accept almost any way to get this behaviour however hackish it might be.










      share|improve this question













      Probably not a very precise title for a question but I couldn't figure out a better one... Let me explain.



      I have a document with a number of chapters in it (their names are defined by "Heading 1" style), and I want to make a header for each page with current chapter name styled the same way.



      E.g.:



      Chapter 1 <- title of chapter 1 added by me
      text
      Chapter 2 <- title of chapter 2 added by me
      text
      -- page break here --
      Chapter 2 <- this is inserted automatically
      more text
      Chapter 3 <- title of Chapter 3 added by me
      text
      -- page break here --
      Chapter 4 <- title of Chapter 4 added by me


      I can add a header, insert "Chapter name" field there and add same style to it, and it will be sort of what I want, except for cases when chapter starts a page (that'd be Chapter 1 and Chapter 4 in the example). In those cases there will be duplicated chapter name - one from page header and then one from chapter heading.



      It doesn't have to be chapters; I'm gladly accept almost any way to get this behaviour however hackish it might be.







      libreoffice libreoffice-writer






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Apr 10 '18 at 19:11









      Andrey Turkin

      1011




      1011






















          1 Answer
          1






          active

          oldest

          votes


















          0














          I have got Chapter (and sub-chapter) names showing in the footer and I thought I would share (headers work exactly the same, of course)



          Sample page with Chapters and subheads in footer:



          Sample page with Chapters and subheads in Footer



          Note automatic (field) text is shaded gray ("Title goes here" should be gray too), and items related to optional chapter-numbering are highlighted in yellow.



          Note, you must format your chapter names with a style which has an Outline level, as defined in Paragraph Style. In my case, Heading 3 (which has Outline level 1) defines chapter names and Heading 5 (which has Outline level 2) defines "sub-chapters" or sections.



          Then,





          • Tools, Chapter Numbering;


          • Level defines chapter names & numbers at multiple levels; start with Level 1

          • set Paragraph Style to the style you are using for the the chapter name

            (Heading 3 in my case for Level 1)

          • set Number (Style) as desired (if showing numbers; else ignore)

          • All other options may be left at default; they are explained in this help item.


          Then, to show chapter names, insert a Chapter field in your header or footer:




          • Click in header/footer: Insert, Field, More Fields


          • Type = Chapter


          • Format = as desired: chapter name, number or name+number.


          • Level = 1


          To show "sub-chapters," go back to Tools, Chapter Numbering, select Level 2 and fill in the options, using a different Outline level. Then go back to your header/footer, add another Chapter field, set Level = 2



          Note Chapter Numbering levels have nothing to do with Heading levels; they seem to link to Outline levels. I am not sure. But if I edit another Paragraph style to give it Outline level 1 or 2, the text from paragraphs in that style appear in the footer!






          share|improve this answer























            Your Answer








            StackExchange.ready(function() {
            var channelOptions = {
            tags: "".split(" "),
            id: "3"
            };
            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: true,
            noModals: true,
            showLowRepImageUploadWarning: true,
            reputationToPostImages: 10,
            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%2fsuperuser.com%2fquestions%2f1312727%2finline-chapters-names-in-page-header%23new-answer', 'question_page');
            }
            );

            Post as a guest















            Required, but never shown

























            1 Answer
            1






            active

            oldest

            votes








            1 Answer
            1






            active

            oldest

            votes









            active

            oldest

            votes






            active

            oldest

            votes









            0














            I have got Chapter (and sub-chapter) names showing in the footer and I thought I would share (headers work exactly the same, of course)



            Sample page with Chapters and subheads in footer:



            Sample page with Chapters and subheads in Footer



            Note automatic (field) text is shaded gray ("Title goes here" should be gray too), and items related to optional chapter-numbering are highlighted in yellow.



            Note, you must format your chapter names with a style which has an Outline level, as defined in Paragraph Style. In my case, Heading 3 (which has Outline level 1) defines chapter names and Heading 5 (which has Outline level 2) defines "sub-chapters" or sections.



            Then,





            • Tools, Chapter Numbering;


            • Level defines chapter names & numbers at multiple levels; start with Level 1

            • set Paragraph Style to the style you are using for the the chapter name

              (Heading 3 in my case for Level 1)

            • set Number (Style) as desired (if showing numbers; else ignore)

            • All other options may be left at default; they are explained in this help item.


            Then, to show chapter names, insert a Chapter field in your header or footer:




            • Click in header/footer: Insert, Field, More Fields


            • Type = Chapter


            • Format = as desired: chapter name, number or name+number.


            • Level = 1


            To show "sub-chapters," go back to Tools, Chapter Numbering, select Level 2 and fill in the options, using a different Outline level. Then go back to your header/footer, add another Chapter field, set Level = 2



            Note Chapter Numbering levels have nothing to do with Heading levels; they seem to link to Outline levels. I am not sure. But if I edit another Paragraph style to give it Outline level 1 or 2, the text from paragraphs in that style appear in the footer!






            share|improve this answer




























              0














              I have got Chapter (and sub-chapter) names showing in the footer and I thought I would share (headers work exactly the same, of course)



              Sample page with Chapters and subheads in footer:



              Sample page with Chapters and subheads in Footer



              Note automatic (field) text is shaded gray ("Title goes here" should be gray too), and items related to optional chapter-numbering are highlighted in yellow.



              Note, you must format your chapter names with a style which has an Outline level, as defined in Paragraph Style. In my case, Heading 3 (which has Outline level 1) defines chapter names and Heading 5 (which has Outline level 2) defines "sub-chapters" or sections.



              Then,





              • Tools, Chapter Numbering;


              • Level defines chapter names & numbers at multiple levels; start with Level 1

              • set Paragraph Style to the style you are using for the the chapter name

                (Heading 3 in my case for Level 1)

              • set Number (Style) as desired (if showing numbers; else ignore)

              • All other options may be left at default; they are explained in this help item.


              Then, to show chapter names, insert a Chapter field in your header or footer:




              • Click in header/footer: Insert, Field, More Fields


              • Type = Chapter


              • Format = as desired: chapter name, number or name+number.


              • Level = 1


              To show "sub-chapters," go back to Tools, Chapter Numbering, select Level 2 and fill in the options, using a different Outline level. Then go back to your header/footer, add another Chapter field, set Level = 2



              Note Chapter Numbering levels have nothing to do with Heading levels; they seem to link to Outline levels. I am not sure. But if I edit another Paragraph style to give it Outline level 1 or 2, the text from paragraphs in that style appear in the footer!






              share|improve this answer


























                0












                0








                0






                I have got Chapter (and sub-chapter) names showing in the footer and I thought I would share (headers work exactly the same, of course)



                Sample page with Chapters and subheads in footer:



                Sample page with Chapters and subheads in Footer



                Note automatic (field) text is shaded gray ("Title goes here" should be gray too), and items related to optional chapter-numbering are highlighted in yellow.



                Note, you must format your chapter names with a style which has an Outline level, as defined in Paragraph Style. In my case, Heading 3 (which has Outline level 1) defines chapter names and Heading 5 (which has Outline level 2) defines "sub-chapters" or sections.



                Then,





                • Tools, Chapter Numbering;


                • Level defines chapter names & numbers at multiple levels; start with Level 1

                • set Paragraph Style to the style you are using for the the chapter name

                  (Heading 3 in my case for Level 1)

                • set Number (Style) as desired (if showing numbers; else ignore)

                • All other options may be left at default; they are explained in this help item.


                Then, to show chapter names, insert a Chapter field in your header or footer:




                • Click in header/footer: Insert, Field, More Fields


                • Type = Chapter


                • Format = as desired: chapter name, number or name+number.


                • Level = 1


                To show "sub-chapters," go back to Tools, Chapter Numbering, select Level 2 and fill in the options, using a different Outline level. Then go back to your header/footer, add another Chapter field, set Level = 2



                Note Chapter Numbering levels have nothing to do with Heading levels; they seem to link to Outline levels. I am not sure. But if I edit another Paragraph style to give it Outline level 1 or 2, the text from paragraphs in that style appear in the footer!






                share|improve this answer














                I have got Chapter (and sub-chapter) names showing in the footer and I thought I would share (headers work exactly the same, of course)



                Sample page with Chapters and subheads in footer:



                Sample page with Chapters and subheads in Footer



                Note automatic (field) text is shaded gray ("Title goes here" should be gray too), and items related to optional chapter-numbering are highlighted in yellow.



                Note, you must format your chapter names with a style which has an Outline level, as defined in Paragraph Style. In my case, Heading 3 (which has Outline level 1) defines chapter names and Heading 5 (which has Outline level 2) defines "sub-chapters" or sections.



                Then,





                • Tools, Chapter Numbering;


                • Level defines chapter names & numbers at multiple levels; start with Level 1

                • set Paragraph Style to the style you are using for the the chapter name

                  (Heading 3 in my case for Level 1)

                • set Number (Style) as desired (if showing numbers; else ignore)

                • All other options may be left at default; they are explained in this help item.


                Then, to show chapter names, insert a Chapter field in your header or footer:




                • Click in header/footer: Insert, Field, More Fields


                • Type = Chapter


                • Format = as desired: chapter name, number or name+number.


                • Level = 1


                To show "sub-chapters," go back to Tools, Chapter Numbering, select Level 2 and fill in the options, using a different Outline level. Then go back to your header/footer, add another Chapter field, set Level = 2



                Note Chapter Numbering levels have nothing to do with Heading levels; they seem to link to Outline levels. I am not sure. But if I edit another Paragraph style to give it Outline level 1 or 2, the text from paragraphs in that style appear in the footer!







                share|improve this answer














                share|improve this answer



                share|improve this answer








                edited Nov 23 '18 at 14:19

























                answered Oct 28 '18 at 3:10









                raffriff42

                12




                12






























                    draft saved

                    draft discarded




















































                    Thanks for contributing an answer to Super User!


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

                    But avoid



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

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


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





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


                    Please pay close attention to the following guidance:


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

                    But avoid



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

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


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




                    draft saved


                    draft discarded














                    StackExchange.ready(
                    function () {
                    StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fsuperuser.com%2fquestions%2f1312727%2finline-chapters-names-in-page-header%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

                    AnyDesk - Fatal Program Failure

                    How to calibrate 16:9 built-in touch-screen to a 4:3 resolution?

                    QoS: MAC-Priority for clients behind a repeater