[Solved] How to create individual headers per page?

Discuss the word processor
Post Reply
forrie
Posts: 16
Joined: Sun Mar 29, 2009 6:26 pm

[Solved] How to create individual headers per page?

Post by forrie »

I have a large document for which I have a sizable appendix cache, some items have multiple pages. I want to create an individual header for these pages that indicate which item this page belongs to. For example:

Appendix A
Inventory 1

Now, this item might span one or more pages. Then, the next item should also have its own header

Appendix A
Next Item

.. and so on.

The directions I'm reading where you continually create new styles doesn't seem to make sense, or at least I can't get it to work beyond the first page. I insert a manual break, but I end up getting stuck with the first header on subsequent pages.

Might there be an easier way to accomplish this simple requirement?
Last edited by Hagar Delest on Tue Aug 08, 2017 9:55 pm, edited 1 time in total.
Reason: tagged [Solved].
OOo 2.3.X on Mac OSx other
User avatar
RoryOF
Moderator
Posts: 35203
Joined: Sat Jan 31, 2009 9:30 pm
Location: Ireland

Re: How to create individual headers per page?

Post by RoryOF »

Broadly speaking, every time the page header or footer information changes other than when provided by an OpenOffice Field, one must use a different Page Style. If your headers can be related to information from built in Heading Styles (which you may modify to suit your design requirements) then these page headings can be automated from the Heading Styles used to define the document areas. See
[Tutorial] "In-line" or "run-in" headings
for detailed information.
Apache OpenOffice 4.1.16 on Xubuntu 24.04.4 LTS
User avatar
acknak
Moderator
Posts: 22756
Joined: Mon Oct 08, 2007 1:25 am
Location: USA:NJ:E3

Re: How to create individual headers per page?

Post by acknak »

Similar to inserting a page number field (which is different on each page), you can use the same page style, with a field (or fields) that pull information from the page headings. Insert > Fields > Other > Document > Chapter will insert the current chapter title for a particular heading level (level 1, top, is typically the chapter title; level 2 would be the current level-two heading, and so on).
AOO4/LO5 • Linux • Fedora 23
forrie
Posts: 16
Joined: Sun Mar 29, 2009 6:26 pm

Re: How to create individual headers per page?

Post by forrie »

I decided to follow someone's advice and start over, using screen captures of the content I needed. I have a high-res display (Mac), which worked out fine - just insert the image. The problem is, I had to create individual files for each Appendix item, which was a royal PITA, because I couldn't get the line numbers to reset.

My next challenge will be to find a way to assemble all these *.odt appendix files (there are over 20) and number each page *except* the title page for each appendix (A, B, C ... ). Something tells me this won't be possible and I may end up doing some cut-and-paste of numbers, then scanning them in. I'm not sure if other word processors handle this differently, I haven't tried (ie: MS Word).
OOo 2.3.X on Mac OSx other
forrie
Posts: 16
Joined: Sun Mar 29, 2009 6:26 pm

Re: [Solved] How to create individual headers per page?

Post by forrie »

To add to this discussion, I needed to create separate page count for the appendix. This presented a problem, per the above, as I already had page numbering ordered in the headers.

Here is my solution:

* Save the entire document into PDF

* Import into Adobe Acrobat DC (professional)

* Add a footer, with a page numbering header

* Save it

You can then re-export to *.doc, but my solution was to simply save the three sections I had into PDF, then us Adobe Acrobat DC to combine them, and WALLA, it was done.

This is a hack, but it really does work. That being said, I believe there should be a better facility for these scenarios in Writer. But that's just my opinion. I hope the above helps someone else who also gets stuck in this predicament.
OOo 2.3.X on Mac OSx other
Post Reply