Ask Your Question
0

how to skip page count for every other page

asked 2018-02-07 06:56:42 +0200

jack g gravatar image

updated 2018-02-07 08:37:05 +0200

ajlittoz gravatar image

i need the page count to skip every other page. e.g.
the first and second pages are page '1'
the third and fourth pages are page '2'
the fifth and sixth pages are page '3'
and so on. how do i do this?

a related question that may answer the first:
in format: page: layout settings: page numbers
there is a dropdown box of options of styles for the page numbers. is there any way to create my own?

edit retag flag offensive close merge delete

Comments

Jim K gravatar imageJim K ( 2018-02-07 18:53:56 +0200 )edit

1 Answer

Sort by » oldest newest most voted
0

answered 2018-02-07 08:35:59 +0200

ajlittoz gravatar image

I'm afraid this is not possible directly, but there may be a workaround. However, one element is missing in my suggestion.

Provided there is a built-in variable to capture the present page number (I only found variable PAGE containing total page count), you can insert a custom field associated with a formula.

  1. In the footer area (meaning you enabled it in the page style or Format>Page), Insert>Fields>Other
  2. Go to Variables tab and select Insert Formula
  3. In the Formula text box, type (pagenr + 1) DIV 2 which compute the sheet number (in duplex printing)
  4. Click Insert, then Close

BIS CAVEAT: in the formula above, I wrote pagenr for the running page number but I did not find the real variable name in the built-in help, if it ever exists. I need help from a developer to clear the point. Variable PAGE is the total page count which does meet the requirement.

edit flag offensive delete link more

Comments

There's no such variable afaik

Mike Kaganski gravatar imageMike Kaganski ( 2018-02-07 08:45:20 +0200 )edit

That's a pity, sigh

ajlittoz gravatar imageajlittoz ( 2018-02-07 08:59:11 +0200 )edit

thanks for trying

jack g gravatar imagejack g ( 2018-02-07 14:25:58 +0200 )edit

There is a list of formula variables at https://help.libreoffice.org/Writer/F....

Jim K gravatar imageJim K ( 2018-02-07 19:54:16 +0200 )edit

i tried creating my own formula variable. set variable:> name: pagenr, value :0; and then in the header. insert formula:> pagenr = pagenr + 1. it works elsewhere, but not in the header.

jack g gravatar imagejack g ( 2018-02-08 08:23:28 +0200 )edit

For the record: @Jim K's link provides the same information as built-in help.

ajlittoz gravatar imageajlittoz ( 2018-02-08 08:32:53 +0200 )edit
1

@jack g: I experimented. I think it fails because header/footer are computed once per page style and inserted "as is" in every new page. If they contain "auto-update" fields like page#, OK. A formula like ours doesn't result in an auto-update field, but gives a static value computed during 1st page composition.

I even tried to alternate page styles but result remains static.

ajlittoz gravatar imageajlittoz ( 2018-02-08 09:04:23 +0200 )edit

I tried it as well and came to the same conclusion. There doesn't seem to be any way to do this in the header/footer. The best I could come up with is page numbers 1,1,3,3,5,5 and so on.

Jim K gravatar imageJim K ( 2018-02-08 18:43:45 +0200 )edit

thanks everyone for your work. so not even an option to create my own style for the page numbering? that could be useful for other projects as well.

jack g gravatar imagejack g ( 2018-02-11 08:20:19 +0200 )edit

This setting is similar to the numbering "category" in chapter or list numbering: you choose traditional, roman or arabic numbers or alphabetic ids in various languages. There is no way (and probably no point) to add to them. If your need is to display a "complex" page number group with volume, chapter or section number, use Insert>Fields for the extra information. For an example, see this question

ajlittoz gravatar imageajlittoz ( 2018-02-11 10:40:37 +0200 )edit
Login/Signup to Answer

Question Tools

1 follower

Stats

Asked: 2018-02-07 06:56:42 +0200

Seen: 77 times

Last updated: Feb 07 '18