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

add basic latex display support if unicodeit is installed #858

Merged
merged 3 commits into from
Apr 5, 2023

Conversation

HDembinski
Copy link
Member

If the external package unicodeit is installed, translate variable names which contain simple LaTeX into unicode that mimics the correct LaTeX rendering. This only works for very basic LaTeX like $\alpha$.

@HDembinski
Copy link
Member Author

unicodeit could in principle render more complex LaTeX code, if it used a better LaTeX parser. The current code just does simple search and replace, and cannot handle code such as $D^{\ast\ast}$ correctly, since it does not understand the grouping with curly braces.

@HDembinski HDembinski merged commit 6f057af into develop Apr 5, 2023
@HDembinski HDembinski deleted the latex_display_support branch April 5, 2023 10:48
@zjkjsd
Copy link

zjkjsd commented Apr 5, 2023

Indeed! This is awesome! Thank you for adding this feature~

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

Successfully merging this pull request may close these issues.

2 participants