[texhax] Labels and References with "varioref"

Lars Madsen daleif at imf.au.dk
Sun Dec 29 18:11:52 CET 2013

I'm not sure it is a good idea to store the term 'item' inside the stored label.

That means you cannot write

>From items (2) and (4) we get...

using references.

If you remove the \formatlabel stuff, then


comes out as


as expected.

I tend to use the quite old fancyref package to solve this, it will react to prefixed labels and you could get

\fref{itm:4A} to return the equivalent to


fancyref is old school, crude, but it works.

/Lars Madsen
Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University
Mere info: http://au.dk/daleif@imf / More information: http://au.dk/en/daleif@imf

From: texhax [texhax-bounces at tug.org] on behalf of Jerry [jerry at seibercom.net]
Sent: 29 December 2013 17:56
To: TeX Questions
Subject: Re: [texhax] Labels and References with "varioref"

On Sun, 29 Dec 2013 11:19:58 -0500, Bob Tennent stated:

>  >|\item This is item 5 which is suppose to reference \vref{itm:4A}
>  >|
>  >|The problem is that (1) it only prints out "A"  and not "item 4A".
> You just have to add "item", as in "reference item~\vref{itm:4A}".

No, you do not understand. It prints out "item", but it does not print
out the correct item umber. Instead of, in this case, printing out
"item 4A", it prints out "item A" which can be ambiguous.

TeX FAQ: http://www.tex.ac.uk/faq
Mailing list archives: http://tug.org/pipermail/texhax/
More links: http://tug.org/begin.html

Automated subscription management: http://tug.org/mailman/listinfo/texhax
Human mailing list managers: postmaster at tug.org

More information about the texhax mailing list