Open andrew-murdza opened 3 weeks ago
My html code
<!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> <h1>MathField FontShape Example</h1> <math-field id='mf'>\begin{aligned}1=\class{test}{1}\end{aligned}</math-field> <br> <math-field id='mf'>\begin{aligned}1=\textcolor{red}{1}\end{aligned}</math-field> </body> </html>
Using \class doesn't give custom equation spacing like \textcolor does
(Required) Provide steps that are specific and repeatable
Run the attached html code
The second equation with \textcolor has extra spacing before the 1 but the first equation with \class does not
first equation with \class has extra spacing before the 1 due to the = sign just like the second line with textcolor.
Windows Chrome
My html code
Description
Steps to Reproduce
Run the attached html code
Actual Behavior
Expected Behavior
Windows Chrome