How to assign a different header to each chapter in a long document?

In Windows Office this used to be possible by defining each chapter as a section, but it does not work this way in LIbreOffice - I tried to create sections, but there is no way of assigning headers to each of them, as far as I can see.

Maybe it needs to be done a different way?

I want to create individual headers for each chapter in the document. How can this be done?

Thanks for any tips that can make this possible for me.

The header belongs to the page in LibreOffice. Therefore you need a new page style and a page break, every time you want a new header.

But I guess, you do not want a totally new header, but you want the current chapter heading be mentioned in the header? In that case you can put a field into the header which will always show the heading, which belongs to the first paragraph of that page. You find this field in Insert > Fields > More Fields… > tab Document; Type chapter. Select the format and the level.

This could be useful - thanks! It takes that I write the headlines of the chapters with the formal style for that, and I can do that. But I do not understand what “format” and “level” means - is that a reference to the heading style?

There is one problem, though - How can I avoid having the header with the headline in it also on the front page of that chapter (where the header is displayed!)? I want the header to be blank on those pages… Repeating the headline does not look good…

“Format” means, what parts of the heading are shown, e.g. numbering or text or both. “Level” means, that you can decide to show top level headings or the heading of a subsection. It is common to show chapter heading on left page and section heading on right page. I know no way to hide it, but make a special page style for that page, without the field.