Is there a way to find out and use the positioning choice (here, top, bottom, page) made for some figure
?
Please spend a few minutes to admire
\edef\mypos{\thepositioningchoicethatwasusedfor{myfig}}
\ifx\mypos h the following image:\fi
\ifx\mypos t \ref{myfig} at the top of page \pageref{myfig}.\fi
\ifx\mypos b \ref{myfig} at the bottom of page \pageref{myfig}.\fi
\ifx\mypos p \ref{myfig} residing on its own page \pageref{myfig}.\fi
\begin{figure}[htbp]
...
\label{myfig}
\end{figure}
I suppose I could play with \zref
to make good guesses, but perhaps there is already something ready-made?
varioref
can help with the wording choices, as canzref
's modules.