The l2h help pages   © Leon van Dommelen 
The latest version of this document is online at eng.famu.fsu.edu or at dommelen.net.

Links to citations

For some reason, you might want to have links to citations in the text. One possibility is that you may simply want to have the citations indexed in the book index. The other possibility is that you may want links from the items in the bibliography to where they are cited in the text.

For the web pages, putting a "\citeindextrue" command somewhere at the start of your document will do both. (If you do not want an index, just leave out the \printindex command. If you want an index, but without citations, it is Perl programming time for you.)

For the pdf, "\citeindextrue" will only create index entries. To get links from the items in the bibliography to where they are cited in the text, use the backref option in \usepackage[...]{hyperref}.

Below is an example in which both types of links have been added:

  1. View the source code.
  2. View the resulting pdf.
  3. View the resulting web pages.
  4. If you want to do this with version 1.1 of l2h or earlier, you need to save this updated natbib.perl file inside the "styles" folder of l2h. (Right-click the link and select "Save as".)

 Index   Intro to LaTeX