initial commit
authorJohn Kitchin <jkitchin@andrew.cmu.edu>
Wed, 7 Jan 2015 17:07:24 +0000 (12:07 -0500)
committerJohn Kitchin <jkitchin@andrew.cmu.edu>
Wed, 7 Jan 2015 17:07:24 +0000 (12:07 -0500)
arxiv.el [new file with mode: 0644]

diff --git a/arxiv.el b/arxiv.el
new file mode 100644 (file)
index 0000000..61be277
--- /dev/null
+++ b/arxiv.el
@@ -0,0 +1,13 @@
+(org-add-link-type
+ "arxiv"
+ ;; clicking
+ (lambda (link-string) (browse-url (format "http://arxiv.org/abs/%s" link-string)))
+ ;; formatting
+(lambda (keyword desc format)
+   (cond
+    ((eq format 'html) (format "")); no output for html
+    ((eq format 'latex)
+     ;; write out the latex command
+     (format "\\url{http://arxiv.org/abs/%s}" keyword)))))
+
+;; arxiv:cond-mat/0410285