You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This relates to some of the discussion on #1804. I have an exercise where the units on a certain answer are "min/mi" as in minutes per mile. But the "min" is understood by MathQuill to be the minimum operator, so typing 5 min/mi in a MQ answer blank doesn't work as I'd hope. The "min" is not placed in a numerator.
Currently the default autoOperatorNames for MathQuill are 'arg', 'det', 'dim', 'exp', 'gcd', 'hom', 'ker', 'lg', 'lim', 'max', 'min', 'sup', 'limsup', 'liminf', 'injlim', 'projlim', 'Pr', 'gcf', 'hcf', 'lcm', 'proj', and 'span'. I see no reason that 'Pr' needs to be in this list for WeBWorK. What about the others? Should any of the others be considered for removal?
And I posted my thoughts on that, which are essentially that almost all of these should be removed as they are not MathObjects operators. I think that is consistent with removing min. It's not an operator that you get from any MathObjects context that I know of.
The text was updated successfully, but these errors were encountered:
This is not to hard to change. We can do this either by making this the MathQuill default, or by setting the autoOperatorNames option in mqeditor.js.
If you want this now without a modification to the PG code, you could add the following to the problem. This will set autoOperatorNames to be the empty list.
TEXT(MODES(TeX=>'', HTML=><< 'END_SCRIPT'));
<script>window.addEventListener('DOMContentLoaded', function() { if (window.answerQuills) { for (const ans_name of Object.keys(window.answerQuills)) { answerQuills[ans_name].mathField.options.autoOperatorNames = []; } }});</script>END_SCRIPT
Actually, you could just add that code to PGcourse.pl, and it will be in effect for all problems in the course. That is probably a better way to do it. Then it is also easy to remove once the changes are committed to the PG code.
This relates to some of the discussion on #1804. I have an exercise where the units on a certain answer are "min/mi" as in minutes per mile. But the "min" is understood by MathQuill to be the minimum operator, so typing
5 min/mi
in a MQ answer blank doesn't work as I'd hope. The "min" is not placed in a numerator.In #1804, @drgrice1 posted:
And I posted my thoughts on that, which are essentially that almost all of these should be removed as they are not MathObjects operators. I think that is consistent with removing
min
. It's not an operator that you get from any MathObjects context that I know of.The text was updated successfully, but these errors were encountered: