Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove all of the default autoOperatorNames. #37

Merged
merged 1 commit into from
Mar 18, 2025

Conversation

drgrice1
Copy link
Member

@drgrice1 drgrice1 commented Mar 7, 2025

None of these are generally valid for answers in PG problem and having them conflicts with units and string answers. So now there are no autoOperatorNames set by default (same as autoCommands). They can still be added if desired, and will continue to function as before if added.

The LaTeX commands are now created from the BuiltInOpNames constant instead of constructing a new Options object and getting the default autoOperatorNames from there. That should never have been done that way anyway, and was a hack that goes back to the upstream MathQuill code.

This addresses openwebwork/webwork2#2203 and openwebwork/webwork2#2681.

None of these are generally valid for answers in PG problem and having
them conflicts with units and string answers.  So now there are no
autoOperatorNames set by default (same as autoCommands).  They can still
be added if desired, and will continue to function as before if added.

The LaTeX commands are now created from the `BuiltInOpNames` constant
instead of constructing a new `Options` object and getting the default
`autoOperatorNames` from there.  That should never have been done that
way anyway, and was a hack that goes back to the upstream MathQuill
code.

This addresses openwebwork/webwork2#2203 and
openwebwork/webwork2#2681.
drgrice1 added a commit to drgrice1/pg that referenced this pull request Mar 7, 2025
…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 added a commit to drgrice1/pg that referenced this pull request Mar 7, 2025
…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 added a commit to drgrice1/pg that referenced this pull request Mar 12, 2025
…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.
@Alex-Jordan Alex-Jordan merged commit 9c9f16c into openwebwork:main Mar 18, 2025
2 checks passed
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