Has anyone got a (local) mathjax install to work for MicroSoft Visual
Studio 2010 help?
he help system introduced there is basically a http server on
localhost with the files packaged in a simple zip file. However to
make things interesting the web server rewrites URLs all over the
place.
If the zip file has top level directories html and mathjax
a file html/file.html that does
<script type="text/javascript" src="mathjax/MathJax.js">
does load MathJax.js but the URL as seen in the browser is
http://127.0.0.1:47873/help/1-2920/ms.help?content/NAG/store/NagLibrary.mshc;/mathjax/MathJax.js
with the numbers 1-2920/ and potentially the port number not being
known in advance until the zip file is registered on the client's
machine help server.
Looking in firebug I got a bit lost but basically after loading a
couple of files mathjax fails to find its component javascript files
and no rendering happens. Note that the path to the main mathjax file
is already in the ? query part of the URL so relative links to deeper
files get broken.
I'm aiming to use a local (2.0 but 2.1 or anything that works:-)
MathJax restricted to MathML input and HTML/CSS output using system
installed STIX fonts, currently using the config at the end which
seems to work on local files (and classic chm help files).
For such a restricted configuration, how feasible would it be to get
all needed javascript into a single file (not asking that someone do
it, just asking if it is worth trying or if it is doomed to failure)
David
Current config:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
config: [],
jax: ["input/MathML","output/HTML-CSS"],
extensions: ["mml2jax.js","MathZoom.js"],
showMathMenu: false,
"HTML-CSS": {
availableFonts: ["STIX"],
preferredFont: "STIX",
webFont: null,
imageFont: null
},
MMLorHTML: {
prefer: {
MSIE: "HTML",
Firefox: "HTML",
Opera: "HTML",
Safari: "HTML",
Chrome: "HTML",
other: "HTML"
}
}
});
</script>