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

Subscripts should be grouped with base #2541

Open
gunnarmein-ts opened this issue Oct 24, 2024 · 0 comments
Open

Subscripts should be grouped with base #2541

gunnarmein-ts opened this issue Oct 24, 2024 · 0 comments
Assignees
Labels
feature Request for a new feature or functionality, as opposed to a defect in an existing feature.

Comments

@gunnarmein-ts
Copy link
Contributor

Description

Today, Mathlive internally arranges the latex construct "x_i^2" in this way:

position n: x
n+1: ^2
n+3: _i

This makes it impossible to select "x_i", instead, the smallest selection unit bigger than just "x" is "x^2". As per discussion in Discord, changing the order to have the subscript go first after the base, would fix this issue.

Steps to Reproduce

write x_i^2 (in latex box) in mathfield, position cursor before x, press shift-right-arrow to extend selection press shift-right-arrow again (twice), trying to extend over the subscript

Actual Behavior

base and superscript are selected, but not subscript

Expected Behavior

base and subscript should be selected, but not superscript

Environment

Repros on Mathlive demo website 0.101.1, macOS Sonoma, Chrome

@arnog arnog self-assigned this Oct 25, 2024
@arnog arnog added the feature Request for a new feature or functionality, as opposed to a defect in an existing feature. label Oct 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature Request for a new feature or functionality, as opposed to a defect in an existing feature.
Projects
None yet
Development

No branches or pull requests

2 participants