Strange Mathjax output on local versus public host

15 views
Skip to first unread message

tfbo...@gmail.com

unread,
Feb 22, 2018, 6:13:32 AM2/22/18
to MathJax Users
I am not sure what is wrong with my webpage, my set up or  MathJax:

When I display the page on my local host everything looks fine and MathJax produces exactly
the results as expected. However, if upload the webpage on a public server
the output becomes ugly:

For example, see section "Reduced extended evaluation procedure" on

http://www.pblas.com/index.php?page=introduction     ( Source code   view-source:http://www.pblas.com/index.php?page=introduction )

Here some "vspace" was added, which is not printed on my local host.

Also the matrix equation in section "Definition of the Abs-normal form" looks very odd.

Thank you for your support.

Torsten

tfbo...@gmail.com

unread,
Feb 22, 2018, 7:30:26 AM2/22/18
to MathJax Users
Solved.

It did not set the "correct" math default renderer.
The following lines (see http://docs.mathjax.org/en/latest/output.html) did the job:

    <script type="text/x-mathjax-config">
        MathJax.Hub.Register.StartupHook("End Jax",function () {
            var BROWSER = MathJax.Hub.Browser;
            var canUseMML = (BROWSER.isFirefox && BROWSER.versionAtLeast("1.5")) ||
                                            (BROWSER.isMSIE    && BROWSER.hasMathPlayer) ||
                                            (BROWSER.isSafari  && BROWSER.versionAtLeast("5.0")) ||
                                            (BROWSER.isOpera   && BROWSER.versionAtLeast("9.52") &&
                                                                                        !BROWSER.versionAtLeast("14.0"));
            var CONFIG = MathJax.Hub.CombineConfig("MMLorHTML",{
                prefer: {
                MSIE:"MML", Firefox:"HTML", Opera:"HTML", Chrome:"HTML", Safari:"HTML",
                other:"HTML"
                }
            });

Reply all
Reply to author
Forward
0 new messages