From 26eb00aeea40a5ab24dee92515095edafe8f6bcf Mon Sep 17 00:00:00 2001 From: Echedey Luis <80125792+echedey-ls@users.noreply.github.com> Date: Sat, 25 Nov 2023 19:25:57 +0100 Subject: [PATCH] Re-fix #30 (#106) * Revert "Change font styles to work well without LaTeX (#94)" This reverts commit 337e87a765cc7d5f96db2a4e2ce437328f98efd4. * Re-refix #30 in accordance to #93 Still need to ensure desired behaviour. Co-Authored-By: Josh Borrow --------- Co-authored-by: Josh Borrow --- scienceplots/styles/journals/ieee.mplstyle | 5 +---- scienceplots/styles/misc/no-latex.mplstyle | 5 +++++ scienceplots/styles/science.mplstyle | 5 ++--- 3 files changed, 8 insertions(+), 7 deletions(-) diff --git a/scienceplots/styles/journals/ieee.mplstyle b/scienceplots/styles/journals/ieee.mplstyle index db929b8..d93fe31 100644 --- a/scienceplots/styles/journals/ieee.mplstyle +++ b/scienceplots/styles/journals/ieee.mplstyle @@ -11,8 +11,5 @@ figure.dpi : 600 # Font sizes font.size : 8 - -# Stix is designed to look similar to Times. font.family : serif -font.serif : STIXGeneral -mathtext.fontset : stix +font.serif : Times diff --git a/scienceplots/styles/misc/no-latex.mplstyle b/scienceplots/styles/misc/no-latex.mplstyle index 61cfe97..df7172e 100644 --- a/scienceplots/styles/misc/no-latex.mplstyle +++ b/scienceplots/styles/misc/no-latex.mplstyle @@ -1,3 +1,8 @@ # Deactivate LaTeX +# and use mathtext text.usetex : False + +# Stix is designed to look similar to Times. +font.family: STIXGeneral +mathtext.fontset: stix diff --git a/scienceplots/styles/science.mplstyle b/scienceplots/styles/science.mplstyle index af271b3..cf30423 100644 --- a/scienceplots/styles/science.mplstyle +++ b/scienceplots/styles/science.mplstyle @@ -39,10 +39,9 @@ savefig.bbox : tight savefig.pad_inches : 0.05 # Use serif fonts -font.serif : cmr10, Computer Modern Serif, DejaVu Serif +# font.serif : Times font.family : serif -axes.formatter.use_mathtext : True -mathtext.fontset : cm +mathtext.fontset : dejavuserif # Use LaTeX for math formatting text.usetex : True