Guest User

Untitled

a guest
Nov 23rd, 2017
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.75 KB | None | 0 0
  1. documentclass{article}
  2. usepackage{calc}
  3. usepackage[bibstyle=authoryear]{biblatex}
  4. addbibresource{jobname.bib}
  5.  
  6. renewbibmacro*{begentry}{ifkeyword{ownwork}{textasteriskcenteredaddspace}{}}
  7.  
  8. usepackage{filecontents}
  9. begin{filecontents}{jobname.bib}
  10. @inproceedings{foo,
  11. author = {Foo},
  12. title = {Foo},
  13. booktitle = {Foo},
  14. year = {2017},
  15. }
  16. @inproceedings{bar,
  17. author = {Bar},
  18. title = {Bar},
  19. booktitle = {Bar},
  20. year = {2017},
  21. keywords = {ownwork},
  22. }
  23. end{filecontents}
  24.  
  25. begin{document}
  26. nocite{foo,bar}
  27. printbibliography
  28. end{document}
  29.  
  30. renewbibmacro*{begentry}{%
  31. ifkeyword{ownwork}{%
  32. setlength{dimen0}{-widthof{textasteriskcenteredaddspace}}%
  33. hspace{dimen0}textasteriskcenteredaddspace%
  34. }{}}
Add Comment
Please, Sign In to add comment