# Issue with Plots & LaTeX

**URL:** <https://discourse.julialang.org/t/issue-with-plots-latex/71045>\
**Category:** General Usage\
**Tags:** plotting, latex\
**Created:** [November 6, 2021, 10:32am UTC](https://discourse.julialang.org/t/issue-with-plots-latex/71045 "2021-11-06T10:32:24Z")\
**Posts on this page:** 1\
**Showing post:** 11

<div class="post-metadata">

**Author:** ![tomas-budi](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/tomas-budi/32/30621_2.png) [@tomas-budi](https://discourse.julialang.org/u/tomas-budi)\
**Post date:** [November 9, 2021, 3:14pm UTC](https://discourse.julialang.org/t/issue-with-plots-latex/71045/11 "2021-11-09T15:14:38Z")

</div>

Hi, I have been using the tips given [here](https://discourse.julialang.org/t/tips-to-create-beautiful-publication-quality-plots/32384) for my Plots for quite a long time, so first let me thank @lmiq. Recently, though, I have been facing problems with LaTeX strings in my labels. In particular, it seems that LaTeX strings do not understand spaces between each word. MWE:

> using Plots, LaTeXStrings  
> default(fontfamily=“Computer Modern”, linewidth=2, framestyle=:box, label=nothing, grid=false)  
> x = rand(10)  
> y = rand(10)  
> plot(x[1:10], y)  
> xlabel!(L"\textrm{This is } \alpha")

produces the following  
 ![mwe](https://global.discourse-cdn.com/julialang/original/3X/e/4/e41ee0ff188a370683945103a2aac5e0596cc355.png)

The problem is not coming from `\textrm{}` as I also face it when I remove it.  
The Plot backend is gr() and package versions are Plots v1.23.5, GR v0.62.1 and LaTeXStrings v1.3.0

---

_[View the full topic](https://discourse.julialang.org/t/issue-with-plots-latex/71045)._
