Skip to content
Snippets Groups Projects
Commit a21811ee authored by Marc Arene's avatar Marc Arene
Browse files

use \providecommand instead of \newcommand to avoid latex bug

parent f646b508
Branches gwhmc200402
No related tags found
No related merge requests found
Pipeline #210094 failed
......@@ -1190,7 +1190,7 @@ def latex_plot_format(func):
_old_family = rcParams["font.family"]
if find_executable("latex"):
rcParams["text.usetex"] = True
rcParams['text.latex.preamble'] = r'\newcommand{\mathdefault}[1][]{}'
rcParams['text.latex.preamble'] = r'\providecommand{\mathdefault}[1][]{}'
else:
rcParams["text.usetex"] = False
rcParams["font.serif"] = "Computer Modern Roman"
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment