Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Current status natbib and beamer #925

Closed
oliviercailloux opened this issue Jan 15, 2025 · 1 comment
Closed

Current status natbib and beamer #925

oliviercailloux opened this issue Jan 15, 2025 · 1 comment

Comments

@oliviercailloux
Copy link

The current user manual does not mention natbib, although it has a section about bibliographies. I believe that an official indication about this natural combination (natbib and beamer) would be most welcome: is use of natbib with beamer unsupported, as indicated here, or discouraged but working, or supported, as perhaps suggested here? Apparently there is some work in beamer about supporting natbib, at least, so if it is meant to be used together with beamer, better state it clearly!

@samcarter
Copy link
Collaborator

samcarter commented Jan 15, 2025

You can use natbib with beamer, but beamer modifications, like little bibliography icons, changing the colour and formatting of the author, title etc. won't work out of the box.

\documentclass{beamer}

\usepackage{natbib}
\begin{filecontents*}[overwrite]{\jobname.bib}
@book{knuth,
  author       = {Knuth, Donald E.},
  title        = {The {\TeX} book},
  year         = 1984,
  maintitle    = {Computers \& Typesetting},
  volume       = {A},
  publisher    = {Addison-Wesley},
  location     = {Reading, Mass.},
  langid       = {english},
  langidopts   = {variant=american},
  sortyear     = {1984-1},
  sorttitle    = {Computers & Typesetting A},
  indexsorttitle= {The TeXbook},
  indextitle   = {\protect\TeX book, The},
  shorttitle   = {\TeX book}
}
\end{filecontents*}

\begin{document}

\begin{frame}
  \citet{knuth}
  
  \bibliographystyle{plainnat}
  \bibliography{\jobname}
\end{frame}

\end{document}

Personally I would use biblatex. It is the easiest to customise and very powerful. Normally the main contradiction to biblatex are journals, who might not accept it, but that's usually not a problem for presentations.

@samcarter samcarter closed this as not planned Won't fix, can't repro, duplicate, stale Jan 31, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants