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 bb7e441

Browse filesBrowse files
javad94ImportanceOfBeingErnest
authored andcommitted
added multi-letter example to mathtext tutorial (#15267)
added multi-letter example to mathtext tutorial
1 parent 9cea8ea commit bb7e441
Copy full SHA for bb7e441

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.