Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
huda-kh opened this issue Sep 17, 2024 · 1 comment
Open

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

huda-kh opened this issue Sep 17, 2024 · 1 comment

Comments

@huda-kh
Copy link

huda-kh commented Sep 17, 2024

\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

@jbezos
Copy link
Owner

jbezos commented Jan 6, 2025

As a workaround you can use the unboxed mode, i.e.:

\begin{enumerate*}[mode =unboxed, itemjoin = \hspace{1.5em}]

I have to investigate what hyperref is doing exactly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants