Skip to content
This repository has been archived by the owner on May 2, 2020. It is now read-only.

LaTeX variable with underscore not preserved #12

Open
ledjohnny opened this issue Apr 23, 2016 · 3 comments
Open

LaTeX variable with underscore not preserved #12

ledjohnny opened this issue Apr 23, 2016 · 3 comments

Comments

@ledjohnny
Copy link

If I run:
print(process_sympy("B_{\\nu}"))
I get:
B

Can support be added for outputting B_{\\nu}?

Awesome script BTW!

@augustt198
Copy link
Owner

Yeah that's definitely a problem. Something like x_0 + x_1 shouldn't equal 2x.

Do you have any ideas about what symbol name would be returned by B_{\\nu}? Maybe B_nu...

@ledjohnny
Copy link
Author

Yeah, I suppose the output should be B_nu.

@sindytn
Copy link
Contributor

sindytn commented Jun 8, 2016

I gave this a shot for subscripted functions and variables. Take a look at my pull request (#16). Thanks!

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

No branches or pull requests

3 participants