Skip to content

Commit

Permalink
fix keyword name
Browse files Browse the repository at this point in the history
  • Loading branch information
lmiq committed Dec 20, 2024
1 parent efbe2b1 commit 8087964
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/src/plotting_style.md
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ All other normal parameters of `Plots` function can be used to change the plot l
titles, legends, font sizes, etc.

!!! tip
In v1.21.2, if if setting `font_family="Serif"`, LaTeXStrings will be converted to `\mathsf`
In v1.21.2, if if setting `fontfamily="Serif"`, LaTeXStrings will be converted to `\mathsf`
to match the overall plot fonts. This behavior can be disabled with `adjust_latex_font=false`.

## Available plotting functions
Expand Down
4 changes: 2 additions & 2 deletions ext/MolSimStyle.jl
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ function _kargs(parameters = MolSimStyle_parameters; kargs)
for karg in keys(kargs)
custom_parameters[karg] = kargs[karg]
end
font_family = custom_parameters[:fontfamily]
if font_family in ("Sans Serif", "Serif", "Arial") && custom_parameters[:adjust_latex_font]
fontfamily = custom_parameters[:fontfamily]
if fontfamily in ("Sans Serif", "Serif", "Arial") && custom_parameters[:adjust_latex_font]
for key in keys(custom_parameters)
value = custom_parameters[key]
if value isa LaTeXString
Expand Down

0 comments on commit 8087964

Please sign in to comment.