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

\textrm turned to math in plot #51

Closed
zhaiyusci opened this issue Jun 6, 2021 · 1 comment
Closed

\textrm turned to math in plot #51

zhaiyusci opened this issue Jun 6, 2021 · 1 comment

Comments

@zhaiyusci
Copy link

zhaiyusci commented Jun 6, 2021

I am using LaTeXStrings.jl with Plots.jl to add labels to my curves. The label contains some formulae and some plain text description (see in the figure below). It seems that if I call the L"" directly, everything is good. However, when I used it in plot, the space and hyphen in text will be rendered as math, say, the space is missing and the hyphen is a minus.

Is it a bug or feature? Maybe I miss that in manual, but if I want the expected label, what should I do?

Snipaste_2021-06-06_20-56-10

BTW, I am using LaTeXStrings v1.2.1 and Plots v1.16.2 .

@stevengj
Copy link
Member

stevengj commented Jun 7, 2021

LaTeXStrings doesn't actually do any LaTeX rendering. That is up to the Plots.jl package (or rather, whatever backend it is using), so you should report the problem there.

@stevengj stevengj closed this as completed Jun 7, 2021
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