]> git.donarmstrong.com Git - org-ref.git/commitdiff
merged fix from https://github.com/jkitchin/org-ref/pull/32
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Thu, 9 Apr 2015 13:37:32 +0000 (09:37 -0400)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Thu, 9 Apr 2015 13:37:32 +0000 (09:37 -0400)
org-ref.el
sci-id.el
test.bib

index 8be10ef67a1170df7fbfe103fef37857f24703a9..9f02da885ecc678a09fdd4fd2b0d10c122fe3ca8 100644 (file)
@@ -2102,7 +2102,7 @@ arg (ALTERNATIVE-CITE) to get a menu of citation types."
 (defun org-ref-bib-citation ()
   "From a bibtex entry, create and return a simple citation string.
 This assumes you are in an article."
-
+  (bibtex-set-dialect nil t)
   (bibtex-beginning-of-entry)
   (let* ((cb (current-buffer))
         (bibtex-expand-strings t)
index 7729a16ddc6778d3175967b7ac9d54c88aafcecf..7f4b880cc7f2a5f43d5e6922889a5375e8c6fde6 100644 (file)
--- a/sci-id.el
+++ b/sci-id.el
  (lambda
    (link-string)
    (browse-url
-    (format "http://orcid.org/%s" link-string))))
+    (format "http://orcid.org/%s" link-string)))
+ (lambda (keyword desc format)
+   (cond
+    ((eq format 'html)
+     (format "<a href=\"http://orcid.org/%s\">orcid:%s</a>" keyword keyword)))))
 
 (org-add-link-type
  "researcherid"
  (lambda
     (link-string)
     (browse-url
-     (format "http://www.researcherid.com/rid/%s" link-string))))
+     (format "http://www.researcherid.com/rid/%s" link-string)))
+ (lambda (keyword desc format)
+   (cond
+    ((eq format 'html)
+     (format "<a href=\"http://www.researcherid.com/rid/%s\">ResearcherID:%s</a>"
+            keyword keyword)))))
 
 (org-add-link-type
  "scopusid"
    (browse-url
     (format
      "http://www.scopus.com/authid/detail.url?origin=AuthorProfile&authorId=%s"
-     link-string))))
+     link-string)))
+ (lambda (keyword desc format)
+   (cond
+    ((eq format 'latex)
+     (format "\\href{http://www.scopus.com/authid/detail.url\\?origin=AuthorProfile&authorId=%s}{%s}" keyword keyword))
+    ((eq format 'html)
+     (format "<a href=\"http://www.scopus.com/authid/detail.url?origin=AuthorProfile&authorId=%s\">scopusid:%s</a>" keyword keyword)))))
 
 (provide 'sci-id)
 ;;; sci-id.el ends here
index 7344a2eb2e1503c19722e1dc01951a572b5a0db0..3f4bc79fb84ff80ab8a4f865dd419785a05bd459 100644 (file)
--- a/test.bib
+++ b/test.bib
@@ -79,3 +79,28 @@ archivePrefix = "arXiv",
        Title = {Finite Difference Methods and Jump Processes Arising in the Pricing of Contingent Claims: {A} Synthesis},
        Volume = {13},
        Year = {1978}}
+
+
+@article{BoyleBroadieGlasserman:97,
+       author = {Phelim P. Boyle and Mark Broadie and Paul Glasserman},
+       journal = {Journal of Economic Dynamics and Control},
+       pages = {1267--1321},
+       title = {{Monte} {Carlo} Methods for Security Pricing},
+       volume = {21},
+       year = {1997}}
+
+@book{Glasserman:03,
+       address = {New York},
+       author = {Paul Glasserman},
+       publisher = {Springer},
+       title = {{Monte} {Carlo} Methods in Financial Engineering},
+       year = {2003}}
+
+
+@TechReport{ReinerRubinstein:91,
+  author =       {Eric Reiner and Mark Rubinstein},
+  title =        "Exotic Options",
+  institution =  "U.C. Berkeley",
+  year =         1991,
+  type =         "Working Paper",
+}