From: John Kitchin Date: Thu, 9 Apr 2015 13:37:32 +0000 (-0400) Subject: merged fix from https://github.com/jkitchin/org-ref/pull/32 X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=95898732eda8a114e1aa5a06940293a1e00ce2ae;hp=98af8209494ff34ae87a4a529d621f1e86ada923 merged fix from https://github.com/jkitchin/org-ref/pull/32 --- diff --git a/org-ref.el b/org-ref.el index 8be10ef..9f02da8 100644 --- a/org-ref.el +++ b/org-ref.el @@ -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) diff --git a/sci-id.el b/sci-id.el index 7729a16..7f4b880 100644 --- a/sci-id.el +++ b/sci-id.el @@ -30,14 +30,23 @@ (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 "orcid:%s" 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 "ResearcherID:%s" + keyword keyword))))) (org-add-link-type "scopusid" @@ -46,7 +55,13 @@ (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 "scopusid:%s" keyword keyword))))) (provide 'sci-id) ;;; sci-id.el ends here diff --git a/test.bib b/test.bib index 7344a2e..3f4bc79 100644 --- 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", +}