]> git.donarmstrong.com Git - org-ref.git/commitdiff
export 'eqref' in html just as in latex
authortyuuni <kuangdash@126.com>
Tue, 19 May 2015 09:09:33 +0000 (17:09 +0800)
committertyuuni <kuangdash@126.com>
Tue, 19 May 2015 09:09:33 +0000 (17:09 +0800)
use mathjax

org-ref.el

index d86511e6f3912d192dbae220b757c0a8344e12d8..a0191829ed1dd69428cfacd1eaa6d5857a56da21 100644 (file)
@@ -1423,9 +1423,10 @@ Optional argument ARG Does nothing."
  ;formatting
  (lambda (keyword desc format)
    (cond
  ;formatting
  (lambda (keyword desc format)
    (cond
-    ((eq format 'html) (format "(<eqref>%s</eqref>)" 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
 
 
 ;; ** cite link