Advertisement
Guest User

Untitled

a guest
Aug 1st, 2015
228
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.14 KB | None | 0 0
  1. documentclass{article}
  2. usepackage [backend=bibtex,style=authoryear]{biblatex}
  3. usepackage{filecontents}
  4. begin{filecontents}{refs.bib}
  5. @article{a,
  6. title = {first publication},
  7. journal = {a first journal},
  8. author = {A},
  9. year = {2000},
  10. }
  11. @article{b,
  12. title = {second publication},
  13. journal = {a second journal},
  14. author = {X and C},
  15. year = {1988},
  16. }
  17. @article{c,
  18. title = {third publication},
  19. journal = {a third journal},
  20. author = {O and P and Q},
  21. year = {2006},
  22. }
  23. @article{h,
  24. title = {Observations of ingot macrosegregation on model systems},
  25. journal = {Metallurgical Transactions},
  26. author = {Hebditch, D. J. and Hunt, J. D.},
  27. year = {1974},
  28. }
  29. end{filecontents}
  30. addbibresource{refs}
  31. ExecuteBibliographyOptions{ minnames=1, maxnames=2,
  32. maxbibnames=20,
  33. }
  34.  
  35. %define label before reference in list
  36. renewbibmacro{begentry}{%
  37. textbf{(printnames[][-value{liststop}]{labelname}~printfield{labelyear}printfield{extrayear}})\}
  38.  
  39. begin{document}
  40. parencite{a} \
  41. parencite{b} \
  42. parencite{c} \
  43. parencite{h} \
  44. printbibliography
  45. end{document}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement