Of historical interest only: Providing a user level setting to select MathJax output mode (chtml vs. svg) #1641
Replies: 9 comments 10 replies
-
Including another output option seems quite reasonable although unfortunate since it is two steps removed (not mathjax's error, but Firefox's). I'll let @drgrice1 weigh on on viability of adding this. In terms of user experience, will students know that they need to switch output modes? I can see a student just trying to work through problems and not know that the problem is output incorrectly. I would say with current WeBWorK to not use Firefox right now--although I realize I haven't even told my students this. |
Beta Was this translation helpful? Give feedback.
-
I do not agree with telling students not to use Firefox. In fact, I recommend that students either use Firefox or Google Chrome. I have not seen any significant issues with MathJax for the problems that I use in my courses on either of those browsers. Although my problems do not use I will try to check into what would be needed to add such an option. |
Beta Was this translation helpful? Give feedback.
-
@taniwallach: You mention that the reason that |
Beta Was this translation helpful? Give feedback.
-
In WeBWorK 2.16, there is a setting which can be set in
I suspect that will not work in develop, as the changes in #1599 modified the lines which load MathJax in the theme template files and file filename is now provided in the template file.. The WW 2.16 files have
while develop now has:
|
Beta Was this translation helpful? Give feedback.
-
@taniwallach: You can change the mathjax file site wide with the new system by modifying the file
Change that to
or if you wish to use a CDN then change it to
Although, I might try to implement another way to change this from a config setting if I have time. |
Beta Was this translation helpful? Give feedback.
-
I think that we should change the default for MathJax to be to use SVG output instead of CHTML. Although I would also like to get @dpvc's opinion on this. |
Beta Was this translation helpful? Give feedback.
-
I have switched MathJax to SVG output on our system, first in one course for testing, now as the site default. Our production system is running WeBWorK 2.16
The Problem Viewer display breaks in certain versions of Firefox. This is relatively easy to work around and so far shows up only for a single problem author using Firefox. I will keep our system on SVG output for the time being. |
Beta Was this translation helpful? Give feedback.
-
@taniwallach I am fine with that. |
Beta Was this translation helpful? Give feedback.
-
@dpvc: Thanks for the information. Hopefully the display issues for CHTML are resolved also. Then we can switch back. |
Beta Was this translation helpful? Give feedback.
-
The idea of providing a user level setting to change MathJax display output format is moot. @dpvc points out below that a change made in the context menu is sticky.
The discussion remains of interest primarily due to the discussions around how to change the default at the server level, and that of the Firefox rendering issues with CHTML output at some zoom levels.
Some browsers (notably FireFox at present) run into issues rendering thin lines in MathJax (when using
chtml
output mode) at various magnification levels due to what seems to be a browser issue.WeBWorK problems on WW 2.16 run into this problem when users are using recent versions of Firefox at present, as noted in #1524. This bug leads to students not seeing the correct mathematical expressions in their problems. See also the the MathJax issues listed below. I now have a report of a similar problem with Chrome.
It seems that this bug only occurs with MathJax's
chtml
=CommonHTML
(HTML+CSS) output mode, which seems to be preferable when it works (as it allows cut and paste).chtml
is the only MathJax output mode currently directly used by WeBWorK.However, in all the cases where I have seen there being problems with MathJax's output in browsers changing to the SVG output mode of MathJax overcame the problem and the visual rendering of the expression would be correct.
As such, it might be convenient to allow a user to request that WeBWorK use SVG output mode for MathJax for his account, rather than recommending that users with such rendering issues change their settings to use the "images" display mode. Due to the general advantages of
chtml
oversvg
output from MathJax, I would not recommend forcing MathJax intosvg
output by default.Supporting this would require:
mathjax/es5/tex-chtml.js
ormathjax/es5/tex-svg.js
are requested by the user's setting.- From what I see, the file
mathjax/es5/tex-chtml.js
is being included via:system.template
file andgateway.template
file, and via@JSLoads
inlib/FormatRenderedProblem.pm
forhtml2xml
tex-chtml.js
@drgrice1 @mgage @pstaabp What do you think about this idea?
MathJax issues related to this:
Firefox bug report: https://bugzilla.mozilla.org/show_bug.cgi?id=1741887
Beta Was this translation helpful? Give feedback.
All reactions