From 5ebab7cfa312a020f955a7c83c2eba10bb49fe3d Mon Sep 17 00:00:00 2001 From: tyuuni Date: Tue, 19 May 2015 17:09:33 +0800 Subject: [PATCH] export 'eqref' in html just as in latex use mathjax --- org-ref.el | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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 -- 2.39.2