Skip to content
Snippets Groups Projects
Commit 5909b2b0 authored by John Douglas Veitch's avatar John Douglas Veitch
Browse files

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

parent 81fca8e3
No related branches found
No related tags found
1 merge request!924latex plots: Change newcommand to providecommand to prevent error when it is already defined
......@@ -1211,7 +1211,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