From: tyuuni Date: Tue, 19 May 2015 09:09:33 +0000 (+0800) Subject: export 'eqref' in html just as in latex X-Git-Url: https://git.donarmstrong.com/?p=org-ref.git;a=commitdiff_plain;h=5ebab7cfa312a020f955a7c83c2eba10bb49fe3d;hp=207fcf23c1330708746fdc8ea2f9af55114b0c3c export 'eqref' in html just as in latex use mathjax --- 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