Search code examples
latexcitationsfootnotes

duplication of same citation in a slide with \footcite{} in Beamer


I am using class beamer to prepare scientific presentation. The myrefernces.bib is included using \addbibresource{}. In one slide, one citation is used twice using \footcite{}. The same citation appears twice in the bottom of the slide also with different numbers. How to avoid this and make the citation appear with same number in the slide as well as through out presentation to avoid confusion.

Thanks in advance.


Solution

  • manual workaround:

    \documentclass{beamer}
    \usepackage[style=authoryear]{biblatex} 
    \usepackage{filecontents}
    \begin{filecontents*}{\jobname.bib}
    @book{knuth,
      author       = {Knuth, Donald E.},
      title        = {The {\TeX} book},
      date         = 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*}
    \addbibresource{\jobname.bib}
    
    \begin{document}
    
    \begin{frame}
    
        test\footcite{knuth}   
    
        test\footnotemark[1] 
    \end{frame}
    
    \end{document}