Hi,
I’ve got a simple document with a header in which I show the content of a field variable named ‘guideword’. Then I add some headlines and paragraphs to the body. On each headline I also set the variable ‘guideword’ to the name of the headline itself because I always want to see it in the page header as well.
It seems the displayed value of the variable in the header is always the content set on the page before or from the same page if it was set on the very first paragraph.
Is it possible to always show the value of the variable that was first set on the same page instead of using the value from the page before? Or is there an other possibility regarding headlines or certain paragraphstyles which can be shown in the header when they appear on a page?
In the attachment you can find a simple example of my problem. All I want is to see “p2” in the header of page 3.
Variablentest.odt
In reality the document is much more complex and is generated automatically, so it should not be edited manually. And because it gets generated automatically my first idea was to add the “variable setter” for “p2” to every paragraph before the real “paragraph 2” until the setter for “p1” was reached but then I also would see “p2” in the header of page 2 which would also be wrong.
It would also be possible to write a macro for that which can be executed after generating the document but I hope it can be solved with “normal” tools instead.
If you need more information or clarifications, please ask. Thanks!