Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2014
169
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.83 KB | None | 0 0
  1. newbibmacro*{cite:seen:related}{%
  2. {xifinlistcs{thefield{crossref}}{blx@bsee@thec@refsection}
  3. {}
  4. {listcsxadd{blx@bsee@thec@refsection}{thefield{crossref}}}}}
  5.  
  6. newcommand{ifrelatedunseen}[2]{%
  7. xifinlistcs{thefield{crossref}}{blx@bsee@thec@refsection}
  8. {#2}
  9. {#1}}
  10.  
  11. renewbibmacro*{cite}{%
  12. usebibmacro{cite:citepages}%
  13. globaltogglefalse{cbx:fullcite}%
  14. globaltogglefalse{cbx:loccit}%
  15. bibhypertarget{citethevalue{instcount}}{%
  16. ifciteseen
  17. {iffieldundef{shorthand}
  18. {ifciteibid
  19. {usebibmacro{cite:ibid}}
  20. {ifthenelse{ifciteidemANDNOTboolean{cbx:noidem}}
  21. {usebibmacro{cite:idem}}
  22. {usebibmacro{cite:name}}%
  23. usebibmacro{cite:title}}%
  24. usebibmacro{cite:save}}
  25. {usebibmacro{cite:shorthand}}}
  26. {ifboolexpr {
  27. test {iffieldundef{crossref}}
  28. or not ( test {ifentrytype{inbook}}
  29. or test {ifentrytype{incollection}} ) }
  30. {usebibmacro{cite:full}%
  31. usebibmacro{cite:save}}
  32. {ifrelatedunseen
  33. {usebibmacro{cite:seen:related}%
  34. usebibmacro{cite:full}%
  35. usebibmacro{cite:save}}
  36. {usebibmacro{related:info}}}}}}
  37.  
  38. newbibmacro*{related:info}{%
  39. usedriver{}{inbook:rel}}
  40.  
  41. DeclareBibliographyDriver{inbook:rel}{%
  42. usebibmacro{bibindex}%
  43. usebibmacro{begentry}%
  44. usebibmacro{author/translator+others}%
  45. setunit{labelnamepunct}newblock
  46. usebibmacro{title}%
  47. newunit
  48. printlist{language}%
  49. newunitnewblock
  50. usebibmacro{byauthor}%
  51. newunitnewblock
  52. usebibmacro{in:}%
  53. usebibmacro{maintitle+booktitle}%
  54. newunit%
  55. bibstring{opcit}%
  56. newunitnewblock
  57. usebibmacro{chapter+pages}%
  58. newunitnewblock
  59. setunit{bibpagerefpunct}newblock
  60. usebibmacro{pageref}%
  61. newunitnewblock
  62. iftoggle{bbx:related}
  63. {usebibmacro{related:init}%
  64. usebibmacro{related}}
  65. {}%
  66. usebibmacro{finentry}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement