SHARE
TWEET

Untitled

a guest Jun 25th, 2019 53 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. documentclass{beamer}
  2.  
  3. usepackage[
  4. %   style=numeric,
  5. %   style=numeric-comp,
  6. %   style=numeric-verb,
  7. %   style=authoryear,
  8.     style=authoryear-comp,
  9. %   style=authoryear-ibid,
  10. %   style=authoryear-icomp,
  11. ]{biblatex}
  12.  
  13. addbibresource{biblatex-examples.bib}
  14.  
  15. makeatletter
  16. newcommand{fixnumericstyles}{%
  17.     setbeamertemplate{bibliography item}{insertbiblabel}
  18. }
  19.  
  20. newcommand{fixauthoryearstyles}{%
  21.     newlength{beamer@bibiconwidth}
  22.     settowidthbeamer@bibiconwidth{usebeamertemplate*{bibliography item}}
  23.     setlength{labelwidth}{-beamer@bibiconwidth}
  24.     addtolength{labelwidth}{2labelsep}
  25.     addtolength{bibhang}{labelsep}
  26. }
  27.  
  28. % Numeric styles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  29. defbeamer@namenumeric{numeric}
  30. ifxblx@bbxfilebeamer@namenumeric
  31.     fixnumericstyles
  32. fi
  33. %
  34. defbeamer@namenumericcomp{numeric-comp}
  35. ifxblx@bbxfilebeamer@namenumericcomp
  36.     fixnumericstyles
  37. fi
  38. %
  39. defbeamer@namenumericverb{numeric-verb}
  40. ifxblx@bbxfilebeamer@namenumericverb
  41.     fixnumericstyles
  42. fi
  43. %
  44. % author year styles %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  45. defbeamer@nameauthoryear{authoryear}
  46. ifxblx@bbxfilebeamer@nameauthoryear
  47.     fixauthoryearstyles
  48. fi        
  49. defbeamer@nameauthoryear{authoryear-comp}
  50. ifxblx@bbxfilebeamer@nameauthoryear
  51.     fixauthoryearstyles
  52. fi    
  53. defbeamer@nameauthoryear{authoryear-ibid}
  54. ifxblx@bbxfilebeamer@nameauthoryear
  55.     fixauthoryearstyles
  56. fi    
  57. defbeamer@nameauthoryear{authoryear-icomp}
  58. ifxblx@bbxfilebeamer@nameauthoryear
  59.     fixauthoryearstyles
  60. fi
  61. makeatother
  62. begin{document}
  63.  
  64. begin{frame}{}
  65. cite{sigfridsson}
  66. printbibliography
  67. end{frame}
  68.  
  69.  
  70. end{document}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top