Open SimonEnsemble opened 6 years ago
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:
See also #1073
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}
@tlnagy exactly. Plots.jl
takes LaTeXStrings as input.
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.
There is a new vscode extension for doing bulk super/subscript: https://github.com/kindlychung/supersub
Julia 1.6 also supports bulk super/subscript: Julialang/julia#38649.
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.
When I pass in e.g.
L"$r/r_o$"
as anxlabel
in Gadfly, it appears blank. Does Gadfly not support LaTeXStrings?