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

galgebra doesn't fully support using LaTeX as symbol name #30

Closed
utensil opened this issue Apr 4, 2019 · 1 comment · Fixed by #17

Comments

@utensil
Copy link
Member

@utensil utensil commented Apr 4, 2019

If use something like

symbols(r'{\color{airforceblue}\theta} {\color{applegreen}\phi}', real = True)

will produce invalid LaTeX output caused by double escaping:

! Missing } inserted.
<inserted text>
                }
l.61 ...\ 0 & {\sin{\left ({\color{airforceblue}\\
                                                  theta } \right )}}^{2}  \e...

If use something like

symbols(r'{\color{airforceblue}theta} {\color{applegreen}phi}', real = True)

to avoid double escaping, then the result is partially theta/phi and partially \theta/\phi:

image

The expected result is:

image

@utensil utensil mentioned this issue Apr 4, 2019
19 of 19 tasks complete
utensil added a commit that referenced this issue Apr 4, 2019
galgebra doesn't fully support using LaTeX as symbol name
utensil added a commit that referenced this issue Apr 4, 2019
1. For PDF generation
2. For Jupyter Notebook
@utensil utensil closed this in #17 Jul 7, 2019
@utensil utensil added this to the 0.4.4 milestone Sep 21, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
1 participant
You can’t perform that action at this time.