I would like to use cleveref
's automatic ref target type recognition but with the more verbal page reference of varioref
. This is my MWE:
\documentclass{report}
\usepackage{varioref}
%\usepackage{cleveref} % note cleveref package changes type of ref..
% and style of references to last/next page
\begin{document}
% This figure appears on page 1.
\begin{figure}[!htb]
\centering
\rule{24pt}{24pt}
\caption{The famous black square}
\label{OneBlackSquare}
\end{figure}
% This sentence appears on page 2.
\clearpage
The non-color black is shown in \vref{OneBlackSquare}.
\end{document}
It produces a nice to read verbal reference when using the varioref
package:
The only thing missing is the automatic target type. Enabling the cleveref
package adds this very good feature but also overrides all verbal behavior of varioref
. Regardless of the space to the target all references are located by page number instead of "on next page".
But how can I combine them to get:
- the automatic target type like figure or equation of
cleveref
and - the verbal description of the target's position if it is on the last/next page to improve the reader's flow?
Edit after a week: I received no solution proposal and both documentation do not solve my problem. Hence I stick with varioref
and write the type of floating object hard coded in the text.