# [texhax] Labels and References with "varioref"

Bob Tennent rdt at cs.queensu.ca
Sun Dec 29 17:10:02 CET 2013

 >|From texhax-bounces at tug.org  Sun Dec 29 10:37:23 2013
>|Date: Sun, 29 Dec 2013 10:31:32 -0500
>|From: Jerry <jerry at seibercom.net>
>|To: TeX Questions <texhax at tug.org>
>|Subject: [texhax] Labels and References with "varioref"
>|
>|I don't know id this is the right place to ask this question, but it is
>|as good as any to start with. I am trying to learn how "LaTeX" and use
>|it as a possible replacement for MS Word. In the following example, I
>|am trying to create proper references to items in numbered lists. I
>|don't explain things to well, so I apologize in advance.
>|
>|I am using the "varioref" package to create labels and references. I
>|need to get items create with
>|
>|\begin{enumerate}
>|\item bla bla bla
>|\end{enumerate}
>|
>|referenced correctly.
>|
>|In the following example I need to get the label named in line 11
>|correctly referenced on line 13.
>|
>|\begin{enumerate}
>|\item this is item 1
>|\item This is item 2
>|  \begin{enumerate}
>|  \item this is item 2A
>|  \item This is item 2B
>|  \end{enumerate}
>|\item This is item 3
>|\item this is item 4
>|  \begin{enumerate}
>|  \item This is item 4A \label{itm:4A}
>|  \end{enumerate}
>|\item This is item 5 which is suppose to reference \vref{itm:4A}
>|\end{enumerate}
>|
>|The problem is that (1) it only prints out "A"  and not "item 4A". I
>|added this to the preamble, but it doesn't help.
>|
>|\labelformat{enumi}{item~#1}
>|\labelformat{enumii}{item~#1}
>|\labelformat{enumiii}{item~#1}
>|\labelformat{enumiiii}{item~#1}
>|
>|This may not seem like a huge problem, but these lists are used in
>|legal documents and can be quite lengthy and several levels deep. I
>|need the reference to be more precise than just printing out a vague
>|letter or number that can refer to several placed in the section.
>|
>|--
>|Jerry
>|_______________________________________________
>|TeX FAQ: http://www.tex.ac.uk/faq
>|Mailing list archives: http://tug.org/pipermail/texhax/