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

to_latex confusing name #4

Open
jw3126 opened this issue Oct 13, 2016 · 2 comments
Open

to_latex confusing name #4

jw3126 opened this issue Oct 13, 2016 · 2 comments

Comments

@jw3126
Copy link

jw3126 commented Oct 13, 2016

I would expect a function called to_latex to consume something (say unicode) and produce latex. But here it is the other way round:

latexstring = "\\alpha^2 \\cdot \\alpha^{2+3} \\equiv \\alpha^7"
to_latex(latexstring) == "α² ⋅ α²⁺³ ≡ α⁷"

Maybe to_unicode or latex2unicode would be a better name?

@SimonDanisch
Copy link
Owner

Yeah, thats true...
I'd love to have it as a type, and then just define e.g. string.
Maybe I should start including https://github.com/stevengj/LaTeXStrings.jl for that purpose.

@jw3126
Copy link
Author

jw3126 commented Oct 13, 2016

Cool, I was not aware of LaTexStrings.jl.

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

2 participants