Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 5057024

Browse filesBrowse files
authored
Merge pull request #15269 from meeseeksmachine/auto-backport-of-pr-15267-on-v3.2.x
Backport PR #15267 on branch v3.2.x (added multi-letter example to mathtext tutorial)
2 parents cbd0409 + 4ea18ab commit 5057024
Copy full SHA for 5057024

File tree

Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed
Filter options
Expand file treeCollapse file tree

1 file changed

+9
-0
lines changed

‎tutorials/text/mathtext.py

Copy file name to clipboardExpand all lines: tutorials/text/mathtext.py
+9Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,15 @@
6666
6767
\alpha_i > \beta_i
6868
69+
To display multi-letter subscripts or superscripts correctly,
70+
you should put them in curly braces ``{...}``::
71+
72+
r'$\alpha^{ic} > \beta_{ic}$'
73+
74+
.. math::
75+
76+
\alpha^{ic} > \beta_{ic}
77+
6978
Some symbols automatically put their sub/superscripts under and over the
7079
operator. For example, to write the sum of :mathmpl:`x_i` from :mathmpl:`0` to
7180
:mathmpl:`\infty`, you could do::

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.