]> git.donarmstrong.com Git - org-ref.git/blobdiff - arxiv.el
initial commit
[org-ref.git] / arxiv.el
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