[Writer] Current page value?

Hello,

does anyone know if it is possible to retrieve the current page number in a pre-defined variable in Writer?

The page count is available through the PAGE var, but I can't find anywhere (or do I have missed smthg?) a way to test against the current page num.

The aim is to have some text in the footer of any page, but the last one (eg "to be cont'd") without regard to the pages styles.

TIA

Hi :slight_smile:
how do other people normally do this?  It's possible to have 1st page different isn't it?  Is there a way of having last page different too?  Does everyone do this by having at least 3 page-styles per book? 
Regards from
Tom :slight_smile:

Hello Tom,

how do other people normally do this? It's possible to have
1st page different isn't it? Is there a way of having last page
different too? Does everyone do this by having at least 3
page-styles per book?

in fact the problem is different from a 1st page - other pages formatting.

Here, I want to have footers with "to be cont'd" for any page but the last one, whatever the page style and the page number, which I don't know beforehand.

Cheers,

As far as I know, you can't do this without different page styles. Sorry.

Do you need to do this? Don't most people know that, in the absence of any indication to the contrary, any incomplete word, sentence, paragraph, article, and so on simply continues on the next page of the book?

Good web designers refer to, say, a map and make the word "map" a hyperlink to the relevant map. Poor web designers try to teach people how to use the web, so they write "To see our map, please click here" - with the word "here" as the link. (And I-speak-your-links software for blind users says not "map" but "here, here, here ..."!) It sounds as if your book is attempting to teach people to turn the page for a continuation of the text. But I hope not.

In any case, is this the reason why this may be an unusual request?

Brian Barker

I want to have footers with "to be cont'd" for any page but the last
one, ...

Do you need to do this? Don't most people know that, in the absence of
any indication to the contrary, any incomplete word, sentence,
paragraph, article, and so on simply continues on the next page of the
book?

Yep. This is common sense.

Good web designers refer to, say, a map and make the word "map" a
hyperlink to the relevant map. Poor web designers try to teach people
how to use the web, so they write "To see our map, please click here" -
with the word "here" as the link. (And I-speak-your-links software for
blind users says not "map" but "here, here, here ..."!) It sounds as if
your book is attempting to teach people to turn the page for a
continuation of the text. But I hope not.

In any case, is this the reason why this may be an unusual request?

This is for text-only documents like letters or internal written documents. This "to be cont'd" is to de-ambiguate and make sure a reader won't miss a page.

And, yes, this is mandatory. I want to provide the user with a template that takes this into account. For the 1st page, I can add a hidden text field with the PAGE==1 condition. But for the other pages, I'm at a loss.

Hi Jean-Francois,

Jean-Francois Nifenecker schrieb:

Hello Tom,

how do other people normally do this? It's possible to have
1st page different isn't it? Is there a way of having last page
different too? Does everyone do this by having at least 3
page-styles per book?

in fact the problem is different from a 1st page - other pages formatting.

Here, I want to have footers with "to be cont'd" for any page but the
last one, whatever the page style and the page number, which I don't
know beforehand.

Why do you want to give the information this way? For not binded sheets a phrase "k / n" is common, where k is the field "Page number" and n is the field "Page count".

Kind regards
Regina

Hi Regina,

Why do you want to give the information this way? For not binded sheets
a phrase "k / n" is common, where k is the field "Page number" and n is
the field "Page count".

Yes, I also use the "k / n" thingy.

Yet, here in France, the ".../..." at the bottom of pages (eq "to be cont'd") is *very* common since the typewriter days and many people just demand they are there, even though we now use computers <sigh>. Unfortunately, I'm not in a position where I may impose anything. If I had been, I'd have dismissed that ".../..." thing, believe me. Thus, my wish to help my colleagues to get that thing automagically.

Hi :slight_smile:
Has anyone been able to fix this yet?  I tend to prefer to spell it out and say "Page x of n." but i think i'm alone in doing that.  I have seen the / mark used quite frequently.  It's interesting to see how other countries or other professions or industries do things slightly differently.  Doing things the 'wrong' way can cause endless problems even if they are substantially better. 
Regards from
Tom :slight_smile:

Here, in letters, the "page x of n" is not allowed, while ".../..." is very frequent, at least in public services where I work.

Hi :slight_smile:
Has anyone been able to fix this yet? I tend to prefer to spell it out and say "Page x of n." but i think i'm alone in doing that. I have seen the / mark used quite frequently. It's interesting to see how other countries or other professions or industries do things slightly differently. Doing things the 'wrong' way can cause endless problems even if they are substantially better.
Regards from
Tom :slight_smile:

I have mostly seen either "Page x of y", "x", or more rarely "x of y" in the US. The "x / y" page notation is not very common from what I have seen in the US.

"x / y" is extensively used 'round here. "Page x sur y" is also met but less often.

Hello!

I am one of the many users. I have made a video (less than two minutes). If you turn on the captions in the video, you will see the steps in words.

Show or hide page number (footer) on last page in LibreOffice 4

http://youtu.be/FAbtRoIP8-o

The feature of "Page Styles" helps me to customize the last page in less than two minutes. I do not know if this works for you. I do not know a faster way to do the things you described, i.e. "to be continued" to be printed on all pages except the last one.

For your information:

https://wiki.documentfoundation.org/Documentation/Other_Documentation_and_Resources#Video_Tutorials

Regards,
C. H. D.

_ _ _ _ _ _ _ _ _ _ _ _ _ _ _