I am using natbib and unsrtnat style for numerical citation with hyperref package.

\usepackage[square, super, sort]{natbib} 
             bookmarksopen = true,
             bookmarksnumbered = true,
             breaklinks = true,
             colorlinks = true,
             linkcolor = blue,
             urlcolor  = blue,
             citecolor = red,
             anchorcolor = green,
             hyperindex = true,

  some text...\citet{ref1}
   other text

  % some bibliography file
  % test.bib
  @Article {ref1, author = Author1, title = Title1, year = 2010}

\citet{ref1} results in Author1 et al. [1] where only [1] is hyperlinked to the reference. I would like that name part of citation (Author1 et al.) is also hyperlinked. How to make that work?


Under numeric citation labels natbib sets names with the \NAT@test command, defined in natbib.sty. Using etoolbox you can patch \NAT@test to mark the name list with an additional hyperlink.


\patchcmd{\NAT@test}{\else \NAT@nm}{\else \NAT@hyper@{\NAT@nm}}{}{}

  author = {Goossens, Michel and Mittelbach, Frank and Samarin, Alexander},
  title = {The LaTeX Companion},
  edition = {1},
  publisher = {Addison-Wesley},
  location = {Reading, Mass.},
  year = {1994}}
  title = {The Restaurant at the End of the Universe},
  author = {Douglas Adams},
  series = {The Hitchhiker's Guide to the Galaxy},
  publisher = {Pan Macmillan},
  year = {1980}}

\citet{adams}, \citet{companion}, \citet{adams,companion}

enter image description here

|improve this answer|||||

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.