{varioref} is a package providing commands for cross-referencing that distinguish whether the target is on the same page, an adjacent page or further away and modify the reference text accordingly.

learn more… | top users | synonyms

4
votes
1answer
36 views

Gene-logic package and bizarre cross-referencing behavior

I am getting some bizarre behavior using the gn-logic (gene-logic) package with some of the various cross-referencing packages. In particular varioref and cleveref. Here is a MWE illustrating the ...
2
votes
0answers
61 views

Varioref, cleveref and autonum together

I'm trying to mix varioref, cleveref and autonum to have the following behaviors: Automatic adding of reference type (i.e. adding "section" when referencing a section). -> cleveref; Adding the "on ...
5
votes
2answers
107 views

Splitting(!) one latex document into two pdf outputs including references

I have a quite huge thesis-latex-document with lots of references to the appendix. The whole document I would like to split into two pdf-files. That means: I would like to have the thesis and the ...
4
votes
1answer
54 views

Mix hyperref and varioref

I like that hyperref gives me results like \ref{eq:first-equation} % yields "equation (1)" and that varioref gives results like \vref{eq:first-equation} % yields "1 on the following page" but ...
1
vote
1answer
116 views

How to modify the label output in cleveref and varioref?

EDIT: The mentioned solution on the bottom of this page works perfectly for the label output. But now I am struggling with the distance of the \crefname and the counter. Instead of a space I would ...
13
votes
1answer
100 views

The LaTeX runs (with varioref) never settle down to a stable final state

This is something which has happened for real in a document where I am using varioref. The LaTeX runs never end, a text chunk keeps on being moved back and forth accross a page break (naturally with ...
1
vote
1answer
30 views

appendices reference with varioref [duplicate]

I am using the appendices and the varioref package to refer at them. The code for the appendices is the following: \documentclass{book} \begin{document} \begin{appendices} \appendixpage ...
3
votes
1answer
81 views

\vref and input command

You've saved my life in some occasions, I am writing my master thesis and as I am working with MATLAB, I found a very useful MATLAB function which "translate" MATLAB images to TeX tikzpicture. I ...
6
votes
2answers
99 views

Referencing label with conditional page info

I would like to have an easy way to reference a label and if that label is not on the current page then its page should be printed in the reference like "See example 2.3 (p.4)". I tried the varioref ...
4
votes
2answers
195 views

How to redefine \label, \ref and \pageref in a way compatible with varioref?

In order to prevent conflicts with labels when gathering exercices from a database, I need to redefine the commands \label, \ref and \pageref to add a local prefix to labels. Unfortunately, the ...
7
votes
1answer
122 views

Collapse “on page”s for multiple references in \vref

The code at the bottom produces See equations (1) and (2) on page 6 and on page 11. What I'd like is See equations (1) and (2) on pages 6 and 11. Otherwise it looks quite strange in my ...
11
votes
2answers
776 views

varioref: \vref or \vpageref at page boundary (may loop)

Sometimes a have situations, where I'm not able to compile a document, because the varioref package result in a loop. Here is a MWE, which result not in an endless loop, but it demonstrate the issue ...
3
votes
1answer
87 views

Switch off “on page” for varioref

For referencing I'm using the three packages \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} In the text I cite with \vref, which is redefined by cleveref and does its job very ...
5
votes
1answer
93 views

cleveref & varioref : Missing \endcsname inserted

I read the excellent question Difference between ref, varioref and cleveref. Decision for a thesis and various doc on the net (the varioref package documentation) and tried to use it... but with many ...
36
votes
1answer
2k views

Difference between ref, varioref and cleveref. Decision for a thesis

How can one make a quick decision what the best "ref" for a thesis in pdflatex with hyperref is? After a few hours reading I do not know more than ref is used by everyone who does not know about ...
5
votes
1answer
70 views

Remove space before \reftextfaraway

I'm trying to change the format of \vref output (from the varioref package). I've added: % Change the format of vrefs \renewcommand*{\reftextfaraway}[1]{, page~\pageref{#1}} This is close, but not ...
6
votes
2answers
109 views

Getting rid of space after \vpageref

I want to use \vpageref and have a comma right after it. The problem is that a space is inserted even though I defined \reftextcurrent to be {}. In the example below I could fix this by adding the [] ...
2
votes
1answer
288 views

Changing the output of \vref

I'm using \vref for labels in my text. I'd like to change it in the output form X on p. Y instead of X on page Y. How can I do it?
8
votes
2answers
652 views

\veqref{} command like \vref…from varioref package

1) The varioref package gives \vref, which gives output as follows... figure~\ref{fig:test} on page~\pageref{fig:test}. 2) The amsmath package gives \eqref{}, which gives output as follows... ...
24
votes
1answer
1k views

Impact of hyperref, when varioref and cleveref are used

I think I may have found a bug in either hyperref, cleverefoder varioref but can't determine the details any further. If do not load hyperref in the following example, the result is fine. ...
12
votes
1answer
471 views

Lost labels using intertext with varioref and hyperref

I have a problem using \intertext together with \vref when hyperref is also used. Consider the following minimal example: \documentclass{article} \usepackage{amsmath, varioref} ...
11
votes
2answers
305 views

Customizing varioref to only add “… on page XX”, and only when there is more than one page in between reference and figure

varioref is a nice package as it will, when referencing, add "... on the [facing/next/preceding/following] page" if the reference and figure (or whatever object is being reference) are located on ...
6
votes
1answer
297 views

Centered captions containing \vref may not always appear as expected

I've noticed that when centered captions contains \vref to some reference, the captions may sometimes not become entirely centered. I see this especially in my document where there are two figures on ...
2
votes
2answers
318 views

Test equality between number of the current page and the one of one reference indicated

In the following code, I have one problem with the test \ifthenelse{\equal{\pageref{#1}}{\thepage}}{...}{...}. Why doesn't this detect the equality hoped if the reference is in the same page where it ...
24
votes
1answer
903 views

Relative chapter references

(A follow-up of sorts on Variable chapter references, as per @werner 's suggestion) This is somewhere in between a request for comments and an actual question (as well as a summary of my experiences ...
7
votes
1answer
517 views

Variable chapter references

I'm looking to typeset certain references à la varioref thus so: if I reference chapter 3 from within chapter 2, I'd like the output to look like "...in the next chapter---" rather than "...in chapter ...
3
votes
1answer
516 views

varioref hyperlinks go outside the text boundary

I'm using the varioref package to get descriptive references. When used with the hyperref package, the links will often go outside of the text boundary, as demonstrated in the MWE below. If I set ...
3
votes
1answer
250 views

Varioref does not refer to the same page in the right way, i.e. 'on this page'

I've got a problem with the varioref package: Whenever I want to refer to something that is on the same page as the reference, varioref normally printed something like 'X on this page' or 'X auf ...