From: Yi Wang <tririverwangyi@gmail.com>
To: "emacs-orgmode@gnu.org" <emacs-orgmode@gnu.org>
Subject: Bug: MathJax rendering problem on Google Chrome [8.2.7c]
Date: Fri, 12 Dec 2014 20:38:44 +0000 [thread overview]
Message-ID: <CAJferG9x4UwQKkNY4TOk3o92-1hMo+CFGSsarvG8d=yFC-gniw@mail.gmail.com> (raw)
[-- 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 --]
reply other threads:[~2014-12-12 20:38 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='CAJferG9x4UwQKkNY4TOk3o92-1hMo+CFGSsarvG8d=yFC-gniw@mail.gmail.com' \
--to=tririverwangyi@gmail.com \
--cc=emacs-orgmode@gnu.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this external index
https://git.savannah.gnu.org/cgit/emacs.git
https://git.savannah.gnu.org/cgit/emacs/org-mode.git
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.