2

I am using refcheck package to check which equation is not cited in my paper. However, it is conflicted with a package "bookmarks". How can I solve that issue, but still use bookmark package

\documentclass[preprint,12pt, sort&compress]{elsarticle}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsmath,mathtools}
\usepackage{framed}
\usepackage{refcheck}
\usepackage[bookmarks,bookmarksopen,bookmarksdepth=2]{hyperref}
\usepackage{bookmark}% http://ctan.org/pkg/bookmark

\begin{document}

\begin{equation}\label{eq:1}
1+1=2
\end{equation}

\begin{equation}\label{eq:2}
1-1=0
\end{equation}

The Eq. (\ref{eq:1}) is cited.
\end{document}
  • Load refcheck after bookmark – user31729 Apr 17 '16 at 8:48
2

refcheck needs to hook into \ref and other, related commands, which isn't possible anymore, if those commands are changed later on (and again) by hyperref and bookmarks:

Solution: Load refcheck after bookmarks

refcheck is one of the rare packages that must be loaded after hyperref etc.

\documentclass[preprint,12pt, sort&compress]{elsarticle}
\usepackage{amssymb}
\usepackage{amsmath}
\usepackage{amsmath,mathtools}
\usepackage{framed}
\usepackage[bookmarks,bookmarksopen,bookmarksdepth=2]{hyperref}
\usepackage{bookmark}% http://ctan.org/pkg/bookmark
\usepackage{refcheck}

\begin{document}

\begin{equation}\label{eq:1}
1+1=2
\end{equation}

\begin{equation}\label{eq:2}
1-1=0
\end{equation}

The Eq. (\ref{eq:1}) is cited.
\end{document}

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.