Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I'm using the backref=pages extension of the hyperref package, as I'd like to have a list of back-reference pages after my bibliographic items. Is there a way to enclose these page numbers in brackets like "[2]" instead of just having the number (without enclosure)?

For example, I'd like for a bibitem to appear as

[1] Witten, E., The Theory of Everything, Any Journal, Volume, Pages (Year) [pg. 1], [pg. 2]

share|improve this question
add comment

1 Answer

up vote 4 down vote accepted

The command responsible for typesetting the back references is \backrefxxx, so

\renewcommand{\backrefxxx}[3]{%
  [\hyperlink{page.#1}{backref page #1}]}

will do. This will make all of "backref page #" a link. If you want only the page number to be a link, do

\renewcommand{\backrefxxx}[3]{%
  [backref page \hyperlink{page.#1}{#1}]}

Other variations are possible.

share|improve this answer
    
The second variation is perfect for my needs. Thank you! –  user02138 Jul 20 '11 at 12:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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