Skip to main content
1-Visitor
October 8, 2014
Question

Creating table of contents, can I read page numbers of variable definitions?

  • October 8, 2014
  • 13 replies
  • 8872 views

I am creating a table of contents on the first page of my documents, which needs the page number. as I edit the documents, the definitions tend to be pushed around and I have to update the page numbers, which is a pain. In Word, there is an automatic table of content generator, which can automatically update the page numbers.

Is there a way to read the page number, or find the page number of a variable so as to use this in my table of content, so it is updated automatically as I move stuff?

thanks in advance

13 replies

19-Tanzanite
October 8, 2014

Sorry, but what you want is not possible. The only option is manual editing.

kpilested1-VisitorAuthor
1-Visitor
October 8, 2014

Thanks for the response. I was hoping it was possible, and I would love to see it as a feature in the future. I can't imagine it being terribly hard to implement

1-Visitor
October 9, 2014

Depending on how much time you have, maybe you could get this to work.

You cannot access the page numbers automatically, but you can get the X and Y coordinates of the top left corner of the region, but that's all.

If you make every page break an inserted page break then it would be possible. Those are also regions, so you could get the Y coordinates of all of them, and calculate which page other regions are on.

19-Tanzanite
October 9, 2014

He's using Prime, so no components.

1-Visitor
October 9, 2014

Richard Jackson wrote:

He's using Prime, so no components.

Where did you see that?

Well I suggest he shelves Prime and use the complimentary version of M15