# How to use LaTeX Computer Modern font for all text in all plots?

**URL:** https://discourse.julialang.org/t/how-to-use-latex-computer-modern-font-for-all-text-in-all-plots/126791
**Category:** Visualization
**Tags:** question, plotting, plots, mac-m1, mac
**Created:** [March 10, 2025, 8:17pm UTC](https://discourse.julialang.org/t/how-to-use-latex-computer-modern-font-for-all-text-in-all-plots/126791 "2025-03-10T20:17:46Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![homocomputeris](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/homocomputeris/32/8933_2.png) [@homocomputeris](https://discourse.julialang.org/u/homocomputeris)
#### Post date: [March 10, 2025, 8:17pm UTC](https://discourse.julialang.org/t/how-to-use-latex-computer-modern-font-for-all-text-in-all-plots/126791/1 "2025-03-10T20:17:46Z")

</div>

How can I set up Plots.jl to use Computer modern for all labels in all plots (on macos)?

With the config

```julia
using LaTeXStrings
using Plots
gr()
DPI = 150
default(
    size=(70 * sqrt(2) * DPI / 25.4, 70 * DPI / 25.4),
    fontfamily="Computer Modern",
    titlefont=font(12),
    legend=:topright,
    legendfont=font(10),
    tickfont=font(10),
    linewidth=2, markersize=4,
    xlabelfont=font(10),
    ylabelfont=font(10),
)
display(plot(title="test"))

```

the title and the ticks are in sans-serif instead of serif CM.
