Guest User

Untitled

a guest
Jul 19th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.50 KB | None | 0 0
  1. bibliography{sources}?
  2.  
  3. latex makebst
  4.  
  5. bibliographystyle{custom_style}.
  6.  
  7. FUNCTION {book}
  8. { output.bibitem
  9. author empty$
  10. { format.editors "author and editor" output.check
  11. add.colon
  12. }
  13. { format.authors output.nonnull
  14. add.colon
  15. crossref missing$
  16. { "author and editor" editor either.or.check }
  17. 'skip$
  18. if$
  19. }
  20. if$
  21. new.block
  22. format.btitle "title" output.check
  23. crossref missing$
  24. { format.bvolume output
  25. new.block
  26. format.number.series output
  27. new.sentence
  28. format.publisher.address output
  29. }
  30. {
  31. new.block
  32. format.book.crossref output.nonnull
  33. }
  34. if$
  35. format.edition output
  36. format.date "year" output.check
  37. new.block
  38. format.url output
  39. new.block
  40. format.note output
  41. fin.entry
  42. }
  43.  
  44. { format.authors output.nonnull
  45. add.colon
  46. crossref missing$
  47. { "author and editor" editor either.or.check }
  48. 'skip$
  49. if$
  50. }
  51.  
  52. {
  53. %format.authors output.nonnull
  54. %add.colon
  55. %crossref missing$
  56. %{ "author and editor" editor either.or.check }
  57. %'skip$
  58. %if$
  59. editor empty$
  60. {
  61. format.authors output.nonnull
  62. add.colon
  63. crossref missing$
  64. { "author and editor" editor either.or.check }
  65. 'skip$
  66. if$
  67. }
  68. {
  69. format.authors format.editors output.nonnull
  70. add.colon
  71. crossref missing$
  72. { "author and editor" editor either.or.check }
  73. 'skip$
  74. if$
  75. }
  76.  
  77. ITERATE {call.type$}
  78.  
  79. %<<EDITOR IN COLLECTIONS:
  80. % %: (def) Same as for edited book (names before booktitle)
  81. % edby,%: In booktitle, edited by .. (where .. is names)
  82. edby-par,%: In booktitle (edited by ..)
  83. % edby-parc,%: In booktitle, (edited by ..)
  84. % edby,edbyx,%: In booktitle, editor ..
  85. % edby,edbyw,%: In booktitle, (editor) ..
  86. % edby-par,edbyx,%: In booktitle (editor..)
  87. % edby-parc,edbyx,%: In booktitle, (editor..)
  88. % edby,edbyy,%: In booktitle, .., editor
  89. % edby-par,edbyy,%: In booktitle (.., editor)
  90.  
  91. FUNCTION {incollection}
  92. { output.bibitem
  93. format.authors "author" output.check
  94. add.colon
  95. new.block
  96. format.title "title" output.check
  97. new.block
  98. crossref missing$
  99. { format.in.ed.booktitle "booktitle" output.check %<-- this guy it is
  100. format.bvolume output
  101. format.number.series output
  102. format.chapter.pages output
  103. new.sentence
  104. format.publisher.address output
  105. format.edition output
  106. format.date "year" output.check
  107. }
  108. { format.incoll.inproc.crossref output.nonnull
  109. format.chapter.pages output
  110. }
  111. if$
  112. new.block
  113. format.url output
  114. new.block
  115. format.note output
  116. fin.entry
  117. }
  118.  
  119. FUNCTION {format.in.ed.booktitle}
  120. { format.booktitle duplicate$ empty$ 'skip$
  121. {
  122. editor "editor" format.names.ed duplicate$ empty$ 'pop$
  123. {
  124. bbl.edby %<-- this one inserts (edited by ...)
  125. " " * swap$ *
  126. "(" swap$ * ")" *
  127. swap$
  128. " " * swap$
  129. * }
  130. if$
  131. word.in swap$ * %<-- This line adds 'In: ' in front of the booktitle, dont need this in pure books
  132. }
  133. if$
  134. }
  135.  
  136. FUNCTION {format.ed.btitle}
  137. { format.btitle duplicate$ empty$ 'skip$
  138. {
  139. editor "editor" format.names.ed duplicate$ empty$ 'pop$
  140. {
  141. bbl.edby
  142. " " * swap$ *
  143. "(" swap$ * ")" *
  144. swap$
  145. " " * swap$
  146. * }
  147. if$
  148. %word.in swap$ *
  149. }
  150. if$
  151. }
Add Comment
Please, Sign In to add comment