10000 Merge pull request #20276 from anntzer/tmt · matplotlib/matplotlib@0ca9d9d · GitHub
[go: up one dir, main page]

Skip to content

Commit 0ca9d9d

Browse files
authored
Merge pull request #20276 from anntzer/tmt
Tiny fixes to mathtext/usetex tutorials.
2 parents 9b9c42d + 2f57301 commit 0ca9d9d

File tree

3 files changed

+6
-9
lines changed

3 files changed

+6
-9
lines changed

tutorials/text/mathtext.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
11
r"""
22
Writing mathematical expressions
33
================================
4-
An introduction to writing mathematical expressions in Matplotlib.
54
6-
You can use a subset TeX markup in any matplotlib text string by placing it
5+
You can use a subset of TeX markup in any Matplotlib text string by placing it
76
inside a pair of dollar signs ($).
87
98
Note that you do not need to have TeX installed, since Matplotlib ships
109
its own TeX expression parser, layout engine, and fonts. The layout engine
1110
is a fairly direct adaptation of the layout algorithms in Donald Knuth's
12-
TeX, so the quality is quite good (matplotlib also provides a ``usetex``
11+
TeX, so the quality is quite good (Matplotlib also provides a ``usetex``
1312
option for those who do want to call out to TeX to generate their text (see
1413
:doc:`/tutorials/text/usetex`).
1514
@@ -357,6 +356,4 @@
357356
:target: ../../gallery/pyplots/pyplot_mathtext.html
358357
:align: center
359358
:scale: 50
360-
361-
Pyplot Mathtext
362359
"""

tutorials/text/pgf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
r"""
22
*********************************
3-
Typesetting With XeLaTeX/LuaLaTeX
3+
Typesetting with XeLaTeX/LuaLaTeX
44
*********************************
55
66
How to typeset text with the ``pgf`` backend in Matplotlib.

tutorials/text/usetex.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
r"""
22
*************************
3-
Text rendering With LaTeX
3+
Text rendering with LaTeX
44
*************************
55
66
Matplotlib can use LaTeX to render text. This is activated by setting
@@ -50,7 +50,7 @@
5050
})
5151
5252
Here is the standard example,
53-
:file:`/gallery/text_labels_and_annotations/tex_demo`:
53+
:doc:`/gallery/text_labels_and_annotations/tex_demo`:
5454
5555
.. figure:: ../../gallery/text_labels_and_annotations/images/sphx_glr_tex_demo_001.png
5656
:target: ../../gallery/text_labels_and_annotations/tex_demo.html
@@ -131,7 +131,7 @@
131131
problems. Please disable this option before reporting problems to
132132
the mailing list.
133133
134-
* If you still need help, please see :ref:`reporting-problems`
134+
* If you still need help, please see :ref:`reporting-problems`.
135135
136136
.. _dvipng: http://www.nongnu.org/dvipng/
137137
.. _dvips: https://tug.org/texinfohtml/dvips.html

0 commit comments

Comments
 (0)
0