From f91cba3c314619c6d9881e169c1cba65786ecc42 Mon Sep 17 00:00:00 2001 From: Javad Date: Sun, 15 Sep 2019 05:19:23 +0430 Subject: [PATCH 1/3] added multi-letter example to mathtext tutorial --- tutorials/text/mathtext.py | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/tutorials/text/mathtext.py b/tutorials/text/mathtext.py index bb230d419246..7f5708651ddc 100644 --- a/tutorials/text/mathtext.py +++ b/tutorials/text/mathtext.py @@ -66,6 +66,14 @@ \alpha_i > \beta_i +Note that to make multi-letter subscripts or superscripts displayed correctly, you should put them in curly braces ``{...}``:: + + r'$\alpha^{ic} > \beta_{ic}$' + +.. math:: + + \alpha^{ic} > \beta_{ic} + Some symbols automatically put their sub/superscripts under and over the operator. For example, to write the sum of :mathmpl:`x_i` from :mathmpl:`0` to :mathmpl:`\infty`, you could do:: From 2d9e075f891e0009c9d423ef3ae7382f82d1ac0a Mon Sep 17 00:00:00 2001 From: Javad Date: Sun, 15 Sep 2019 06:21:51 +0430 Subject: [PATCH 2/3] fixed flake8 failed test --- tutorials/text/mathtext.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/tutorials/text/mathtext.py b/tutorials/text/mathtext.py index 7f5708651ddc..dc0265a035c6 100644 --- a/tutorials/text/mathtext.py +++ b/tutorials/text/mathtext.py @@ -66,7 +66,8 @@ \alpha_i > \beta_i -Note that to make multi-letter subscripts or superscripts displayed correctly, you should put them in curly braces ``{...}``:: +Note that to make multi-letter subscripts or superscripts displayed correctly, +you should put them in curly braces ``{...}``:: r'$\alpha^{ic} > \beta_{ic}$' From 0ffd7cd8102f6887f61c5badc6d8ba8f17a30e62 Mon Sep 17 00:00:00 2001 From: Javad Date: Sun, 15 Sep 2019 15:04:52 +0430 Subject: [PATCH 3/3] changed phrasing --- tutorials/text/mathtext.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tutorials/text/mathtext.py b/tutorials/text/mathtext.py index dc0265a035c6..fb4b2a6452d8 100644 --- a/tutorials/text/mathtext.py +++ b/tutorials/text/mathtext.py @@ -66,7 +66,7 @@ \alpha_i > \beta_i -Note that to make multi-letter subscripts or superscripts displayed correctly, +To display multi-letter subscripts or superscripts correctly, you should put them in curly braces ``{...}``:: r'$\alpha^{ic} > \beta_{ic}$'