Skip to content

Commit

Permalink
Change font styles to work well without LaTeX (#94)
Browse files Browse the repository at this point in the history
* Change IEEE to use Times-style fonts

* Updated to use computer modern (same as LaTeX) by default

* Changed IEEE to use Times fonts.
  • Loading branch information
JBorrow authored May 30, 2023
1 parent 390cfa2 commit 337e87a
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
5 changes: 4 additions & 1 deletion scienceplots/styles/journals/ieee.mplstyle
Original file line number Diff line number Diff line change
Expand Up @@ -11,5 +11,8 @@ figure.dpi : 600

# Font sizes
font.size : 8

# Stix is designed to look similar to Times.
font.family : serif
font.serif : Times
font.serif : STIXGeneral
mathtext.fontset : stix
5 changes: 3 additions & 2 deletions scienceplots/styles/science.mplstyle
Original file line number Diff line number Diff line change
Expand Up @@ -39,9 +39,10 @@ savefig.bbox : tight
savefig.pad_inches : 0.05

# Use serif fonts
# font.serif : Times
font.serif : cmr10, Computer Modern Serif, DejaVu Serif
font.family : serif
mathtext.fontset : dejavuserif
axes.formatter.use_mathtext : True
mathtext.fontset : cm

# Use LaTeX for math formatting
text.usetex : True
Expand Down

0 comments on commit 337e87a

Please sign in to comment.