;formatting
(lambda (keyword desc format)
(cond
- ((eq format 'html) (format "(<eqref>%s</eqref>)" path))
- ((eq format 'latex)
- (format "\\eqref{%s}" keyword)))))
+ ((eq format 'latex) (format "\\eqref{%s}" keyword))
+ ;;considering the fact that latex's the standard of math formulas, just use mathjax to render the html
+ ;;customize the variable 'org-html-mathjax-template' and 'org-html-mathjax-options' refering to 'autonumber'
+ ((eq format 'html) (format "\\eqref{%s}" keyword)))))
;; ** cite link
;; example of adding your own function
(add-to-list
'org-ref-helm-user-candidates
- '("Example" . (lambda () (message-box "You did it!")))
+ '("Open pdf in emacs" . (lambda ()
+ (find-file
+ (concat
+ org-ref-pdf-directory
+ (car (org-ref-get-bibtex-key-and-file))
+ ".pdf"))))
t)
;;;###autoload