0

I need to reference some text in a itemized list.

If I label the item and then referencing it, will appear in the result document a link to the closest section.

If I label the item and then "namereferencing" it, will appear the correct name but in the result document click on it will bring me at start of the document.

How can I correct reference an item? and a simple text?

3
  • 1
    Hello! You should add a MWE (minimal working example) to your question, so that it may be easier to understand what you're trying to do.
    – G. Gare
    Oct 4, 2019 at 7:18
  • Please provide more information about what "If I label the item" entails. E.g., are you using itemize or enumerate lists? How are these lists numbered? Do you use any packages -- e.g., enumitem-- to help manage the appearance of lists?
    – Mico
    Oct 4, 2019 at 7:26
  • 1
    Use \phantomsection to set an anchor for the hyperref link. Oct 4, 2019 at 16:55

1 Answer 1

1

I tried something like

\documentclass{article}
\usepackage{lipsum}
\usepackage{hyperref}

\begin{document}
    \lipsum
    \begin{enumerate}
        \item\label{it:item} I am an item
    \end{enumerate}
    \lipsum 
    As stated in the item \ref{it:item}.
\end{document}

If I click on the reference it brings me straight to the item. I hope I understood your question, though.

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .