8000 Tiny fixes to mathtext/usetex tutorials. by anntzer · Pull Request #20276 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

Tiny fixes to mathtext/usetex tutorials. #20276

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions tutorials/text/mathtext.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
r"""
Writing mathematical expressions
================================
An introduction to writing mathematical expressions in Matplotlib.

You can use a subset TeX markup in any matplotlib text string by placing it
You can use a subset of TeX markup in any Matplotlib text string by placing it
inside a pair of dollar signs ($).

Note that you do not need to have TeX installed, since Matplotlib ships
its own TeX expression parser, layout engine, and fonts. The layout engine
is a fairly direct adaptation of the layout algorithms in Donald Knuth's
TeX, so the quality is quite good (matplotlib also provides a ``usetex``
TeX, so the quality is quite good (Matplotlib also provides a ``usetex``
option for those who do want to call out to TeX to generate their text (see
:doc:`/tutorials/text/usetex`).

Expand Down Expand Up @@ -357,6 +356,4 @@
:target: ../../gallery/pyplots/pyplot_mathtext.html
:align: center
:scale: 50

Pyplot Mathtext
"""
2 changes: 1 addition & 1 deletion tutorials/text/pgf.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
r"""
*********************************
Typesetting With XeLaTeX/LuaLaTeX
Typesetting with XeLaTeX/LuaLaTeX
*********************************

How to typeset text with the ``pgf`` backend in Matplotlib.
Expand Down
6 changes: 3 additions & 3 deletions tutorials/text/usetex.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
r"""
*************************
Text rendering With LaTeX
Text rendering with LaTeX
*************************

Matplotlib can use LaTeX to render text. This is activated by setting
Expand Down Expand Up @@ -50,7 +50,7 @@
})

Here is the standard example,
:file:`/gallery/text_labels_and_annotations/tex_demo`:
:doc:`/gallery/text_labels_and_annotations/tex_demo`:

.. figure:: ../../gallery/text_labels_and_annotations/images/sphx_glr_tex_demo_001.png
:target: ../../gallery/text_labels_and_annotations/tex_demo.html
Expand Down Expand Up @@ -131,7 +131,7 @@
problems. Please disable this option before reporting problems to
the mailing list.

* If you still need help, please see :ref:`reporting-problems`
* If you still need help, please see :ref:`reporting-problems`.

.. _dvipng: http://www.nongnu.org/dvipng/
.. _dvips: https://tug.org/texinfohtml/dvips.html
Expand Down
0