From 86dc3a77fa1927e5115cb8bd86eaac94fa04d258 Mon Sep 17 00:00:00 2001 From: John Kitchin Date: Thu, 9 Apr 2015 09:33:18 -0400 Subject: [PATCH 1/1] add latex formatting to scopusid --- sci-id.el | 21 ++++++++++++++++++--- 1 file changed, 18 insertions(+), 3 deletions(-) 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 -- 2.39.2