Guest User

Untitled

a guest
Jan 18th, 2018
82
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.03 KB | None | 0 0
  1. documentclass{article}
  2.  
  3. usepackage[style=authortitle]{biblatex}
  4. usepackage{filecontents}
  5.  
  6. begin{filecontents}{jobname.bib}
  7. @book{mybook,
  8. author = {Author},
  9. title = {Book Title},
  10. date = {2018},
  11. }
  12.  
  13. @customa{myentry,
  14. author = {Buthor},
  15. title = {My entry's title},
  16. date = {2017},
  17. xref = {book},
  18. }
  19.  
  20. end{filecontents}
  21.  
  22. addbibresource{jobname.bib}
  23.  
  24. DeclareBibliographyDriver{customa}{%
  25. usebibmacro{bibindex}%
  26. usebibmacro{begentry}%
  27. printnames{author}%
  28. setunit{addcommaspace}%
  29. printfield{title}%
  30. newunitnewblock
  31. usebibmacro{in:}%
  32. entrydata*{mybook}{%
  33. printnames{author}%
  34. setunit{addcommaspace}%
  35. printfield{title}%
  36. newunitnewblock
  37. printtext{Which contains:space}%
  38. printnames{savedauthor}%
  39. setunit{addcommaspace}%
  40. printfield{savedtitle}%
  41. setunit{addcommaspace}%
  42. printdate
  43. % printsaveddate % <- this doesn't work
  44. }%
  45. usebibmacro{finentry}%
  46. }
  47.  
  48.  
  49. begin{document}
  50. nocite{*}
  51. fullcite{myentry}
  52.  
  53. end{document}
Add Comment
Please, Sign In to add comment