Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

When I use both \documentclass{beamer} and \usepackage{natbib} I get the following error when running latex

! LaTeX Error: \newblock undefined.

How can I solve this? If beamer and natbib are incompatible, is there any other beamer compatible package that provides the (author, year) citing style?

share|improve this question
up vote 4 down vote accepted
+100

I haven’t really worked with the natbib package but I’d like to point you to the great biblatex package which offers a wide range of styles and it is — relatively — easy to configure your own style rules.

Well, the biblatex package seems also to have a natbib compatibility option, that defines some more natbib-like commands. Maybe you should start with

\usepackage[natbib=true, bibstyle=authoryear, citestyle=authoryear-comp]{biblatex}

and change the bibstyle and citestyle according to the documentation. Good luck with it.

share|improve this answer

You don't need to change just, define newblock

\begin{frame}[allowframebreaks]
  \frametitle{Bibliography}
  \def\newblock{\hskip .11em plus .33em minus .07em} % important line
  \nocite{*}
  \bibliographystyle{plain}
  \tiny{
  \bibliography{FEMbiblio}}
\end{frame}

One thing may not work if you want author year

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .