0

I'm trying to have different colours regarding the hyperlinks for figures and for chapters. So far I've been able to differentiate the colours between equations and chapters/figures, doing this



\usepackage[dvipsnames,table]{xcolor}
\colorlet{linkequation}{red}
\usepackage[colorlinks]{hyperref}

\newcommand*{\SavedEqref}{}
\let\SavedEqref\eqref
\renewcommand*{\eqref}[1]{%
  \begingroup
  \hypersetup{linkcolor=linkequation,
      linkbordercolor=linkequation,
  }%
  \SavedEqref{#1}%
  \endgroup
}

\usepackage{subcaption}
\usepackage{hyperref}
\hypersetup{
  colorlinks=true,
  linkcolor=blue,
  filecolor=magenta,      
  urlcolor=cyan,
  pdftitle={Sharelatex Example},
  bookmarks=true,
  pdfpagemode=FullScreen,
}

What should I add to this in order to have figure references in gray?

1

Your Answer

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

Browse other questions tagged or ask your own question.