Skip to content

Commit 7cc579a

Browse files
committed
docs: add API change notes
1 parent 0564459 commit 7cc579a

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Improve underscore support in LaTeX
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
The `underscore <https://ctan.org/pkg/underscore>`_ package is now a requirement to improve support for underscores in LaTeX.

lib/matplotlib/texmanager.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,7 @@ def _get_preamble(self):
175175
r"\usepackage[papersize=72in, margin=1in]{geometry}",
176176
self.get_custom_preamble(),
177177
# Use `underscore` package to take care of underscores in text
178+
# The [strings] option allows to use underscores in file names
178179
r"\makeatletter"
179180
r"\@ifpackageloaded{underscore}{}"
180181
r"{\usepackage[strings]{underscore}}"

0 commit comments

Comments
 (0)