First time here? Check out the FAQ!

Revision history  [back]

Best way to customize the MathJax settings in Askbot

The MathJax/config/default.js file is used for customize the MathJax settings. To use it i modify this original code in bottom_scripts.html

{% if settings.ENABLE_MATHJAX %}
    <script type='text/javascript' src="{{settings.MATHJAX_BASE_URL}}/MathJax.js">
        MathJax.Hub.Config({
            extensions: ["tex2jax.js"],
            jax: ["input/TeX","output/HTML-CSS"],
            tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
        });
    </script>
{% endif %}

in this other code

{% if settings.ENABLE_MATHJAX %}
    <script type='text/javascript' src="{{settings.MATHJAX_BASE_URL}}/MathJax.js?config=default">
        MathJax.Hub.Config({
            extensions: ["tex2jax.js"],
            jax: ["input/TeX","output/HTML-CSS"],
            tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
        });
    </script>
{% endif %}

With this change i can customize the MathJax settings through MathJax/config/default.js. Can this change compromise some askbot functionality?

Remark. Also i notice that changing the original code in this more simply code

{% if settings.ENABLE_MATHJAX %}
    <script type='text/javascript' src="{{settings.MATHJAX_BASE_URL}}/MathJax.js?config=default">
    </script>
{% endif %}

the body of the question is rendered by MathJax but the title not!

Thanks in advance.

Best way to customize the MathJax settings in Askbotsettings

The MathJax/config/default.js file is used for customize the MathJax settings. To use it i modify this original code in bottom_scripts.html

{% if settings.ENABLE_MATHJAX %}
    <script type='text/javascript' src="{{settings.MATHJAX_BASE_URL}}/MathJax.js">
        MathJax.Hub.Config({
            extensions: ["tex2jax.js"],
            jax: ["input/TeX","output/HTML-CSS"],
            tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
        });
    </script>
{% endif %}

in this other code

{% if settings.ENABLE_MATHJAX %}
    <script type='text/javascript' src="{{settings.MATHJAX_BASE_URL}}/MathJax.js?config=default">
        MathJax.Hub.Config({
            extensions: ["tex2jax.js"],
            jax: ["input/TeX","output/HTML-CSS"],
            tex2jax: {inlineMath: [["$","$"],["\\(","\\)"]]}
        });
    </script>
{% endif %}

With this change i can customize the MathJax settings through MathJax/config/default.js. Can this change compromise some askbot functionality?

Remark. Also i notice that changing the original code in this more simply code

{% if settings.ENABLE_MATHJAX %}
    <script type='text/javascript' src="{{settings.MATHJAX_BASE_URL}}/MathJax.js?config=default">
    </script>
{% endif %}

the body of the question is rendered by MathJax but the title not!

Thanks in advance.