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

\class command not giving special equation spacing like \textcolor #2391

Open
andrew-murdza opened this issue Jun 7, 2024 · 0 comments
Open

Comments

@andrew-murdza
Copy link

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>

Description

Using \class doesn't give custom equation spacing like \textcolor does

Steps to Reproduce

(Required) Provide steps that are specific and repeatable

Run the attached html code

Actual Behavior

The second equation with \textcolor has extra spacing before the 1 but the first equation with \class does not

Expected Behavior

first equation with \class has extra spacing before the 1 due to the = sign just like the second line with textcolor.

Windows Chrome

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant