The problem: I write a document with LaTeX equations in it, e.g.
The quick $\alpha$ jumps over the lazy $\beta$
and use org-html-export-to-html to export to html. The equations are
rendered in MathJax. In Google Chrome (version 39 for me), the rending
time for the resulting html file is extremely slow (about 15 seconds).
I noticed that, if I replace the line in the html file
with
the rendering time becomes normal. I think it is related to a bug in
MathJax (report:
and emacs is using an old verison. It would be great if the MathJax on
emacs server be upgraded or patched.
------------------------------------------------------------------------
Emacs : GNU Emacs 24.4.1 (x86_64-unknown-linux-gnu, GTK+ Version 3.14.3)
Package: Org-mode version 8.2.7c (8.2.7c-64-g01f736-elpa @ /home/wangyi/.emacs.d/elpa/org-20140915/)
current state:
==============
(setq
org-src-lang-modes '(("mathematica" . "mma") ("ocaml" . tuareg)
("elisp" . emacs-lisp) ("ditaa" . artist)
("asymptote" . asy) ("dot" . fundamental)
("sqlite" . sql) ("calc" . fundamental) ("C" . c)
("cpp" . c++) ("C++" . c++) ("screen" . shell-script))
org-tab-first-hook '(yas/org-very-safe-expand org-hide-block-toggle-maybe
org-src-native-tab-command-maybe
org-babel-hide-result-toggle-maybe
org-babel-header-arg-expand)
org-speed-command-hook '(org-speed-command-default-hook
org-babel-speed-command-hook)
org-occur-hook '(org-first-headline-recenter)
org-metaup-hook '(org-babel-load-in-session-maybe)
org-html-format-drawer-function '(lambda (name contents) contents)
org-latex-format-inlinetask-function 'ignore
org-confirm-shell-link-function 'yes-or-no-p
org-ascii-format-inlinetask-function 'org-ascii-format-inlinetask-default
org-file-apps '(("\\.nb\\'" . "Mathematica %s")
("\\.xls\\'" . "libreoffice %s") (directory . "dolphin %s")
("\\.djvu\\'" . "okular %s") ("\\.pdf\\'" . "okular %s")
(auto-mode . emacs) ("\\.mm\\'" . default)
("\\.x?html?\\'" . default))
org-support-shift-select t
org-latex-format-headline-function 'org-latex-format-headline-default-function
org-todo-keyword-faces '(("[TODO]" :foreground "red" :weight bold)
("[PROG]" :foreground "magenta" :weight bold)
("[DONE]" :foreground "forest green" :weight bold)
("[WAIT]" :foreground "chocolate" :weight bold)
("[PEND]" :foreground "dim grey" :weight bold)
("[CANC]" :foreground "dim grey" :weight bold))
org-after-todo-state-change-hook '(org-clock-out-if-current)
org-latex-format-drawer-function '(lambda (name contents) contents)
org-from-is-user-regexp "\\<Yi Wang\\>"
org-src-mode-hook '(org-src-babel-configure-edit-buffer
org-src-mode-configure-edit-buffer)
org-agenda-before-write-hook '(org-agenda-add-entry-text)
org-babel-pre-tangle-hook '(save-buffer)
org-mode-hook '(#[nil
"\302\300!\210\303 \304\305\306\"\210\307 \310\311#\207"
[yas/trigger-key yas/keymap make-variable-buffer-local
[tab] add-to-list org-tab-first-hook
yas/org-very-safe-expand define-key [tab] yas/next-field]
4]
wy-soft-wrap-lines
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook org-show-block-all
append local]
5]
#[nil "\300\301\302\303\304$\207"
[org-add-hook change-major-mode-hook
org-babel-show-result-all append local]
5]
org-babel-result-hide-spec org-babel-hide-all-hashes
#[nil
"\300\301\302\"\210\300\303\304\"\210\300\305\306\"\207"
[local-set-key [134217840] wy-screenshot [f5]
wy-org-to-texpdf [f6] wy-org-beamer-concurrent]
3]
flyspell-mode)
org-ascii-format-drawer-function '(lambda (name contents width) contents)
org-replace-disputed-keys t
org-ctrl-c-ctrl-c-hook '(org-babel-hash-at-point
org-babel-execute-safely-maybe)
org-cycle-hook '(org-cycle-hide-archived-subtrees org-cycle-hide-drawers
org-cycle-hide-inline-tasks org-cycle-show-empty-lines
org-optimize-window-after-visibility-change)
org-todo-keywords '((sequence "[TODO]" "[PROG]" "[WAIT]" "|" "[PEND]"
"[CANC]" "[DONE]")
)
org-babel-tangle-lang-exts '(("mathematica" . "m") ("python" . "py")
("C++" . "cpp") ("emacs-lisp" . "el"))
org-confirm-elisp-link-function 'yes-or-no-p
org-metadown-hook '(org-babel-pop-to-session-maybe)
org-latex-listings 'minted
org-html-format-headline-function 'ignore
org-babel-load-languages '((emacs-lisp) (C . t) (python . t) (sh . t))
org-html-format-inlinetask-function 'ignore
org-clock-out-hook '(org-clock-remove-empty-clock-drawer)
org-confirm-babel-evaluate nil
org-src-fontify-natively t
)