From 485c0b759b1b0338c06fc1f01d1f01e8139b89f4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Beno=C3=AEt=20Richard?= Date: Sun, 13 Aug 2023 13:10:01 +0200 Subject: [PATCH] Rename to theme_latexfonts --- docs/documentation/latex.md | 2 +- src/Makie.jl | 3 ++- src/themes/{theme_latex.jl => theme_latexfonts.jl} | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) rename src/themes/{theme_latex.jl => theme_latexfonts.jl} (89%) diff --git a/docs/documentation/latex.md b/docs/documentation/latex.md index 08af1a03aed..9bf698ad1ad 100644 --- a/docs/documentation/latex.md +++ b/docs/documentation/latex.md @@ -57,7 +57,7 @@ We provide a LaTeX theme to easily switch to the LaTeX default fonts for all the using CairoMakie CairoMakie.activate!() # hide -set_theme!(theme_latex()) +set_theme!(theme_latexfonts()) fig = Figure() Label(fig[1, 1], "A standard Label", tellwidth = false) diff --git a/src/Makie.jl b/src/Makie.jl index 4b24974683e..0620daf9900 100644 --- a/src/Makie.jl +++ b/src/Makie.jl @@ -118,6 +118,7 @@ include("themes/theme_black.jl") include("themes/theme_minimal.jl") include("themes/theme_light.jl") include("themes/theme_dark.jl") +include("themes/theme_latexfonts.jl") # camera types + functions include("camera/projection_math.jl") @@ -207,7 +208,7 @@ export theme_black export theme_minimal export theme_light export theme_dark -export theme_latex +export theme_latexfonts export xticklabels, yticklabels, zticklabels export xtickrange, ytickrange, ztickrange diff --git a/src/themes/theme_latex.jl b/src/themes/theme_latexfonts.jl similarity index 89% rename from src/themes/theme_latex.jl rename to src/themes/theme_latexfonts.jl index c4e89b9f716..e019547959e 100644 --- a/src/themes/theme_latex.jl +++ b/src/themes/theme_latexfonts.jl @@ -1,4 +1,4 @@ -function theme_latex() +function theme_latexfonts() Theme( fonts = Attributes( :bold => texfont(:bold),