Skip to content
Snippets Groups Projects
Commit 8bc78e9c authored by Gregory Ashton's avatar Gregory Ashton
Browse files

Merge branch 'latex_plot_format-error-with-mathdefault' into 'master'

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

Closes #482

See merge request !781
parents 7ef0ac7d 1a6ea870
No related branches found
No related tags found
1 merge request!781Defining \mathdefault command in latex preamble to avoid potential bug.
Pipeline #125105 passed
......@@ -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