The Higher Education and Research forge

Home My Page Projects Code Snippets Project Openings Développement de WIMS
Summary Activity Forums Tracker Tasks Docs Surveys News SCM Files Listes Sympa

Forum: developers

Monitor Forum | Start New Thread Start New Thread
force_mathml [ Reply ]
By: joke evers on 2014-07-03 09:30
Since all pupils and teachers use modern browsers (no one dares to go online with an antique browser version...and rightly so !!) and all "non-mathml" compliant browsers use javascript mathjax (...) , I had need to force the usage of mathml e.g. to disable the use of math-with-gifs for a individual exercise.
Mainly to do with exploiting the new possibility of using "math-embedded-input-fields" in any latex construct. (and I guess math-with-gifs is not the future...)

However there is no easy exisiting way of direct overriding useropts. (without rewriting the var* files in the session-dir)

So on our servers I've introduced a environment variable called 'force_mathml' into wims.cgi, analogue to the 'disable_zoom' environment variable for overriding "useropts" zoom settings in mathml.
Now any module could override the "useropts" math-with-gifs settings , with declaring
(it will set mathalignbase=2 in 'insmath.c')

If this 'feature' is usefull, I will modify the files in SVN accordingly.