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

Unicode error with PGFPlotsX [BUG] #3219

Closed
RaulDurand opened this issue Jan 10, 2021 · 1 comment · Fixed by #4262
Closed

Unicode error with PGFPlotsX [BUG] #3219

RaulDurand opened this issue Jan 10, 2021 · 1 comment · Fixed by #4262

Comments

@RaulDurand
Copy link

Details

Using Plots with PGFPlotsX backend I get strange substitutions for some characters in the tex file. For example, this code

  plot(
        title = "Interpolação polinomial"
    )
  savefig("fig.tex")

generates a file fig.tex that contains:

\begin{axis}[point meta max={nan}, point meta min={nan}, legend cell align={left}, 
title={Interpola$ç$$ã$o polinomial} ...

As can be seen, in the title, some characters as ç and ã get surrounded by $. The resulting file cannot be included in the main tex file since I get errors like the one below when I try to compile with pdflatex.

Command \c invalid in math mode.

Is this a bug? Is there any setting in Plots.jl to left the title text without modification?

Backends

This bug occurs on ( insert x below )

Backend yes no untested
gr (default) x
pyplot x
plotly x
plotlyjs x
pgfplotsx x
inspectdr x

Versions

Plots.jl version: v1.10.1
Backend version (]st -m): v1.2.10
Output of versioninfo(): Julia Version 1.5.1

@BeastyBlacksmith
Copy link
Member

Honestly thats an issue of Latexify to work around you can wrap yout title in LaTeXString:

  plot(
        title = LaTeXString("Interpolação polinomial")
    )

@t-bltg t-bltg mentioned this issue Jul 7, 2022
1 task
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants