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

defining \mathdefault command in latex preamble to avoid potential bug.

parent 7ef0ac7d
No related branches found
No related tags found
1 merge request!781Defining \mathdefault command in latex preamble to avoid potential bug.
......@@ -1181,6 +1181,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][]{}'
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