Skip to content
Snippets Groups Projects
Commit 833f1256 authored by Moritz Huebner's avatar Moritz Huebner
Browse files

Merge branch 'mathdefault' into 'master'

latex plots: Change newcommand to providecommand to prevent error when it is already defined

See merge request lscsoft/bilby!924
parents b3c80207 5909b2b0
No related branches found
No related tags found
No related merge requests found
......@@ -1222,7 +1222,7 @@ def latex_plot_format(func):
if bilby_mathdefault == 1:
logger.debug("Setting mathdefault in the rcParams")
rcParams['text.latex.preamble'] = r'\newcommand{\mathdefault}[1][]{}'
rcParams['text.latex.preamble'] = r'\providecommand{\mathdefault}[1][]{}'
logger.debug("Using BILBY_STYLE={}".format(bilby_style))
if bilby_style.lower() == "none":
......
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