MathJax configuration should be externally configurable
GENERAL
TESTING
GENERAL
TESTING
Description
After the great contribution at SAK-22384 , Sakai can already render MathJax code.
However, the MathJax configuration is hardcoded in Portal code. This include delimiters and other config options that could be modified according to each institution preferences.
For example, in my university we are going to use the next configuration instead the default:
After the great contribution at SAK-22384 , Sakai can already render MathJax code.
However, the MathJax configuration is hardcoded in Portal code. This include delimiters and other config options that could be modified according to each institution preferences.
For example, in my university we are going to use the next configuration instead the default:
<script type="text/x-mathjax-config">
MathJax.Hub.Config({
tex2jax: { inlineMath: [['$','$'],['\\(','
)']],
processEscapes: true
},
TeX: { equationNumbers: { autoNumber: "AMS" } }
});
</script>
A property or, ideally, a text file could contain this configuration so it could be easily changed.