I want to give each chapter in a document a separate odd-page header, so it appears i need to have a different style for each chapter, yes? But how do i apply a style to just that one chapter and not change any of the styles before or after it?
I have spent a long time online trying to understand this, but i haven’t found how to apply a style to a section only. Thank you for any help you can offer!
There might be another way around this depending on what information you want to put in the header. If you can explain what information you want to include in each chapter’s odd-page headers, someone might be able to tell you the most efficient way to go about this.
What you should not do is going to settings of the current style an change it, as this would change everywhere the style is used.
.
Create your own style(s) before you use it, then you can mark sections and apply your style to it.
.
Usually I set this kind of stuff up, before adding content and rely on the feature to set the “following” style in paragraphs settings. Then I seldom need manual editing of styles afterwards.
There are several possible solutions depending on your header contents. If this header can be dynamically generated from chapter info, e.g. from the chapter heading, the same page style can be used over all chapters.
Without much information on your document, I can only explain how page styles work.
A page style is active on a contiguous series of pages delimited by “boundaries”. A boundary is a special page break created by Insert
>More Breaks
>Manual Break
with a selection of the page style to activate after the break. Applying a page style anywhere in the page sequence will assign the page style to all pages of the sequence.
Of course, you can’t do this for odd-even alternation because you don’t know where page breaks occur and their position will vary with editing. Page styles then have a provision to automatically switch to another one when page overflows. This can be specified either by manually assigning a “next” page style or by configuring a page style to have a different header/footer for first/even/odd pages if your need is only to change the header or footer.
For an advice on your particular case, edit your question to describe exactly what you want to do and what you’ve already done. And, as always, mention OS name, LO version and save format.
Thank you for taking the time to explain, ajlittoz – i was busy writing till recently and just got around to utilizing the information you provided – i really appreciate your help!!
Prefer to work with the same page style(s) throughout the document. Instead use variables in the header that automatically update. Look in the “Fields” dialog, “Documents” tab on the information you can insert: author, chapter, date, page number, … The “Chapter” variable allows to insert a title of a heading level of you choice, i.e., chapter title, but also any sublevel heading.
If you prefer more manual work, then you indeed need to work with dedicated styles for each page. That means manually creating different page styles that only differ in the header. This also means manually inserting page breaks that switch to the desired page style (Format - Paragraph - Text flow tab, Breaks - Insert, with page style). This is certainly not the way to proceed. You only will do that if, for some reason, a single section must be quite different from other sections in a way that cannot be handled by the automatic tools.
Thank you for taking the time to explain, Vanadium – i was busy writing till recently and just got around to utilizing the information you provided – i really appreciate your help!!