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 introduce extra mstyle elements to set presentation attributes on token elements #61

Closed
fred-wang opened this issue Apr 13, 2019 · 3 comments

Comments

@fred-wang
Copy link
Owner

Follow-up of #10

For example the mathvariant or color attributes can just be set on token elements.

test: \mathfrak{a}

@fred-wang
Copy link
Owner Author

fred-wang commented Apr 13, 2019

test: \mathfrak{a}

The basic case (single token) is now fixed. mstyle is still used for more complex markup e.g. \mathfrak{sl}, \mathfrak{x+y} or \mathfrak{\frac{x}{y}}. I guess a solution would require to do a top-to-bottom pass, but that might decrease the performance and might not be very useful in practice.

fred-wang added a commit that referenced this issue Apr 28, 2019
…token element children. #61

For example \\mathfrak{sl} or \\mathfrak{x+y}
However, we still keep the mstyle when applying colors on multiple token element children, instead of repeating the attribute.
@fred-wang
Copy link
Owner Author

Cases like \mathfrak{sl} or \mathfrak{x+y} with multiple token element children no longer uses an mstyle.

More complex case like \mathfrak{\frac{x}{y}} are not. I'm not really sure they are worth an additional top-to-bottom pass. Leaving this issue opened in case that is desired. Maybe we can do like LaTeXML and introduce an option to force the mathvariant transforms everywhere.

@fred-wang
Copy link
Owner Author

Actually closing this and moving the remaining case to #62

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