I am preparing presentation with beamer and using pdflatex and bibtex. How can I put references at the end of a frame? What if I use allowframebreaks ?
I do not want all the references put together in one big frame at the end of my presentation, rather I want each reference as footnote on the frame where it has been used.
Note: I am using a custom bibliography style and author-year citation style.
MWE
\documentclass[xcolor=dvipsnames, 10pt]{beamer}
\usepackage[T1]{fontenc}
\usepackage{amssymb}
\usepackage{amsthm}
\usepackage{amsmath,bm,mathtools}
\usepackage{natbib}
\usepackage{bibentry}
\bibliographystyle{apalike}
\usepackage{chngcntr}
\counterwithin*{footnote}{page}
\newcommand\footcite[1]{\footnote{\bibentry{#1}}\label{\thepage:#1}}
\newcommand\secondcite[1]{\textsuperscript{\ref{\thepage:#1}}}
\setbeamertemplate{navigation symbols}{}
\definecolor{byublue}{RGB}{0 34 85}%added
\definecolor{mydarkgray}{RGB}{64 64 64}%added
\usecolortheme[named=MidnightBlue]{structure}%added
\usetheme{Montpellier}%Montpellier originally
\useoutertheme{tree}%added
\useinnertheme{circles}%added
\beamersetuncovermixins{\opaqueness<1>{25}}{\opaqueness<2->{15}}
\usefonttheme{professionalfonts} % using non standard fonts for beamer
\usefonttheme{serif} % default family is serif
\begin{document}
\nobibliography{bibliography_phd_journal_key}
\section{Introduction}
\begin{frame}
\begin{center}
Some text \footcite{titanath2008p165326}
another test \secondcite{titanath2008p165326}
\end{center}
\begin{tabular}{|c|c|}
\hline
Header\footcite{titanath2008p165326} & header \\
\hline
1 & 2 \\
\hline
\end{tabular}
\end{frame}
\bibliographystyle{mybibstyle}
\end{document}
I am using two external .bib files. One is the main .bib file and the other one is for journal name abbreviation.

\documentclassand ending with\end{document}. Usually, we don't put a greeting or a “thank you” in our posts. While this might seem strange at first, it is not a sign of lack of politeness, but rather part of our trying to keep everything very concise. Accepting and upvoting answers is the preferred way here – adn Nov 27 '13 at 21:49\nobibliographycommand. Second, that command is just like a\bibliographycommand, and should simply contain the names of both your.bibfiles. Lastly, you need to remove the\bibliographycommand, it's not needed in this case. – Alan Munn Nov 28 '13 at 12:27