Advertisement
Guest User

Latex

a guest
Mar 16th, 2013
857
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Latex 0.96 KB | None | 0 0
  1. \documentclass{article}
  2. \usepackage{filecontents}
  3. \usepackage[style=authoryear,backend=biber,maxcitenames=2]{biblatex}
  4.  
  5. \DeclareNameAlias{sortname}{last-first}
  6.  
  7. \begin{filecontents*}{refs.bib}
  8. @BOOK
  9.    {KandR,
  10.     AUTHOR  = "Jones, A. and Crawford, W. and Smith, M.",
  11.     TITLE   = "{The C Programming Language Second Edition}",
  12.     PUBLISHER = "Prentice-Hall, Inc.",
  13.     YEAR = 1988
  14. }
  15. @ONLINE
  16. {CUEDCplusplus,
  17.     AUTHOR  = "Love, T.P.",
  18.     TITLE   = "{CUED C++}",
  19.     URL = "http://www-h.eng.cam.ac.uk/help/tpl/languages/C++.html",
  20.     URLYEAR = {2008-12-30}
  21. }
  22. \end{filecontents*}
  23. \addbibresource{refs.bib}
  24.  
  25. \begin{document}
  26.  
  27. According to some Fanta is awesome \parencite{KandR}
  28.  
  29. Yet other's don't like it as according to \textcite{KandR}
  30.  
  31.  
  32. ------------
  33.  
  34. This is another example just testing the second reference \parencite{CUEDCplusplus}
  35.  
  36. And of course using the text cite \textcite{CUEDCplusplus}
  37.  
  38. \printbibliography
  39. \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement