I have a text document created in LibreOffice Writer which is part of a larger historical document. I want to show the overall page number in the header. I did this last year using the page variable, and it worked well. This year I find it works for a few pages, then stops. On the next page I see the gray background for the variable, but no value.
I am using LibreOffice Version: 184.108.40.206.0+ on Fedora Linux 28. the LibreOffice build is from the Fedora Project.
Thank you ajlittoz for your response.
The document is 66 pages, all use Default Style. My first draft had a custom style for two pages, changing that to Default did not affect this.
View > Field Names showed me where the problem was. I had the Page Variable inserted in the body of a page, the Page Variable did not display in the header after that. Removing the “Set page variable” and “Show page variable” in the page body cleared the problem.
My problem is resolved.
Thank you for the caution about variables.
Page Number would have worked, it would display on all pages, but this document is a logical continuation of a larger document. My first page is number 2256.
A year ago I searched for a solution and found a description of using Page Variable.
I agree that your answer describes a simpler way of solving this.
I appreciate your patience and clear explanation. This has certainly helped me. Thank you.