From d06422e1b0990063d3fedf2a6b4077802061c484 Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Wed, 25 Mar 2015 14:32:27 -0400 Subject: [PATCH] rm {} individually and add techreport. --- org-ref.el | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/org-ref.el b/org-ref.el index cf27958..0b86ed0 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,7 +546,8 @@ 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 -- 2.39.2