mathlive icon indicating copy to clipboard operation
mathlive copied to clipboard

Cannot toggle font style such as roman

Open andrew-murdza opened this issue 1 year ago • 1 comments

Steps to Reproduce

  1. Run this
<!DOCTYPE html>
<html lang="en">
<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>Change FontShape of MathField</title>
  <script defer src="https://unpkg.com/mathlive"></script>
</head>
<body>
<math-field>\mathrm{111}</math-field>
</body>
</html>
  1. Use the right arrow

Expected Behavior

Using the right arrow key enough times leads to leaving \mathrm mode, similar to moving out of an exponent

Actual Behavior

The arrow keys do not leave mathrm mode. The only way to leave is to delete the mathrm text.

Environment

0.1000.0

andrew-murdza avatar Jul 06 '24 18:07 andrew-murdza

Roman, Italic, etc... are not modes, they are attributes applied to the content.

However, it is true that there isn't an easy way to stop applying this style. What should happen is that the current style (roman) should be reflected in the Font Style menu, and should be togglable.

arnog avatar Jul 07 '24 04:07 arnog