X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=blobdiff_plain;f=org-ref.el;h=784aa76cc4ccf8956ae46f003cc07a0a0e525a7f;hp=cf279584d0a22b7fb1a085a03ffe6061cd2c2333;hb=03b6f12e4d7ca87a9b8123cc2e67e99baf6ab00d;hpb=0cc2275fc2fae335628696fd625848880d09e1d0 diff --git a/org-ref.el b/org-ref.el index cf27958..784aa76 100644 --- a/org-ref.el +++ b/org-ref.el @@ -81,11 +81,9 @@ You should use full-paths for each file." '(("article" . "%a, %t, %j, %v(%n), %p (%y). link. doi.") ("book" . "%a, %t, %u (%y).") - + ("techreport" . "%a, %t, %u (%y).") ("proceedings" . "%e, %t in %S, %u (%y).") - ("inproceedings" . "%a, %t, %p, in %b, edited by %e, %u (%y)")) - "String to format an entry. Just the reference, no numbering at the beginning, etc... see the `org-ref-reftex-format-citation' docstring for the escape codes." :type 'string :group 'org-ref) @@ -548,11 +546,14 @@ Format according to the type in `org-ref-bibliography-entry-format'." ;; unescape the & (setq output (replace-regexp-in-string "\\\\&" "&" output)) ;; hack to replace {} around text - (setq output (replace-regexp-in-string " {\\(.*\\)} " " \\1 " output)) + (setq output (replace-regexp-in-string "{" "" output)) + (setq output (replace-regexp-in-string "}" "" output)) ;; get rid of empty parens (setq output (replace-regexp-in-string "()" "" output)) ;; get rid of empty link and doi (setq output (replace-regexp-in-string " link\\." "" output)) + ;; change double dash to single dash + (setq output (replace-regexp-in-string "--" "-" output)) (setq output (replace-regexp-in-string " doi\\." "" output)) (format "
  • [%s] %s
  • " key key output)))