I am adding entries to bookmarks and I want one entry to point to a specific page. However, I don't want to provide it's number, because it may change depending on contents modification before that page. The command to add an entry using the bookmark package is:
\bookmark[page=X,level=0]
where X is the page number. How can I determine at compile time the current page number to replace X with it? I've tried using \thepage in X's place but it didn't work. In the package documentation I found out there are named actions to PrevPage, NextPage, FirstPage and LastPage but there is no CurrentPage. How to fix this?
Thanks.
\hypertarget{fig}{}. – Ulrike Fischer Feb 24 '11 at 17:55hyperrefadds page anchors calledpage.<number>, so you could usedest=page.10to link to page 10. However, linking to fixed page numbers is only limited useful. – Martin Scharrer Jun 16 '11 at 11:28