# [texhax] Labels and References with "varioref"

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

\vref{itm:4A}

comes out as

4a

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

item~\vref{itm:4A}

fancyref is old school, crude, but it works.

Institut for Matematik / Department of Mathematics
Aarhus Universitet / Aarhus University

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

--
Jerry
_______________________________________________
TeX FAQ: http://www.tex.ac.uk/faq
Mailing list archives: http://tug.org/pipermail/texhax/