[Tex/LaTex] References at the end of beamer slides (Endnote export as text file)

beamerbibtex

I'm having difficulties making a footnote style reference at the end of a beamer slide. In the MWE below, I have used the footcite command, as per References at the end of beamer slides
However, the author of that post himself mentions that this is just a hack and will not work in all cases. In my specific case, I have exported my bibliography from Endnote to LaTeX as a text file (this is why I use bibliography{example.txt}). I cannot convert example.txt to example.bib via a manual file extension conversion for some reason (probably because information is lost during the conversion when it's done by hand by changing .txt to .bib). However, all entries of that text file are as they should be (i.e., all fields are present in the correct LaTeX formatting). What could be the problem?

\documentclass{beamer}

\usepackage{natbib}
\usepackage{bibentry}
\bibliographystyle{apalike}
\usepackage{chngcntr}

\bibliography{example.txt}

\counterwithin*{footnote}{page}
\newcommand\footcite[1]{\footnote{\bibentry{#1}}\label{\thepage:#1}}
\newcommand\secondcite[1]{\textsuperscript{\ref{\thepage:#1}}}

\begin{document}
Hello,World\footcite{Name2014}
\end{document}

P.S. I have tried creating my own custom text file with only one entry (as per References at the end of beamer slides):

@book{Saussure1995,
    Author = {Ferdinand de Saussure},
    Origyear = {1916},
    Publisher = {Payot},
    Title = {Cours de Linguistique G{\'e}n{\'e}rale},
    Year = {1995}}

And changing the footcite command to footcite{Saussure1995}. I have the exact same output produced as with the code block above, so clearly this is not a problem with my text file.

P.P.S. I have tried making a custom .bib file with just one entry with the following MWE below but I still get the same result:

\documentclass{beamer}

\usepackage{natbib}
\usepackage{bibentry}
\bibliographystyle{apalike}
\usepackage{chngcntr}

\bibliography{example2.bib}

\counterwithin*{footnote}{page}
\newcommand\footcite[1]{\footnote{\bibentry{#1}}\label{\thepage:#1}}
\newcommand\secondcite[1]{\textsuperscript{\ref{\thepage:#1}}}

\begin{document}
Hello,World\footcite{Saussure1995}
\end{document}

Best Answer

I'm not really sure I have understood what your problem is. However, here is a possible solution using biblatex (and there is no need to change the extension of the bibliography file from txt to bib).

\documentclass{beamer}

\usepackage[american]{babel}
\usepackage[style=apa]{biblatex}
\DeclareLanguageMapping{american}{american-apa}
\usepackage{chngcntr}

\DeclareCiteCommand{\footcite}
  [\mkbibfootnote]
  {}
  {\usedriver{}{\thefield{entrytype}}}
  {}
  {}

\addbibresource{apa-test-bib1.txt}

\counterwithin*{footnote}{page}

\begin{document}
\begin{frame}{}
Hello, World\footcite{Labov1972}

Hello, World\footcite{Saussure1995}
\end{frame}

\begin{frame}{}
Hello,World\footcite{Saussure1995}
\end{frame}

\end{document}

This produces the following output:

enter image description here

Related Question