Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- \documentclass{article}
- \usepackage{filecontents}
- \usepackage[style=authoryear,backend=biber,maxcitenames=2]{biblatex}
- \DeclareNameAlias{sortname}{last-first}
- \begin{filecontents*}{refs.bib}
- @BOOK
- {KandR,
- AUTHOR = "Jones, A. and Crawford, W. and Smith, M.",
- TITLE = "{The C Programming Language Second Edition}",
- PUBLISHER = "Prentice-Hall, Inc.",
- YEAR = 1988
- }
- @ONLINE
- {CUEDCplusplus,
- AUTHOR = "Love, T.P.",
- TITLE = "{CUED C++}",
- URL = "http://www-h.eng.cam.ac.uk/help/tpl/languages/C++.html",
- URLYEAR = {2008-12-30}
- }
- \end{filecontents*}
- \addbibresource{refs.bib}
- \begin{document}
- According to some Fanta is awesome \parencite{KandR}
- Yet other's don't like it as according to \textcite{KandR}
- ------------
- This is another example just testing the second reference \parencite{CUEDCplusplus}
- And of course using the text cite \textcite{CUEDCplusplus}
- \printbibliography
- \end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement