Ask Your Question
0

page variable stops part way through document

asked 2019-04-26 02:48:20 +0200

jsware gravatar image

updated 2019-04-29 03:48:04 +0200

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: 6.0.7.3.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.

edit retag flag offensive close merge delete

Comments

How's your document structured? Only one page style or several? In the latter case, did you inadvertently inserted the wrong field variable? You can check with View>Field Names. Is there a break (manual or style-induced) before the location where it stops working?

Provide answers through editing your question, not using an answer.

ajlittoz gravatar imageajlittoz ( 2019-04-26 07:51:44 +0200 )edit

I have the same configuration. If your document is not confidential, attach it so that I can have a look. Otherwise, try to "lorem ipsum" it , reducing it to the minimum still exhibiting the problem.

ajlittoz gravatar imageajlittoz ( 2019-04-26 20:05:10 +0200 )edit

Using Variables>Set page variable or Show page variable is not the right way to go. Either Insert>Field>Page number or Insert>Field>More Fields then Document>Page>Page numbers but not Variables>... The "variables" are intended to set operational context or define counters and they require an extensive setup before being used. Unless you're an expert, keep away from them as long as there are simpler ways to do things.

ajlittoz gravatar imageajlittoz ( 2019-04-26 20:35:21 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2019-04-28 08:11:44 +0200

ajlittoz gravatar image

If I understand right your intent, you want to start your document at page # 2256.

When you want to force a page number to a specific value, you do this with a page break. In some circumstances, you can use a carefully crafted paragraph style, e.g. to restart numbering at 1 for TOC or indexes (those parts begin with a unique title which can be identified by a dedicated paragraph style). In your case, a manual page break will do.

  • Put the cursor at the start of the paragraph which is the beginning of the page with the forced page number.
  • Insert>Manual Page Break (not >Page Break)
  • Page break is already preset
  • Select the page style to switch to (according to your description, Default is the right choice)
  • You can now check Change page number and set 2256

To show the community your question has been answered, click the ✓ next to the correct answer, and "upvote" by clicking on the ^ arrow of any helpful answers. These are the mechanisms for communicating the quality of the Q&A on this site. Thanks!

edit flag offensive delete link more
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2019-04-26 02:48:20 +0200

Seen: 50 times

Last updated: Apr 29