Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit bb7e441

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

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

tutorials/text/mathtext.py

Lines 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)