Skip to content

Conversation

@drgrice1
Copy link
Member

@drgrice1 drgrice1 commented Mar 7, 2025

See openwebwork/mathquill#37.

All default autoOperatorNames are removed to address openwebwork/webwork2#2203 and openwebwork/webwork2#2681.

Any of those operators can be added back if desired, but having them by default continues to cause issues with typing other things.

@drgrice1 drgrice1 force-pushed the mathquill-version-bump branch from a237983 to 8a0d309 Compare March 7, 2025 15:11
@pstaabp
Copy link
Member

pstaabp commented Mar 11, 2025

Here's a problem that I tested this with:

DOCUMENT();

loadMacros('PGstandard.pl', 'PGML.pl', 'contextUnits.pl');

Context('Units')->withUnitsFor('length', 'time');

$v = Compute("5 min/mi");

BEGIN_PGML
Enter [$v]

[_]{$v}
END_PGML

ENDDOCUMENT();

Copy link
Member

@pstaabp pstaabp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good.

@pstaabp
Copy link
Member

pstaabp commented Mar 11, 2025

@drgrice1: you can add back operators to math quill on a problem-level (or course-level) as needed, correct? Where is this documented?

@drgrice1
Copy link
Member Author

Yes, you can do that. However, it isn't really documented anywhere at this point.

The method used in https://webwork.maa.org/wiki/NamedAnswerRules gives the basic technique to modify the properties of the mqeditor for a specific answer rule. That will work with window.answerQuills.$ansName.mathField.addAutoOperatorNames to add operators back. Code can also be added in a problem to add operators for all answers, or in PGcourse.pl to do that for all problems in a course.

I thought I added a version the problem linked above to the sample problems, but now I am not seeing it. Hmm...

…OperatorNames`.

See openwebwork/mathquill#37.

All default `autoOperatorNames` are removed to address
openwebwork/webwork2#2203 and
openwebwork/webwork2#2681.

Any of those operators can be added back if desired, but having them
by default continues to cause issues with typing other things.
@drgrice1 drgrice1 force-pushed the mathquill-version-bump branch from 8a0d309 to 3b88973 Compare March 12, 2025 17:46
@Alex-Jordan Alex-Jordan merged commit 5d18663 into openwebwork:develop Mar 18, 2025
3 checks passed
@drgrice1 drgrice1 deleted the mathquill-version-bump branch March 24, 2025 10:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants