<div dir="ltr"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">> Have you tried to switch the order of paxckages? The documentation<br>> says that hyperref should be loaded as the last one.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Yes, of course I've tried switching the order of packages:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">\usepackage[dvipdfmx]{graphicx}<br>\usepackage[dvipdfmx,colorlinks=true,linkcolor=blue]{hyperref}</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">However, color.sty still calls dvips.def and conflicts with dvipdfmx.def.<br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">One of possible solution may be:</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">\usepackage[dvipdfmx]{graphicx,color}% <- explicit option for color.sty<br>\usepackage[dvipdfmx,colorlinks=true,linkcolor=blue]{hyperref}</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">But I think this kind of problem is hard to resolve on the users' side,<br>so I hope this can be handled on the package itself.</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Regards,</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif">Hironobu Yamashita</div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><a href="mailto:h.y.acetaminophen@gmail.com">h.y.acetaminophen@gmail.com</a></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_default" style="font-family:arial,helvetica,sans-serif"><br></div><div class="gmail_extra"><div class="gmail_quote">2015-06-26 23:21 GMT+09:00 Zdenek Wagner <span dir="ltr"><<a href="mailto:zdenek.wagner@gmail.com" target="_blank">zdenek.wagner@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;padding-left:1ex;border-left-color:rgb(204,204,204);border-left-width:1px;border-left-style:solid"><div class="gmail_default" style="font-family:arial,helvetica,sans-serif;display:inline">​​</div>Have you tried to switch the order of paxckages? The documentation<br>
says that hyperref should be loaded as the last one.<br>
Zdeněk Wagner<br>
<a href="http://hroch486.icpf.cas.cz/wagner/" target="_blank" rel="noreferrer">http://hroch486.icpf.cas.cz/wagner/</a><br>
<a href="http://icebearsoft.euweb.cz" target="_blank" rel="noreferrer">http://icebearsoft.euweb.cz</a><br>
<div><div class="h5"><br>
<br>
2015-06-26 7:48 GMT+02:00 Hironobu YAMASHITA <<a href="mailto:h.y.acetaminophen@gmail.com">h.y.acetaminophen@gmail.com</a>>:<br>
> Hello,<br>
><br>
> I have some trouble with hyperref.sty when used at the same time with<br>
> graphicx.sty. The following LaTeX source can cause an error.<br>
> Please typeset using LaTeX + dvipdfmx.<br>
> (tiger.pdf can be obtained by converting tiger.eps with Ghostscript.)<br>
><br>
> ----- test.tex -----<br>
> %#!latex -> dvipdfmx<br>
> \documentclass{article}<br>
> \usepackage[dvipdfmx,colorlinks=true,linkcolor=blue]{hyperref}<br>
> \usepackage[dvipdfmx]{graphicx}<br>
> \begin{document}<br>
> I will introduce an example of mathematical beauty.<br>
> \begin{equation}<br>
>   e^{i \pi} + 1 = 0 \label{eq1}<br>
> \end{equation}<br>
> Equation (\ref{eq1}) is called ``Euler's identity.''<br>
><br>
> Sample image here:<br>
> \includegraphics[width=3ex]{tiger} % tiger.pdf (extension implicit)<br>
> %\includegraphics[width=3ex]{tiger.pdf} % tiger.pdf<br>
> Tiger!<br>
> \end{document}<br>
> ----- End of test.tex -----<br>
><br>
> The error message is:<br>
> ----------<br>
> ./test.tex:12: LaTeX Error: File `tiger' not found.<br>
><br>
> See the LaTeX manual or LaTeX Companion for explanation.<br>
> Type  H <return>  for immediate help.<br>
>  ...<br>
><br>
> l.12 \includegraphics[width=3ex]{tiger}<br>
>                                         % tiger.pdf<br>
> ?<br>
> ----------<br>
><br>
> However,<br>
> * When "colorlinks" option is removed, test.tex causes no error.<br>
> * When .pdf extension is given explicitly, test.tex causes no error.<br>
><br>
> I think this is because "dvips.def" is loaded internally by color.sty<br>
> without driver option, and overloads "dvipdfmx.def" which has been<br>
> already loaded by graphicx.sty. This problem can be fixed:<br>
><br>
> l.2974 in "hyperref.sty" (2012/11/06 v6.83m)<br>
> ----------<br>
> \DeclareVoidOption{dvipdfmx}{%<br>
>   \HyOpt@CheckDvi{dvipdfmx}{%<br>
>     \def\Hy@driver{hdvipdfm}%<br>
>     \PassOptionsToPackage{dvipdfmx}{color}% <- Add this line!<br>
>   }%<br>
> }<br>
> ----------<br>
><br>
> This will solve all the unexpected results coming from conflict<br>
> between two drivers.<br>
> I hope this information helps improve hyperref package.<br>
> Regards,<br>
><br>
> Hironobu Y<br>
> AMASHITA<br>
><br>
> <a href="mailto:h.y.acetaminophen@gmail.com">h.y.acetaminophen@gmail.com</a><br>
</div></div></blockquote></div><br></div></div>