I am using the hyperref package and want to use the \autoref{} command to output the page of the referenced label (similar to \pageref{}). The label is not inside a figure, equation, etc., so by default \autoref{} creates a section x.y link, instead of a page z link that I would like.

Is there a way to do this?


Ok, I found it. There's a command named \autopageref{} which replaces \pageref{} and does exactly what I wanted. More info here.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.