Skip to main content
Inspiring
April 30, 2019
Answered

Add Absolute Number Pages instead of Section Numbering

  • April 30, 2019
  • 3 replies
  • 4225 views

Hello!

- I am using Numbering & Section Options on my INDD doc.

- Due to this, (Absolute) Page 15 is displayed as HAT.01 (this is fine, I need this identification).

BUT...

- When I try to add Special Characters >> Markers >> Current Page Number, it inserts the Section Prefix and Number (HAT.01).

Simply as is: I want to Insert the Absolute Number Page (15), regardless of what Section it uses.

So far I found this impossible to do. The only solution I found so far is to create a continuos Numbered list, and insert the text box containing it on each of my pages. It is silly but still a workaround.

Any simpler way to use Absolute Page Numbers? Thanks!

---

BTW, if you know a bit or two about interactive Buttons in ePub, maybe you can help me with this? ^_^

Connecting a Button to another INDD Page: "External Anchor not found"

This topic has been closed for replies.
Correct answer Suripanta

Thank you all for your contributions. Unfortunately, they might work for some other kinda project but not for mine.

However I found a solution by adding a text box with a Numbering List that grows across all pages. Each page has one of these text boxes, thus it recreates the ascending list

3 replies

SuripantaAuthorCorrect answer
Inspiring
May 29, 2019

Thank you all for your contributions. Unfortunately, they might work for some other kinda project but not for mine.

However I found a solution by adding a text box with a Numbering List that grows across all pages. Each page has one of these text boxes, thus it recreates the ascending list

Community Expert
May 29, 2019

Hi Suripanta ,

good you found a solution!

You could also use ExtendScript ( JavaScript ) code like the one below to insert the absolute page name.

Select an insertion point in a text frame and run this code:

app.selection[0].contents = ( app.selection[0].parentTextFrames[0].parentPage.documentOffset + 1 ).toString();

Note: If you move pages around in your document or if you add or remove pages before you have to update the contents.

It's not dynamic. It could be made dynamic, but this would require a more complex script with an event listening mechanism.

Regards,
Uwe

SuripantaAuthor
Inspiring
May 29, 2019

Laubender  wrote

Hi Suripanta  ,

good you found a solution!

You could also use ExtendScript ( JavaScript ) code like the one below to insert the absolute page name.

Select an insertion point in a text frame and run this code:

app.selection[0].contents = ( app.selection[0].parentTextFrames[0].parentPage.documentOffset + 1 ).toString();

Note: If you move pages around in your document or if you add or remove pages before you have to update the contents.

It's not dynamic. It could be made dynamic, but this would require a more complex script with an event listening mechanism.

Regards,
Uwe

Hey Laubender​, thanks for your reply!

I tried to create a Script with the code provided, but I get an error message. I think I might be doing something wrong. Could you please provide me with more detailed instructions?

Thanks!

vinny38
Legend
April 30, 2019

If I understand correctly (if not, please provide more details, including screenshots), using a numbered list is definitely not a silly idea.

That's what I would do ^^

However, there's an alternative.

You can use Acrobat footer utility.

Tools > Pages > Headers & footers.

Community Expert
April 30, 2019

Could you do this setup, where the document is divided with sections, use a section marker symbol, and use auto page numbering?

SuripantaAuthor
Inspiring
April 30, 2019

Jeffrey_Smith  wrote

Could you do this setup, where the document is divided with sections, use a section marker symbol, and use auto page numbering?

Hey Jeffrey, thanks for getting involved!

Unfortunately, I can't do that - I need to use Start Page Numbering, Prefix and Style in order to keep the flow needed.

Inspiring
April 30, 2019

obviously,  i  must  be  missing  the  issue … my  setup  looks  fine.  the  type/special-char/current-page  variable  resides  on  the  master-pages … designated  pg15-20  as  separate  section … the  'absolute'  pg#'s  you  mention  appear  as  they  should (15-20).  if  my  screen-cap  is  not  correct … pls  describe  why  it's  wrong.  also  might  be  helpful  garnering  your  own  screen-cap(s).

a  second  variant  would  be  adding  the  prefix  to  the  'absolute'  numbering … for  that  you'd  simply  tick  "include prefix".