hyperref icon indicating copy to clipboard operation
hyperref copied to clipboard

hyperref's patch to equation is only partial when amsmath is loaded

Open jfbu opened this issue 9 years ago • 0 comments

This issue was raised at http://tex.stackexchange.com/questions/235665/incorrect-spacing-after-minus-sign-with-combination-of-amsmath-and-hyperref. I commented upon it in my answer at http://tex.stackexchange.com/a/235715. Following code gives wrong spacing around first unary minus.

\documentclass{article}
\usepackage{amsmath}
\usepackage{hyperref}
\begin{document}
\begin{equation}
  -1 = -1 % output: - 1 = -1
\end{equation}
\end{document}

For some reason the patch to equation done by hyperref is seemingly partial, when amsmath is loaded.

In my answer http://tex.stackexchange.com/a/235715 I mention a similar but non-related to hyperref problem, involving amsmath and it is now bug report https://www.latex-project.org/cgi-bin/ltxbugs2html?pr=amslatex/4461&category=AMS+LaTeX&responsible=anyone&state=open&keyword=&search=

jfbu avatar May 31 '16 17:05 jfbu