# How to use a Latex package in Plots with GR backend?

**URL:** <https://discourse.julialang.org/t/how-to-use-a-latex-package-in-plots-with-gr-backend/53099>\
**Category:** General Usage\
**Tags:** pyplot, plots, gr\
**Created:** [January 9, 2021, 11:25pm UTC](https://discourse.julialang.org/t/how-to-use-a-latex-package-in-plots-with-gr-backend/53099 "2021-01-09T23:25:22Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![brianyjtai1994](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/brianyjtai1994/32/20887_2.png) [@brianyjtai1994](https://discourse.julialang.org/u/brianyjtai1994)\
**Post date:** [January 9, 2021, 11:25pm UTC](https://discourse.julialang.org/t/how-to-use-a-latex-package-in-plots-with-gr-backend/53099/1 "2021-01-09T23:25:22Z")

</div>

In `PyPlot.jl`, for example

```julia
using PyPlot, LaTeXStrings

rcParams = PyPlot.PyDict(PyPlot.matplotlib."rcParams")
rcParams["text.latex.preamble"] = "\\usepackage{siunitx}"

```

help me to directly use a Latex command from `siunitx` package like `L"\si{\nm}"`.

Is there any possible way to do the same thing in `Plots.jl` with a `gr()` backend?
