As usual, advices are much better when OP mentions OS name, LO version (full version number with 4 components) and save format. I’ll assume you save .odt.
Headers are one of the properties attached to page styles. One page style can have only one header. Consequently, either you create one page style per chapter, but it soon becomes boring if you have tens of chapters. Or you turn your headers into “dynamic” strings with the help of fields.
The latter solution is generally the preferred one but it requires you follow some discipline. The chapter heading can be captured to be inserted into the header. This is done when you apply Heading n paragraph styles to your headings: Heading 1 for chapter titles, Heading 2 for sub-chapters, etc. There is a dedicated field for each level accessible with Insert
>Field
>More Fields
, Document
tab, Heading Type to retrieved the heading with or without the chapter number.
Considering your question, I recommend you read the Writer Guide for basic information about styles and fields. Come back here for more specific help.
EDIT 2024-01-14 (after reading the comments below this answer)
Let me summarise the specification:
- the book contains (3) parts, the heading of which provide right-page headers
- every part is structured in chapters (which start on a new page, I assume from the following requirement)
- chapter start page have no header
- other page headers are book name on left, part name on right
- illustrated pages have no header nor footer
My suggestion is then to record the book title in File
>Properties
, Description
tab, Title:. The title can be inserted anywhere appropriate, e.g. in the First Page cover page with Insert
>Field
>Title
and then paragraph-styled Title.
Changing the title in the properties automatically updates all the usages in the document.
Story titles are entered in a page of their own (page style to be defined) in a Heading 1 paragraph. Customise Heading 1 for ample spacing above paragraph, font parameters, centre alignment, automatic page break “before” with switch to your page style.
Using Heading 1 captures the story title in a field.
Your chapters start with a Heading 2 paragraph (chapter title/heading). Customise Heading 2 as usual for the required look and in Text Flow
force a page break “before” to Default Page Style.
I use Default Page Style as the target page style but if you prefer any else, it is up to you.
Default Page Style Header
tab is configured as:
- tick Header on to enable headers
- untick Same content on first page
This “detaches” the first page from the other headers and will allow you to have an empty header.
- untick Same content on left and right pages
This makes left and right headers independent from each other.
Create a chapter, eventually with dummy text so that you have at least 3 pages. This assumes you already have a story name otherwise you’ll see disturbing things (though everything will settle down once you have a story name; it is important to respect the hierarchy Heading 1, Heading 2 to ensure there is data at each level).
- make sure your header is empty on first chapter page
- in left header,
Insert
>Field
>Title
- in right header, type two Tab (to right align the header) and
Insert
>Field
>More Fields
, Document
tab, Heading Type, Heading contents Format (level should be 1, check)
Regarding pages with pictures, they require a dedicated page style. However, your specification is incomplete. If the images are frontispieces, i.e. a picture preceding a chapter start, usually a left page facing chapter start on right, insertion of this page can be automated. Of course, you can leave it empty if you have no image.
Otherwise, full-page images are quite hard to insert automatically. What I mean here is the “natural” page breaks in your book are not predictable (from an author’s point of view). The location where they happen depends on the edits and text updates. Full-page insertions require manual anchor positioning and you must change manually this position after an update (or at least check that changes didn’t move “too much” the anchor, creating nearly empty pages).