Guest User

Untitled

a guest
May 31st, 2019
81
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. \documentclass{beamer}
  2. \usepackage[style=numeric,citecounter=true,citetracker=true]{biblatex}
  3. \usepackage{filecontents}
  4. \begin{filecontents*}{myreferences.bib}
  5. @online{bad,
  6. author = {{Bad Man}},
  7. year = {1313},
  8. title = {Bad Title},
  9. url = {http://badurl.com/},
  10. }
  11. \end{filecontents*}
  12. \addbibresource{myreferences.bib}
  13.  
  14. %https://tex.stackexchange.com/a/165016/38244
  15. \hypersetup{
  16. colorlinks,
  17. citecolor=red,
  18. linkcolor=blue,
  19. % backref=true
  20. }
  21.  
  22.  
  23.  
  24. \usepackage{algorithm}
  25. \PassOptionsToPackage{noend}{algpseudocode}% comment out if want end's to show
  26. \usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx
  27. \usepackage{algorithmicx}
  28.  
  29.  
  30. \let\svthefootnote\thefootnote
  31.  
  32. \makeatletter
  33. % https://tex.stackexchange.com/a/29931/38244
  34. \DeclareCiteCommand{\cite}
  35. {\usebibmacro{prenote}}%
  36. {%
  37. \ifciteseen{}{%
  38. \usebibmacro{citeindex}%
  39. \let\thefootnote\relax%
  40. \footnotetext{%
  41. \blx@anchor
  42. \mkbibbrackets{\usebibmacro{cite}}%
  43. \setunit{\addnbspace}
  44. \printnames{labelname}%
  45. \setunit{\labelnamepunct}
  46. \printfield[citetitle]{title}%
  47. \newunit%
  48. \printfield[]{year}%
  49. }%
  50. \let\thefootnote\svthefootnote%
  51. }%
  52. \autocite{\thefield{entrykey}}%
  53. }
  54. {}
  55. {}
  56. \makeatother
  57.  
  58.  
  59.  
  60. \begin{document}
  61.  
  62.  
  63. \begin{frame}{What I found}
  64. First time, \cite[page 99]{bad}
  65. \end{frame}
  66.  
  67. \begin{frame}{Again}
  68. Next time, \cite[page 1]{bad} only
  69. \end{frame}
  70.  
  71.  
  72.  
  73. \end{document}
RAW Paste Data