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
Algebra mode in PGML seems to be hard-coded to use "%g" as the display format for numbers, which leads to some counterintuitive behaviour with MathObjects, particularly when a custom number format is set in the context.
In LaTeX mode it displays 1234567, but in algebra mode it converts to scientific notation. This doesn't seem like the desired behaviour if the author has explicitly set a number format for the MathObject.
Does it make sense to have PGML inherit the number format from the context? Is that even possible?
The text was updated successfully, but these errors were encountered:
This is by design. The algebra math notation is processed in a special Typeset context, which includes more operations and functions than the usual contexts. You can cause the algebra notation to use the current context by adding a star after the notation, as in
[:[$x]:]*
or provide a context in several other ways. See the wiki documentation for details.
though I haven't tried it to see. That should make PGML use your copy of the Typeset context, which you have altered to have the changed number format.
Algebra mode in PGML seems to be hard-coded to use "%g" as the display format for numbers, which leads to some counterintuitive behaviour with MathObjects, particularly when a custom number format is set in the context.
Consider the following MWE:
In LaTeX mode it displays 1234567, but in algebra mode it converts to scientific notation. This doesn't seem like the desired behaviour if the author has explicitly set a number format for the MathObject.
Does it make sense to have PGML inherit the number format from the context? Is that even possible?
The text was updated successfully, but these errors were encountered: