Skip to content

Commit f305f5f

Browse files
committed
PGF: Expand comment on use of scrextend LaTeX package
1 parent 6d49b51 commit f305f5f

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

lib/matplotlib/backends/backend_pgf.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,9 @@ def _get_preamble():
4848
# Use displaystyle for all math.
4949
r"\everymath=\expandafter{\the\everymath\displaystyle}",
5050
# Set up font sizes to match font.size setting.
51+
# If present, use the KOMA package scrextend to adjust the standard
52+
# LaTeX font commands (\tiny, ..., \normalsize, ..., \Huge) accordingly.
53+
# Otherwise, only set \normalsize, manually.
5154
r"\IfFileExists{scrextend.sty}{",
5255
r" \usepackage[fontsize=%fpt]{scrextend}" % font_size_pt,
5356
r"}{",

0 commit comments

Comments
 (0)