Inline chapters' names in page header
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
add a comment |
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
add a comment |
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
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
libreoffice libreoffice-writer
asked Apr 10 '18 at 19:11
Andrey Turkin
1011
1011
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
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:
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!
add a comment |
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
});
}
});
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
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:
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!
add a comment |
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:
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!
add a comment |
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:
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!
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:
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!
edited Nov 23 '18 at 14:19
answered Oct 28 '18 at 3:10
raffriff42
12
12
add a comment |
add a comment |
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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