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

Do not use the mathvariant attribute #62

Open
fred-wang opened this issue Apr 13, 2019 · 1 comment
Open

Do not use the mathvariant attribute #62

fred-wang opened this issue Apr 13, 2019 · 1 comment

Comments

@fred-wang
Copy link
Owner

It can be replaced with direct use of the transformed character. #10 (and maybe #61) might help here.

@fred-wang
Copy link
Owner Author

In practice (e.g. \mathfrak{sl}(n, \mathbb{F}) = \left\{ A \in \mathscr{M}_n(\mathbb{F}) : \operatorname{Tr}(A) = 0 \right\}), the mathvariant attribute is generally no longer used.

However it is still possible to use complex nested expressions like \mathfrak{\frac{x}{y}} and in that case an mstyle with a mathvariant attribute is introduced. Applying the mathvariant transform to the token descendants would require to do an additional top-to-bottom pass which might decrease the performance for a not very important use case. Maybe we can do like LaTeXML and introduce an option to force that top-to-bottom pass if that's really what users want.

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