# Unicode error with Plots.jl and PGFPlotsX

**URL:** https://discourse.julialang.org/t/unicode-error-with-plots-jl-and-pgfplotsx/53070
**Category:** General Usage
**Tags:** plotting, pgfplotsx
**Created:** [January 9, 2021, 12:08am UTC](https://discourse.julialang.org/t/unicode-error-with-plots-jl-and-pgfplotsx/53070 "2021-01-09T00:08:14Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![RaulDurand](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/rauldurand/32/2044_2.png) [@RaulDurand](https://discourse.julialang.org/u/RaulDurand)
#### Post date: [January 9, 2021, 12:08am UTC](https://discourse.julialang.org/t/unicode-error-with-plots-jl-and-pgfplotsx/53070/1 "2021-01-09T00:08:14Z")

</div>

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

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

```

generates a file fig.tex that contains:

```nohighlight
\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.

```julia
Command \c invalid in math mode.

```

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

---

<div class="post-metadata">

### Author: ![gustaphe](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/gustaphe/32/18174_2.png) [@gustaphe](https://discourse.julialang.org/u/gustaphe)
#### Post date: [June 13, 2021, 12:15pm UTC](https://discourse.julialang.org/t/unicode-error-with-plots-jl-and-pgfplotsx/53070/2 "2021-06-13T12:15:58Z")

</div>

```julia
using Plots, LaTeXStrings
pgfplotsx()
plot(;
    title = LaTeXString("Interpolação polinomial")
)

```

(edit: Oh, I’m sorry, this just came up in my list, I didn’t realize how old it is. Hope you haven’t been waiting for this since January)
