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

Support LaTeXStrings.jl #1094

Open
SimonEnsemble opened this issue Feb 1, 2018 · 7 comments
Open

Support LaTeXStrings.jl #1094

SimonEnsemble opened this issue Feb 1, 2018 · 7 comments

Comments

@SimonEnsemble
Copy link

When I pass in e.g. L"$r/r_o$" as an xlabel in Gadfly, it appears blank. Does Gadfly not support LaTeXStrings?

@Mattriks
Copy link
Member

Mattriks commented Feb 1, 2018

Julia can generate symbols directly: https://docs.julialang.org/en/v1/manual/unicode-input/ and Tab completion.
Here is a plot I started working on for the Gadfly docs:
issue1073
See also #1073

@tlnagy
Copy link
Member

tlnagy commented Feb 1, 2018

Is it possible to convert LaTeXStrings to Julia's unicode symbols? It would nice to be able to copy LaTeX equations from elsewhere and include them in a Gadfly plot. Also Unicode fractions look hella painful compared to \frac{top}{bottom}

@SimonEnsemble
Copy link
Author

@tlnagy exactly. Plots.jl takes LaTeXStrings as input.

@Mattriks
Copy link
Member

Mattriks commented Feb 2, 2018

https://github.com/SimonDanisch/UnicodeFun.jl
I haven't tried it, but I think doing latex → Unicode in a separate package is the way to go.

@Mattriks
Copy link
Member

There is a new vscode extension for doing bulk super/subscript:
https://github.com/kindlychung/supersub

@Mattriks
Copy link
Member

Julia 1.6 also supports bulk super/subscript: JuliaLang/julia#38649.

@nathanrboyer
Copy link

I often need LaTeXStrings to fill in the gaps in Unicode. For example, y, z, and θ don't exist as Unicode subscripts. I like to use these to indicate direction.

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

No branches or pull requests

4 participants