mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

Give option to not have the left/right arrows navigate between the numerator and denominator of a fraction

Open jaltekruse opened this issue 11 months ago • 1 comments

Most of the sites that use Mathquill that I have encountered set a config option so that the left and right arrows will immediate jump out of the fraction when you reach the corresponding end of the numerator or denominator and then hit left or right one more time.

This is the option https://docs.mathquill.com/en/latest/Config/#leftrightintocmdgoes

While I do understand that this creates a disconnect between the navigation of all of the content of an expression using only left/right, I do think the 2D non-linear nature of expressions makes this a more intuitive behavior for some use cases.

To be fair, the default behavior of Mathquill does match the default in Mathlive, it is possible I missed this option in the docs when I searched for it.

Example from mathquill project home:

https://github.com/user-attachments/assets/6b7c5c67-0095-4718-9701-1c591f06bd69

Example from Desmos:

https://github.com/user-attachments/assets/f73fce33-93c8-4428-9e23-b13895aa2d34

jaltekruse avatar Jan 27 '25 00:01 jaltekruse

Yes, I'm aware of the behavior of Desmos in that regard, and I don't quite understand the appeal. Seems to me that it makes navigating to denominator more difficult. That said, if there is enough interest in supporting that, I'm open to it.

There is actually already an option to control the navigation of the numerator/denominator, but it's specifically for localization where in some East Asian cultures, the denominator is visited first. https://cortexjs.io/mathlive/guides/customizing/#fraction-navigation-order

It could however be extended to include an option to navigate only the numerator (or only the denominator, I suppose).

arnog avatar Jan 27 '25 02:01 arnog