Klimi's new dotfiles with stow.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

92 lines
2.6 KiB

4 years ago
  1. ;;; author-year.el --- Citation Style Lisp - the other CSL
  2. ;;; Commentary:
  3. ;;
  4. ;;; Code:
  5. (setq citation-style
  6. '((label . orcp-citation-author-year-label)
  7. (prefix . "(")
  8. (suffix . ")")
  9. (delimiter . "; ")
  10. (citeauthor . ((vertical-align . baseline)
  11. (label . orcp-citation-author-label)
  12. (prefix . "")
  13. (suffix . " ")))
  14. (citeyear . ((vertical-align . baseline)
  15. (label . orcp-citation-year-label)
  16. (prefix . "")
  17. (suffix . " ")
  18. (chomp-leading-space . nil)
  19. ))))
  20. (setq bibliography-style
  21. '((sort . nil)
  22. (hanging-indent . 3)
  23. (justification . full)
  24. (spacing . 1)
  25. (label . orcp-citation-author-year-label)
  26. (label-prefix . "(")
  27. (label-suffix . ") ")
  28. (header . ((text . "Bibliography")
  29. (font-style . bold)))
  30. ;; Formatting of fields
  31. ;; Single author name
  32. (author . ((initialize . t) ; use initials, not full names
  33. ;; use firstname and lastname symbols
  34. (name-order . (firstname lastname))
  35. (name-separator . " ")
  36. (et-al . 4) ; after 4 authors use et-al
  37. (delimiter . "; ")
  38. (last-author-delimiter . " and ")
  39. (suffix . "")
  40. (field-separator . ", ")
  41. ;; ; function to convert (first von last jr) to a string.)
  42. (name-format . ''format-author-name)
  43. (field-separator ", ")))
  44. (title . ((font-style . italics)
  45. (suffix . "")
  46. (field-separator . ", ")))
  47. (booktitle . ((font-style . italics)
  48. (suffix . "")
  49. (field-separator . "in ")))
  50. (journal . ((suffix . "")
  51. (field-separator . ", ")))
  52. ;; here we use some logic to group volume(issue) or volume
  53. (volume . ((suffix . (when (orcp-get-entry-field "number" entry)
  54. (orcp-issue entry)))
  55. (field-separator . ", ")))
  56. (issue . ((font-style . bold)
  57. (prefix . "(")
  58. (suffix . ")")
  59. (field-separator . ", ")))
  60. (pages . ((prefix . "pp. ")
  61. (suffix . "")
  62. (field-separator . " ")
  63. (collapse-range . nil)))
  64. (year . ((prefix . "(")
  65. (suffix . ")")
  66. (field-separator . ".")))
  67. (doi . ((prefix . " ")
  68. (suffix . ".")
  69. (field-separator . "")
  70. (formatter . orcp-doi-formatter)))
  71. ;; Formatting of entries
  72. (entries . ((article . (author title journal volume pages year doi))
  73. (inproceedings . (author title booktitle year))
  74. (book . (author title year))
  75. (manual . (author title url doi))
  76. (misc . (author title url doi))
  77. (techreport . (author title institution year))
  78. (mastersthesis . (author title school year))
  79. (phdthesis . (author title school year))
  80. (t . (author title year))))))
  81. (provide 'author-year)
  82. ;;; author-year.el ends here