I can't get my bibtex references to be hyperlinked with hyperref in my
beamer presentation. Theorems, equations etc are hyperlinked properly
(not shown below).
The file compiles properly, just that there is no link I can klick on
in the pdf file to reach the reference.
Below's a hopefully minimal example---does anyone know a solution?
Best wishes, Christoph
\documentclass{beamer}
\usepackage{amssymb,latexsym,amsfonts,amsmath,amsthm}
\usepackage[english]{babel}
\usepackage[latin1]{inputenc}
\usepackage[T1]{fontenc}
\usepackage{natbib}
\usepackage{hyperref}
\hypersetup{backref}
\makeatletter
\def\newblock{\beamer@newblock}
\makeatother
\begin{document}
\bibliographystyle{plainnat}
\begin{frame}
\citet{Abadir/Magnus:02}
\end{frame}
\begin{frame}
\bibliography{thebib}
\end{frame}
\end{document}
The corresponding thebib.bib file has the following content:
@STRING{ tej = "The Econometrics Journal" }
@ARTICLE{Abadir/Magnus:02,
author = {Karim M. Abadir and Jan R. Magnus},
title = {Notation in econometrics: a proposal for a
standard},
year = 2002,
journal = tej,
volume = 5,
pages = {76--90},
}
> no idea at all? could it be that beamer somehow interferes with the
> standard bibtex way of doing things?
Yes, as the beameruserguide states:
You can use the bibliography environment and the \cite commands of
LATEX in a beamer presentation. You will typically have to typeset
your bibliography items partly “by hand.” Nevertheless, you /can/ use
bibtex to create a “first approximation” of the bibliography. Copy the
content of the file main.bbl into your presentation.
So you first have to make the bibliography in a separate file and
latex-bibtex run, then copy the .bbl into your presentation, as far as I
understand. I have not tested this, though.
Regards,
Dominik.-
the strange thing is that there seems to be no need for doing this by
hand (which, btw, would pretty much remove the appeal of using bibtex
at all, as one would then always have to keep track of which works one
cites in the main file, so as to copy them in the separate file to get
the bbl file), as the compilation works fine, even with the
bibliography directly included in the beamer presentation. I think
this is because of these lines in my preamble, if I remember correctly
having googled for help in this group on getting bibtex to work at
all:
\makeatletter
\def\newblock{\beamer@newblock}
\makeatother
The only thing that does not work is the hyperlinks, and I still don't
see what to do there.
Best wishes
Christoph
best, christoph
Put a \label{refs} on the frame where you have your references and
"upgrade" your cite commands as in \hyperlink{refs}{\citet{Hayashi:
00}}.
Clumsy, but does the trick.