Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

beamer, natbib and hyperref

594 views
Skip to first unread message

C Hanck

unread,
Jun 27, 2007, 7:21:33 AM6/27/07
to
Dear all,

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},
}

C Hanck

unread,
Jun 30, 2007, 5:33:23 AM6/30/07
to
no idea at all? could it be that beamer somehow interferes with the
standard bibtex way of doing things?

Dominik Waßenhoven

unread,
Jun 30, 2007, 5:49:16 AM6/30/07
to
C Hanck schrieb:

> 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.-

C Hanck

unread,
Jun 30, 2007, 6:35:31 AM6/30/07
to
thank, you 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

C Hanck

unread,
Jul 4, 2007, 11:38:38 AM7/4/07
to
maybe, someone an idea of what goes wrong if no known fix is
available, so that I could try to come up with a workaround

best, christoph


C Hanck

unread,
Aug 2, 2007, 1:31:37 AM8/2/07
to
OK, even though I am clearly the only one currently interested in that
issue, I still show my workaround in case that situation changes in
the future:

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.

0 new messages