emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* Use CHTML mathjax backend by default
@ 2019-03-22 18:32 Carlos Pita
  2019-03-22 18:34 ` Carlos Pita
  0 siblings, 1 reply; 3+ messages in thread
From: Carlos Pita @ 2019-03-22 18:32 UTC (permalink / raw)
  To: emacs-orgmode

Hi all,

I was having some problems with the mathjax HTML-CSS backend and I
found out that the CHTML backend is currently the preferred one. See
details at https://github.com/mathjax/MathJax/issues/2132 and
http://docs.mathjax.org/en/latest/output.html. Changing the backend to
CHTML fixed my issue.

Wouldn't be time to update the default mathjax version to 2.7.1 (the
current one) and setting the backend to CHTML?

Best regards
--
Carlos

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Use CHTML mathjax backend by default
  2019-03-22 18:32 Use CHTML mathjax backend by default Carlos Pita
@ 2019-03-22 18:34 ` Carlos Pita
  2019-03-22 19:14   ` Carlos Pita
  0 siblings, 1 reply; 3+ messages in thread
From: Carlos Pita @ 2019-03-22 18:34 UTC (permalink / raw)
  To: emacs-orgmode

TL;DR about the specific problem I was having with HTML-CSS:

> both HTML-CSS and CommonHTML use web fonts. But CommonHTML doesn't try to detect their presence, while HTML-CSS does, and it is that detection that is probably going wrong for some reason (I did say it was fragile). HTML-CSS needed to wait for the fonts to arrive because (in the old days before browsers were more consistent with each other), MathJax had to measure the actual displayed subexpressions in order to determine their size, and that meant the font had to be the right one. CommonHTML doesn't have to do that because modern browsers are more consistent about their layout (thanks to better standards and better adherence to them).

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Use CHTML mathjax backend by default
  2019-03-22 18:34 ` Carlos Pita
@ 2019-03-22 19:14   ` Carlos Pita
  0 siblings, 0 replies; 3+ messages in thread
From: Carlos Pita @ 2019-03-22 19:14 UTC (permalink / raw)
  To: emacs-orgmode

Also, they said there:

> I think you'll find that CommonHTML is faster at rendering the math

So:

1. Recommended for newer mathjax versions.
2. Fixed my problem with web fonts.
3. Faster.

It seems like a Pareto improvement to me.

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2019-03-22 19:42 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-03-22 18:32 Use CHTML mathjax backend by default Carlos Pita
2019-03-22 18:34 ` Carlos Pita
2019-03-22 19:14   ` Carlos Pita

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).