BibTeX, biblatex and biberIn beamer: bibliography keeps name of previous section

Information and discussion about BiBTeX - the bibliography tool for LaTeX documents.
Post Reply
brau
Posts: 2
Joined: Fri Nov 20, 2009 6:46 pm

In beamer: bibliography keeps name of previous section

Post by brau »

I understand that by including a frame in my Beamer presentation with the "bibliography" command, a slide whose heading should be "References" will be created. Namely that:

Code: Select all

\begin{frame}[allowframebreaks]{Bibliography}
      \def\newblock{}
      \bibliography{mybibfile}
\end{frame}
should create a slide with the header "References" and the title "Bibliography".

However, the slide created in the presentation keeps the header of the previous section! Although, the bookmarks in the pdf do include a bookmark called "References".

I am using the package natbib and the theme copenhagen ....

Thanks a lot for your help,

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

In beamer: bibliography keeps name of previous section

Post by gmedina »

Hi,

please refer to section 10.6 Adding a Bibliography (pp. 94ff) of the Beamer User Guide.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
brau
Posts: 2
Joined: Fri Nov 20, 2009 6:46 pm

Re: In beamer: bibliography keeps name of previous section

Post by brau »

hi gmedina,

thanks for your help ... the manual only refers to writing the bibliography "by hand", do you think I HAVE to copy my bibliography from the *.bib file and put the text in the beamer file as indicated by the manual for the header to work?

the code I posted works fine it is just that I have to live either with the name of the previous section as the header of the frame with the references or I have to add a new unnumbered section called for example "References", to get that as a header ... which is not a big problem at all, I just have live then with having two bookmarks on the pdf file that point to the slide with references ...
User avatar
gmedina
Posts: 2313
Joined: Wed Jul 11, 2007 11:45 pm

In beamer: bibliography keeps name of previous section

Post by gmedina »

Sorry. I apparently misunderstood your question. You can proceed as the following example suggests:

Code: Select all

\documentclass{beamer}

\begin{document}

\section{Test section}
\begin{frame}
 Test text
\end{frame}

\section{Bibliography}
\begin{frame}[allowframebreaks]
  \frametitle{Bibliography}
  \nocite{*}
  \bibliographystyle{plain}
  \bibliography{biblio}
\end{frame}

\end{document}
and the database biblio.bib (to make the example compilable for everyone):

Code: Select all

@book{goossens93,
	author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
	title = "The Latex Companion",
	year = "1993",
	publisher = "Addison-Wesley",
	address = "Reading, Massachusetts"

}

@book{knuth79,
	author = "Donald E. Knuth",
	title = "Tex and Metafont, New Directions in Typesetting",
	year = "1979",
	publisher = "American Mathematical Society and Digital Press",
	address = "Stanford"
}

@book{lamport94,
	author = "Leslie Lamport",
	title = "Latex: A Document Preparation System",
	year = "1994",
	edition = "Second",
	publisher = "Addison-Wesley",
	address = "Reading, Massachusetts"
}

@misc{patashnik88,
	author = "Oren Patashnik",
	title = "{B}ib{T}e{X}ing.  Documentation for General {B}ib{T}e{X} users",
	year = "1988",
	howpublished = "Electronic document accompanying BibTeX
distribution"
}

@techreport{rahtz89,
	author = "Sebastian Rahtz",
	title = "A Survey of {T}ex and graphics",
	year = "1989",
	institution = "Department of Electronics and Computer Science",
	address = "University of Southampton, UK",
	number = "CSTR 89-7"
}
I believe, however, that using natbib for a bibliography in a beamer document will produce undesired results.
1,1,2,3,5,8,13,21,34,55,89,144,233,...
Post Reply