File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change 31
31
32
32
DOCUMENTCLASS = r"\documentclass{article}"
33
33
34
+
34
35
# Note: When formatting floating point values, it is important to use the
35
36
# %f/{:f} format rather than %s/{} to avoid triggering scientific notation,
36
37
# which is not recognized by TeX.
@@ -47,17 +48,13 @@ def _get_preamble():
47
48
# Use displaystyle for all math.
48
49
r"\everymath=\expandafter{\the\everymath\displaystyle}" ,
49
50
# Set up font sizes to match font.size setting.
50
- r"\makeatletter" ,
51
51
r"\IfFileExists{scrextend.sty}{" ,
52
- r" %s" % mpl .texmanager ._usepackage_if_not_loaded (
53
- "scrextend" , option = "fontsize=%fpt" % font_size_pt
54
- ),
52
+ r" \usepackage[fontsize=%fpt]{scrextend}" % font_size_pt ,
55
53
r"}{" ,
56
54
r" \renewcommand{\normalsize}{\fontsize{%f}{%f}\selectfont}"
57
55
% (font_size_pt , 1.2 * font_size_pt ),
58
56
r" \normalsize" ,
59
57
r"}" ,
60
- r"\makeatother" ,
61
58
# Allow pgf.preamble to override the above definitions.
62
59
mpl .rcParams ["pgf.preamble" ],
63
60
* ([
You can’t perform that action at this time.
0 commit comments