krono / swathesis

An unofficial LaTeX class for writing theses at the Software Architecture Group, Hasso-Plattner-Institut, University of Potsdam, Germany.
LaTeX Project Public License v1.3c
21 stars 18 forks source link

\autoref with page number? #34

Closed marceltaeumel closed 7 years ago

marceltaeumel commented 8 years ago

If the referenced figure is not in the same, previous, or next page, it would be great to add a page number:

figure

krono commented 8 years ago

you can use \autopageref but there's no (easy) facility to detect wether the ref is on the page as the fig.

Also, this is not common.

marceltaeumel commented 8 years ago

... \autoref{fig:foo}\textsmall{(\autopageref{fig:foo})} ...

... \autoref{fig:foo}\textsmall{(p.\pageref{fig:foo})} ...

This seems to be a good idiom: ... \autoref{fig:foo} on \autopageref{fig:foo} ...

krono commented 7 years ago

Can close?