Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SVG fontdata.js can't be included in a combined configuration file #413

Closed
dpvc opened this issue Mar 18, 2013 · 8 comments

Comments

Projects
None yet
4 participants
@dpvc
Copy link
Member

commented Mar 18, 2013

Since SVG only has one font data file (currently) it would be nice to include that in the combined configuration files for SVG (a sponsor requested this). But there is a timing problem with if if you do. The SVG.fontDir is set in the SVG jax's Config method, so when the fontdata.js file is preloaded, that value is incorrect, and you don't get the proper loadComplete() call, and the SVG output hangs waiting for the file to load.

This can be fixed by using a signal to check for the SVG Config before doing the loadComplete().

dpvc pushed a commit to dpvc/MathJax that referenced this issue Mar 18, 2013

Davide P. Cervone
Wait for SVG to set the fontDir value before setting up the loadhooks…
… or calling loadCompete. This allows fontdata.js to be included in combined configuration files. Resolves issue mathjax#413.
@dpvc

This comment has been minimized.

Copy link
Member Author

commented Mar 18, 2013

Branch issue413 in my fork of MathJax includes the fix.

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Mar 18, 2013

A test case can be obtained by adding the fontdata.js file to the TeX-AMS-MML_SVG configuration file. The math will not be processed (it should time out waiting for the file).

@fred-wang

This comment has been minimized.

Copy link
Contributor

commented Mar 20, 2013

OK, that looks good to me.

I don't think an automated test is needed for this.

@dpvc

This comment has been minimized.

Copy link
Member Author

commented Mar 20, 2013

OK, I've merged this in. I'm fine with not having a test for this.

@dpvc dpvc closed this May 17, 2013

@AleksLife

This comment has been minimized.

Copy link

commented Feb 17, 2016

[Math Processing Error]latexdydx=f(x,y)

I don't know how to fix the problem, any suggestion, but step by step please?

@pkra

This comment has been minimized.

Copy link
Member

commented Feb 18, 2016

Please provide a (ideally minimal) live example exhibiting the problem.

@AleksLife

This comment has been minimized.

Copy link

commented Feb 24, 2016

I have solved the problem. It was that I had duplicated or even triplicated the script used to enable mathjax on web platforms, because I activated the simple mathjax plugin without erasing some scripts I had put in the comments before.
Anyway, thank you

@AleksLife

This comment has been minimized.

Copy link

commented Feb 24, 2016

I have solved the problem. It was that I had duplicated or even triplicated
the script used to enable mathjax on web platforms, because I activated the
simple mathjax plugin without erasing some scripts I had put in the
comments before
Thak you anyway
AVR

2016-02-18 3:22 GMT-05:00 Peter Krautzberger notifications@github.com:

Please provide a (ideally minimal) live example exhibiting the problem.


Reply to this email directly or view it on GitHub
#413 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.