From: John Kitchin Date: Tue, 19 May 2015 16:10:29 +0000 (-0400) Subject: Merge pull request #39 from kuangdash/master X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=5c95e3b367853a4bfabfe0f7a1bb2edb01eea943;hp=207fcf23c1330708746fdc8ea2f9af55114b0c3c Merge pull request #39 from kuangdash/master export 'eqref' in html just as in latex --- diff --git a/org-ref.el b/org-ref.el index d86511e..a019182 100644 --- a/org-ref.el +++ b/org-ref.el @@ -1423,9 +1423,10 @@ Optional argument ARG Does nothing." ;formatting (lambda (keyword desc format) (cond - ((eq format 'html) (format "(%s)" keyword)) - ((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