Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [varioref]

{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.

2
votes
1answer
26 views

Can't identify source of text boxes in template

I'm working with this template. I can't seem to figure out how to remove some of the unwanted boxes, e.g. under the Abstract, there's a grey box that reads "Add new section about results in Chapter 4" ...
3
votes
1answer
187 views

'Smart' cross-referencing of paragraphs

I'm writing a large document where I'm using pretty much every level of sectioning from Part right down to paragraph. I've been using varioref in conjunction with hyperref and cleverref to '...
1
vote
0answers
40 views

Conditional pageref for labels that are in another section and on a page far away

Currently I am experimenting with the cleverref and the varioref package. These packages are great, however, I would like to have a reference command with the following subtle behavior: If the label ...
1
vote
1answer
58 views

Produce reference which reads “section/graph etc. X on page X”

I am new to LaTeX, this question is basic, but I have tried to solve it to no avail. I don't understand the LaTeX lingo too well, so I'd appreciate an answer a complete beginner will get. Thank you. ...
1
vote
2answers
190 views

Have varioref output a \nameref instead of a \ref

According to the varioref package documentation: The implementation of \vref below produces only a \ref when reference and \label are on the same page. It will additionally produce one of the ...
1
vote
1answer
78 views

customization of references

Im working with a tex document with a lot of references. Im using: \usepackage{hyperref} \usepackage{varioref} \usepackage{cleveref} \hypersetup{colorlinks=true,citecolor=title,linkcolor=title,...
1
vote
1answer
171 views

How do we get to hyperlink an entire reference when using a mix of varioref, hyperref, cleverref and nameref?

Using a combination of the packages varioref, hyperref, cleverref and nameref we can get sophisticated cross references (technically 'references' to 'labels'), complete with hyperlinks. For example, ...
0
votes
1answer
179 views

Raising the hypertarget of chapter labels

When using twocolumn mode, it is a known issue that references to chapter headings point to the baseline rather than the chapter heading. In a previous question, I asked how to fix this for the ...
3
votes
1answer
105 views

How can I ensure varioref generates unique labels when the document is split into separate files?

After adding the varioref package (to generate text like "Figure XX on page YY" from TeX input like \vref{fig:example}), I started seeing warnings like LaTeX Warning: Label `1@xvr' multiply defined. ...
6
votes
2answers
162 views

\label-\ref consecutively numbered theorems using varioref

I hope all definitions, lemmas, theorems, propositions and corollaries are numbered consecutively. The code as below. My trouble is: when I reference, like \ref{<lemma 4>}, get 'definition 4'. ...
3
votes
1answer
212 views

\vref uses wrong language in LyX as soon as I use two languages

I am using LyX fro writing a bi-lingual document, for wich I use the following custom package definition under "Settings -> Language": \usepackage[english,ngerman]{babel} As soon as I add the second ...
4
votes
1answer
319 views

Intelligent `\vref`

I want to use the package varioref, but using abbreviations ... (p.1) instead of ... on page 1. Unfortunately, I have also references in parentheses, where this would lead to unaesthetic/forbidden (?) ...
5
votes
1answer
306 views

\vref and \vpageref (from varioref) at page boundary are reported except if cleveref is used

The following MWE (borrowed from varioref: \vref or \vpageref at page boundary (may loop)) shows that \vref and \vpageref (from varioref) at page boundary are reported by errors (or warnings if \...
2
votes
1answer
166 views

Compress “page” label with varioref and cleveref

In case of multiple cross-references of same kind (say sections), even if not consecutive, cleveref's \cref command compresses the references' labels by using the plural form: for instance, \cref{foo2,...
1
vote
1answer
123 views

tex4ht: Cannot compile document with \vref command

I use tex4ht to compile my document. In case if I use \vref command in my document, compilation fails with error: Undefined control sequence How to handle this situation?
6
votes
2answers
363 views

Conditional pageref for labels far away

Currently, within my thesis, I am numberings theorems (and remarks, etc.) with a global counter. This makes it difficult in the printed version to find the theorem if a reference is too far away from ...
4
votes
2answers
379 views

varioref: change default “on the facing page” string

I would like to be able to change the varioref strings. In particular, the on the facing page one. It should not be a problem. The documentation clearly states various macros used, and I would think ...
9
votes
2answers
244 views

Varioref and previous page

With the following MWE: \documentclass{article} \usepackage{thmtools} \usepackage{varioref} \usepackage{cleveref} \declaretheorem[name=Lemma,Refname={Lemma,Lemmas}]{lem} \begin{document} \begin{...
4
votes
1answer
266 views

Fancyref with fmtcount

When I use fancyref with the vario package option: \usepackage[vario]{fancyref} \newcommand{\figvref}[1]{\figurename~\vref{#1}} \newcommand{\tabvref}[1]{\tablename~\vref{#1}} The above would produce ...
3
votes
1answer
132 views

Subequations with varioref and cleverref

Can somebody tell me why the references don't work in this example? \documentclass{article} \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} \usepackage{amsmath} \begin{document} ...
1
vote
1answer
620 views

chktex disable warning about ~ for certain macros when using cleveref with varioref

Is there any way, other than adding per-line suppressions (i.e., %chktex 2) or per warning suppressions to get chktex to stop warning me when \vref and \eqref are preceded by spaces? I am running ...
2
votes
1answer
49 views

Selectively turn off varioref labelformats

varioref introduces the command \labelformat which can automatically render \ref{sec:...} as section~ etc. This feature is very useful for saving some typing and making everything flexible (especially ...
1
vote
1answer
256 views

ams math + AUCTeX + refTeX causing label references to always be \eqref not the desired \vref

As stated on the reftex documentation “Note that this is automatically done by the ‘amsmath.el’ style file of AUCTEX, see Section 7.8.2, page 38 – so if you use AUCTEX, this configuration will not be ...
1
vote
1answer
382 views

varioref's \labelformat for own environment

I defined my own environment for short pseudo-algorithms, and I would like to use the \labelformat command to change the output of \vref. Varioref's documentation says: "The command takes two ...
3
votes
2answers
156 views

placing of floats referenced with varioref

In my text I use \vref{<label>} from the varioref package for referencing figures and tables. In most circumstances this works satisfactory. Exceptions are cases, when in a text line \vref ...
0
votes
1answer
253 views

compatibility cleveref and varioref amsmath [duplicate]

I try to use cleveref and varioref and ams* packages together. But I get some trouble, equations and sections label type seems to change and that does work well. Here is my example: \documentclass[...
3
votes
1answer
122 views

Varioref's “Preceding Page” broken when cleveref is loaded

I'm using varioref together with hyperref and cleveref. Everything works fine except that as soon as I load cleveref, varioref forgets about "on the preceding page" and simply uses "on page N". \...
3
votes
1answer
173 views

Avoid space preceding a reference

I use \vref{something} to reference to figures. As long as this is in regular text everything is fine. But When I surround this with brackets like this (\vref{something}) then is the result is a ...
6
votes
1answer
686 views

Mixing cleveref, vref and ref: Argument of \@firstoftwo has an extra }

I am using varioref and cleveref together. This works pretty well. I had to add a hack though, which modifies the strings used by varioref (in german it should read "ab Seite X" ("starting on page X") ...
6
votes
1answer
468 views

How to change cleveref references to 'verbal' varioref style?

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} %\...
1
vote
1answer
76 views

Change how hyperlinks are displayed

By using \usepackage{varioref} \usepackage{hyperref} \usepackage{cleveref} one automatically gets hyperlinks in a red box or a green box . Is it possible to change this? For example instead of ...
4
votes
1answer
102 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 ...
6
votes
2answers
643 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 ...
8
votes
2answers
2k 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
276 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 I ...
2
votes
1answer
3k 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
254 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
214 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 ...
4
votes
1answer
816 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
183 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
1k 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
327 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 opinion....
15
votes
3answers
5k 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
177 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 ...
11
votes
2answers
1k 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 ...
66
votes
1answer
13k 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 the ...
5
votes
1answer
160 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
3answers
406 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 [] ...
4
votes
1answer
977 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
3k 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... ...