Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{beamer}
- \usepackage[style=numeric,citecounter=true,citetracker=true]{biblatex}
- \usepackage{filecontents}
- \begin{filecontents*}{myreferences.bib}
- @online{bad,
- author = {{Bad Man}},
- year = {1313},
- title = {Bad Title},
- url = {http://badurl.com/},
- }
- \end{filecontents*}
- \addbibresource{myreferences.bib}
- %https://tex.stackexchange.com/a/165016/38244
- \hypersetup{
- colorlinks,
- citecolor=red,
- linkcolor=blue,
- % backref=true
- }
- \usepackage{algorithm}
- \PassOptionsToPackage{noend}{algpseudocode}% comment out if want end's to show
- \usepackage{algpseudocode}% http://ctan.org/pkg/algorithmicx
- \usepackage{algorithmicx}
- \let\svthefootnote\thefootnote
- \makeatletter
- % https://tex.stackexchange.com/a/29931/38244
- \DeclareCiteCommand{\cite}
- {\usebibmacro{prenote}}%
- {%
- \ifciteseen{}{%
- \usebibmacro{citeindex}%
- \let\thefootnote\relax%
- \footnotetext{%
- \blx@anchor
- \mkbibbrackets{\usebibmacro{cite}}%
- \setunit{\addnbspace}
- \printnames{labelname}%
- \setunit{\labelnamepunct}
- \printfield[citetitle]{title}%
- \newunit%
- \printfield[]{year}%
- }%
- \let\thefootnote\svthefootnote%
- }%
- \autocite{\thefield{entrykey}}%
- }
- {}
- {}
- \makeatother
- \begin{document}
- \begin{frame}{What I found}
- First time, \cite[page 99]{bad}
- \end{frame}
- \begin{frame}{Again}
- Next time, \cite[page 1]{bad} only
- \end{frame}
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement