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
{{ message }}
Repository navigation
Interrupting theta after th leaves \operatorname{th} instead of \theta #3112
Typing theta in one go gives \theta. If the user presses an arrow key or clicks in the field after th, the field keeps \operatorname{th}. This differs from #2536. Instead of staying as plain letters, the interrupted name becomes an operator name the user did not type.
Steps, on MathLive 0.111.1, Chrome 154.0.8037.99, macOS:
Type th, press Left, press Right, then type eta. The value is \operatorname{\mathrm{th}eta}.
Clear the field. Type th, click in the field, then type eta. The value is \operatorname{\mathrm{th}}\eta.
Expected: \theta, or the plain letters theta as in #2536.
From reading the source: th is a default shortcut for \operatorname{th}, and it is also the start of theta. So it converts on the h. The theta match normally replaces it, but an arrow key or a click clears the shortcut buffer first. The pairs ch and chi, and del and delta, overlap the same way.
Would you be open to removing th and ch from the default shortcuts? An app that wants them can still add them back. We remove them in our own config for now. If that direction works for you, I can open a PR.
Activity