Do I need add config: ["TeX-AMS_HTML"] ?

56 views
Skip to first unread message

Jack

unread,
Mar 1, 2012, 8:44:01 PM3/1/12
to MathJax Users
From http://www.mathjax.org/docs/2.0/config-files.html

The TeX-AMS_HTML configuration file
MathJax.Hub.Config({
jax: ["input/TeX","output/HTML-CSS"],
extensions: ["tex2jax.js","MathMenu.js","MathZoom.js"],
TeX: {
extensions:
["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
}
});


The MML_HTMLorMML configuration file
MathJax.Hub.Config({
config: ["MMLorHTML.js"],
jax: ["input/MathML","output/HTML-CSS","output/NativeMML"],
extensions: ["mml2jax.js","MathMenu.js","MathZoom.js"]
});



I find TeX-AMS_HTML configuration file miss config: ["TeX-AMS_HTML"],
do I need add config: ["TeX-AMS_HTML"] ?

Davide P. Cervone

unread,
Mar 2, 2012, 10:42:06 AM3/2/12
to mathja...@googlegroups.com

> I find TeX-AMS_HTML configuration file miss config: ["TeX-AMS_HTML"],
> do I need add config: ["TeX-AMS_HTML"] ?

I'm afraid I don't understand the question. The configuration that is
equivalent to TeX-AMS_HTML is

MathJax.Hub.Config({
jax: ["input/TeX","output/HTML-CSS"],
extensions: ["tex2jax.js","MathMenu.js","MathZoom.js"],
TeX: {
extensions:
["AMSmath.js","AMSsymbols.js","noErrors.js","noUndefined.js"]
}
});

As you point out. This is not missing anything. You would not want
to put

config: ["TeX-AMS_HTML"]

into your default.js as that would cause the TeX-AMS_HTML.js
configuration file to be loaded after your default.js file is loaded,
which defeats the purpose of using config=default rather than
config=TeX-AMS_HTML in the first place.

The reason MML_HTMLorMML includes

config: ["MMLorHTML.js"]

is because the MML_HTMLorMML configuration selects the output renderer
(either HTML-CSS or NativeMML) based on the browser's abilities, and
it is the MMLorHTML.js configuration file that does that. Any
combined configuration file that ends in _HTMLorMML uses MMLorHTML.js
to make the choice. But TeX-AMS_HTML does NOT make such a choice; it
always uses the HTML-CSS output renderer, so there is no need to
include MMLorHTML.js or any other configuration file.

Davide


Jack

unread,
Mar 2, 2012, 8:41:12 PM3/2/12
to MathJax Users
Thank you very much!
Reply all
Reply to author
Forward
0 new messages