# Nice fonts with Plots, GR and LaTeXStrings

**URL:** <https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037>\
**Category:** Visualization\
**Tags:** latex, plots, gr\
**Created:** [April 26, 2021, 2:41pm UTC](https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037 "2021-04-26T14:41:09Z")\
**Posts on this page:** 1\
**Showing post:** 19

<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:** [February 7, 2022, 11:34am UTC](https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037/19 "2022-02-07T11:34:23Z")

</div>

This will be difficult to do. Depending on your backend, `Plots` uses `Mathjax` or a homebrew version thereof to render `TeX` strings (it doesn’t actually use the fact that your string is a `LaTeXString`, but rather the fact that `LaTeXString`s include `$$` automatically, so this is a question for `Plots` rather than `LaTeXStrings`).

For the Plotly and PlotlyJS backends, you can use a user-defined config file:  
[https://docs.juliaplots.org/latest/backends/#MathJax](https://docs.juliaplots.org/latest/backends/#MathJax)

which I guess could be used for this. but I don’t know MathJax, I saw someone say that the available fonts are limited anyway.

If this was an issue for me I would probably use the `PGFPlots` backend, so you’re actually leaving the rendering to `LaTeX` itself. If the compilation times get too large, you can add a recipe to your makefile to compile those image files to pdf before including them in the document.

---

_[View the full topic](https://discourse.julialang.org/t/nice-fonts-with-plots-gr-and-latexstrings/60037)._
