diff --git a/bilby/core/utils.py b/bilby/core/utils.py
index 5a8d17844a0ad2f8eefd3c50cf2ee6b442682247..c41693e51fba2457eb3a463ad4867f43693c7faa 100644
--- a/bilby/core/utils.py
+++ b/bilby/core/utils.py
@@ -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":