jbezos / enumitem

Customize enumerate, itemize and description
MIT License
48 stars 5 forks source link

`hyperref` to `enumerate*` with `itemjoin` jumps to wrong location #51

Open huda-kh opened 1 month ago

huda-kh commented 1 month ago
\documentclass{article}

\usepackage[inline]{enumitem}
\usepackage{hyperref}
\begin{document}

\begin{enumerate*}[itemjoin = \hspace{1.5em}]
\setlist*{inline=true}
   \item{Item one}
   \item{Item two}\label{enum:item2}
   \item{Item three}
   \item{Item four}\label{enum:item4}
   \item{Item five}\label{enum:item5}
   \item{Item six}\label{enum:item6}
   \item{Item seven}\label{enum:item7}

\end{enumerate*}

Refer to \ref{enum:item6} while zoomed in

\end{document}

If you click on the reference while zoomed in, you will notice the jump to the wrong coordinates (end of item 5).

/cc @jbezos