mathjax in windows help file?

258 views
Skip to first unread message

David Carlisle

unread,
Oct 3, 2012, 8:43:45 AM10/3/12
to mathja...@googlegroups.com
Has anyone got mathjax to run as a local installation with a windows
help file (.chm format)?

I have a cut down mathml input- HTML/CSS output configuration running
fine on the disk.
But when viewed in the compiled help file it doesn't run. All the
necessary mathjax fles appear
to be in the chm as if I disassemble back to a clean directory then
the files view in internet explorer again.

Not sure if it is a modified security environment in the chm or simply
that mathjax doesn't recognise
that it is (essentially) IE (IE 9 in my case) doing the rendering.

The windows help viewer seems a pretty hostile debugging environment
to find out what's happening:-)


David

Davide P. Cervone

unread,
Oct 3, 2012, 8:41:28 PM10/3/12
to mathja...@googlegroups.com
I seem to remember someone being able to use MathJax in chm files. I
looked back and found that he was using the CDN rather than including
MathJax within the file itself. He was using TeX rather than MathML,
so perhaps that has something to do with it. Also, this was in v1.1
days, so perhaps one of the changes has made it fail in chm files.

Do you see any activity from MathJax at all (the small grey back in
the lower left)?

Do you have STIX fonts installed? Since the web-font stuff is some of
the most fragile code, I'm wondering if avoiding the web fonts would
help.

Does the help viewer support SVG now that IE9 does? I wonder if
trying SVG output might help.

Davide

David Carlisle

unread,
Oct 4, 2012, 8:51:25 AM10/4/12
to mathja...@googlegroups.com
> Do you have STIX fonts installed?

I have _lots_ of stuff installed:-) but I can't rely on the users
(well I could actually in this case install the fonts at install time,
I was hoping to avoid that)

> Since the web-font stuff is some of the
> most fragile code, I'm wondering if avoiding the web fonts would help.

Yes that's my thought as well, I was hoping to avoid visibly
installing fonts on the system and using the web fonts within the chm
but that might not work here, more experiments needed.

>
> Does the help viewer support SVG now that IE9 does? I wonder if trying SVG
> output might help.

Well it'll use the underlying mshtmll rendering on the users system
but I certainly can't rely on them having a recent IE.

>
> Davide
>

Thanks for the thoughts,

David

David Carlisle

unread,
Oct 5, 2012, 11:34:43 AM10/5/12
to mathja...@googlegroups.com
finally got something working (not sure it's minimal yet I wanted to
get it working before cutting down too much)

The final piece of the jigsaw was that despite the fact that IE
doesn't seem to mind, the help viewer doesn't like the ?config URL
parameter
so once I just loaded MathJax.js and moved the configuration into a
separate script block it started looking better again.

I think if I get this working I'll assume that the end user has stix
fonts (and include them in our installer assuming licencing OK I'll
check that:-) so aim for a mathjax configuration that is minimal for
just MathML in and just HTML/CSS out and assume stix fonts are
installed in system.

Thanks for the offer of a help, thought I'd let you know there's been
_some_ progress to save you losing the amount of sleep I'd lost:-)

attached chm should hopefully show (just)

testing: \sqrt{\frac{1}{x}}


renamed from .chm to .waschm to keep gmail happy

David
smallhelp.waschm
Reply all
Reply to author
Forward
0 new messages