Generalhyperref | Non-related Object linked when using dvipdfmx

LaTeX specific issues not fitting into one of the other forums of this category.
Post Reply
texja
Posts: 2
Joined: Sun Aug 07, 2011 6:10 am

hyperref | Non-related Object linked when using dvipdfmx

Post by texja »

Hello!
I’d like to ask you about a problem of hyperref with dvipdfmx.
The problem is that hyperlink may involve non-related object.
There’s a source code to show this problem.

Code: Select all

\documentclass{article}
\usepackage[dvipdfmx]{hyperref}  

\begin{document}  
 
\begin{equation}
x=y \label{eq1}
\end{equation}

\begin{enumerate}
\item \autoref{eq1}
\end{enumerate}

\end{document}
In this example, the hyperlink referring the equation involves the item number in the enumeration.
How should I fix it?
The same kind of problem also occurs, when a hyperlink referring something appears just after a header or a figure.
With pdflatex, I can obtain an exact link, so no problem occurs.
(However, There’s no Japanese version of pdflatex, so I need to use dvipdfmx in Japanese.)

Thank you in advance.
Attachments
by_dvipdfmx.pdf
pdf file generated by dvipdfmx
(There's a problem.)
(4.5 KiB) Downloaded 207 times
by_pdflatex.pdf
pdf file generated by pdflatex
(There's no problem)
(21.19 KiB) Downloaded 184 times
Last edited by texja on Sat Aug 27, 2011 4:34 pm, edited 1 time in total.

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

hyperref | Non-related Object linked when using dvipdfmx

Post by localghost »

Presumably a bug in the hyperref package. I suggest to present this problem at comp.text.tex (ctt) or contact the package maintainer. Feel free to report back after you got an answer.
texja wrote:[…] (However, There’s no Japanese version of pdflatex, so I need to use dvipdfmx in Japanese.) […]
If you want to write Japanese texts, you may give XeLaTeX a try.


Best regards and welcome to the board
Thorsten
texja
Posts: 2
Joined: Sun Aug 07, 2011 6:10 am

Re: hyperref | Non-related Object linked when using dvipdfmx

Post by texja »

Thank you for your advice.
I asked the maintainer of hyperref package. I'll report the result in this board when he replys my mail.
Post Reply