1

I am trying to cite an article on my beamer slide, but it's not getting cited properly. Please see the code and output below. Please note that the first reference cited as techreport is cited properly, but the second reference cited as the article is neither being cited nor appearing under references. I have tried using the idea presented here but unfortunately cannot comment.

\documentclass{beamer}

\setbeamertemplate{navigation symbols}{} \usetheme{CambridgeUS} % only for this example, otherwise in .bib file \usepackage{filecontents}

\begin{filecontents}{\jobname.bib} @TECHREPORT{RePEc:cwl:cwldpp:159, title = {Commercial Banks as Creators of 'Money'}, author = {Tobin, James}, year = {1963}, institution = {Cowles Foundation for Research in Economics, Yale University}, type = {Cowles Foundation Discussion Papers}, number = {159}, url = {http://EconPapers.repec.org/RePEc:cwl:cwldpp:159} }

@article{oku2004continuous, title={Continuous chemoselective methylation of functionalized amines and diols with supercritical methanol over solid acid and acid- base bifunctional catalysts}, author={Oku, Tomoharu and Arita, Yoshitaka and Tsuneki, Hideaki and Ikariya, Takao}, journal={Journal of the American Chemical Society}, volume={126}, number={23}, pages={7368--7377}, year={2004}, publisher={ACS Publications} }

\end{filecontents}

\usepackage[style=verbose,backend=biber]{biblatex} \addbibresource{\jobname.bib}

\begin{document} \begin{frame}{Introduction} Text text \footcite{RePEc:cwl:cwldpp:159}

sample text 2 \footcite{oku2004continuous}

\end{frame}

\begin{frame}{References} \printbibliography \end{frame}

\end{document}

Output of the latex code in Overleaf

Priyam
  • 49

1 Answers1

1

In your overleaf project, the problem is that a new project will automatically use the latest texlive version overleaf has (texlive from summer 2022) and this latex version comes with a build in filecontents environment. The previously required filecontents package now basically does nothing and let's you just use the build in version from latex.

However, the syntax of the filecontents environment build into latex is different than the one from the filecontents package. You now need

\begin{filecontents*}[overwrite]{\jobname.bib}
...
\end{filecontents*}

If you don't use the new syntax, an already existing file will no longer be overwritten and thus changes, like adding a new entry or changing the title, won't be reflected in the .bib file.