* Bug: MathJax rendering problem on Google Chrome [8.2.7c]
@ 2014-12-12 20:38 Yi Wang
0 siblings, 0 replies; only message in thread
From: Yi Wang @ 2014-12-12 20:38 UTC (permalink / raw)
To: emacs-orgmode
[-- Attachment #1: Type: text/plain, Size: 4864 bytes --]
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
<script type="text/javascript" src="
http://orgmode.org/mathjax/MathJax.js"></script>
with
<script type="text/javascript" src="
http://cdn.mathjax.org/mathjax/latest/MathJax.js"></script>
the rendering time becomes normal. I think it is related to a bug in
MathJax (report:
https://groups.google.com/forum/#!msg/mathjax-users/S5x-RQDPJrI/Tn31F4NjcTcJ
),
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)
of 2014-10-21 on bitzer.hoetzel.info
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
)
[-- Attachment #2: Type: text/html, Size: 10045 bytes --]
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2014-12-12 20:38 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-12-12 20:38 Bug: MathJax rendering problem on Google Chrome [8.2.7c] Yi Wang
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).