Nirmal Govind wrote:
> Hi.. while including a cross-reference for a figure, the "Prettyref"
> option puts in the page number by default. So it will, for example, say
> "Figure 1 on page 3". However, if my figure is right above (and on the
> same page as) the place where I put in my cross reference then this
> would look a bit odd. Is there a way I can modify the action of
> "Prettyref" to not output the page number and instead just say "Figure
> 1"?

Have a look at the package varioref, which takes into account if the ref is 
"on the following page", "on the page before" and so on. You can use it 
together with prettyref.

This is from my preamble (rapidly translated from german):

% Varioref:
\usepackage{varioref}
\AtBeginDocument{%
\renewcommand\reftextafter{on the \reftextvario{following}{next} page}%
\renewcommand\reftextfaceafter{on the facing page}%
\renewcommand\reftextbefore{on the preceeding page}%
\renewcommand\reftextfacebefore{on the facing page}%
\renewcommand\reftextfaraway[1]{on page~\pageref{#1}}%
\renewcommand\reftextpagerange[2]{on page~\pageref{#1}--\pageref{#2}}%
}

% Prettyref:
% (varioref-command included)
\usepackage{prettyref}
\newrefformat{cha}{Kapitel~\vref{#1}}
\newrefformat{sec}{Abschnitt~\vref{#1}}
\newrefformat{sub}{Abschnitt~\vref{#1}}
\newrefformat{anm}{Anm.~\ref{#1}}
\newrefformat{app}{Anhang~\vref{#1}}
\newrefformat{tab}{Tabelle~\vref{#1}}
\newrefformat{fig}{Abbildung~\vref{#1}}

Regards,
J�rgen

Reply via email to