\usepackage[square, numbers, comma, sort&compress]{natbib}
\hypersetup{urlcolor=red, colorlinks=true}


Am using the third option on here LaTeX Templates (Masters/Doctoral Theses). I want to have citation page numbers next to the reference (bibliography item). I tried couple of options and couldn't compile.

  • 1
    Have you tried it with package backref or the option backref for hyperref?
    – Johannes_B
    Jan 22 '15 at 15:39
  • Code please? I think I did and it didnt work
    – user70997
    Jan 22 '15 at 15:48
  • 1
    That was suggestion. To give a more useful solution, we need a compilable example to test.
    – Johannes_B
    Jan 22 '15 at 15:50
  • I'm using the template as stated in my question
    – user70997
    Jan 22 '15 at 15:53
  • 2
    Please read about minimal testing cases that save the time of supporters.
    – Johannes_B
    Jan 22 '15 at 15:54

As has been pointed out so many hours ago, the key is using package backref.

\usepackage[square, numbers, comma, sort&compress]{natbib}%
\hypersetup{urlcolor=blue, colorlinks=true}
and inserts references such as this one \citep{Reference3}. The
\citep{Reference2, Reference1}) and multiple, sequential
\citep{Reference2, Reference1, Reference3}). This is done

Since the above mentioned Template is one of many worse template, not only on this site, the hyperref approach does not work, since package natbib is loaded after package hyperref hurting the general rule of thumb that hyperref should be loaded as the last package.

The only way to come around this situation is changing the Thesis class, a thing that should never be done by unexperienced users, because that leads to thousands of versions of the same file claiming to be the same.

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.