Merge 3559b539e3cefd0e0a685128e45c8bde9bbf0a2c into da765a5eec89a87166ab12aa7d09c834600185b9

This commit is contained in:
Josef Heinen 2018-07-31 14:08:26 +00:00 committed by GitHub
commit 2e28671c39
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -195,7 +195,7 @@ gr_inqtext(x, y, s::Symbol) = gr_inqtext(x, y, string(s))
function gr_inqtext(x, y, s)
if length(s) >= 2 && s[1] == '$' && s[end] == '$'
GR.inqtextext(x, y, s[2:end-1])
GR.inqmathtex(x, y, s[2:end-1])
elseif findfirst(isequal('\\'), s) != nothing || occursin("10^{", s)
GR.inqtextext(x, y, s)
else