sciapp / gr

GR framework: a graphics library for visualisation applications
Other
327 stars 54 forks source link

Provide a verbatim mode #164

Open t-bltg opened 1 year ago

t-bltg commented 1 year ago

Xref https://github.com/JuliaPlots/Plots.jl/issues/4514.

julia> using GR
julia> plot(1:2, title="\$")
ERROR: syntax error
ERROR: syntax error

It would be useful to provide a verbatim mode (i.e. don't try to interpret title, labels, ... as pseudo-latex commands).

Also, why not support LaTeX inline math mode, instead of plain TeX ?

julia> using GR
julia> plot(1:2, title=raw"\(\sqrt{2}\)")