|
44 | 44 | # # math text
|
45 | 45 | # plt.title(r'$\alpha > \beta$')
|
46 | 46 | #
|
47 |
| -# produces ":math:`\alpha > \beta`". |
| 47 | +# produces ":mathmpl:`\alpha > \beta`". |
48 | 48 | #
|
49 | 49 | # .. note::
|
50 | 50 | # Mathtext should be placed between a pair of dollar signs ($). To
|
|
77 | 77 | #
|
78 | 78 | # \alpha_i > \beta_i
|
79 | 79 | #
|
80 |
| -# Some symbols automatically put their sub/superscripts under and over |
81 |
| -# the operator. For example, to write the sum of :math:`x_i` from :math:`0` to |
82 |
| -# :math:`\infty`, you could do:: |
| 80 | +# Some symbols automatically put their sub/superscripts under and over the |
| 81 | +# operator. For example, to write the sum of :mathmpl:`x_i` from :mathmpl:`0` |
| 82 | +# to :mathmpl:`\infty`, you could do:: |
83 | 83 | #
|
84 | 84 | # r'$\sum_{i=0}^\infty x_i$'
|
85 | 85 | #
|
|
200 | 200 | # ============================ ==================================
|
201 | 201 | # Command Result
|
202 | 202 | # ============================ ==================================
|
203 |
| -# ``\mathrm{Roman}`` :math:`\mathrm{Roman}` |
204 |
| -# ``\mathit{Italic}`` :math:`\mathit{Italic}` |
205 |
| -# ``\mathtt{Typewriter}`` :math:`\mathtt{Typewriter}` |
206 |
| -# ``\mathcal{CALLIGRAPHY}`` :math:`\mathcal{CALLIGRAPHY}` |
| 203 | +# ``\mathrm{Roman}`` :mathmpl:`\mathrm{Roman}` |
| 204 | +# ``\mathit{Italic}`` :mathmpl:`\mathit{Italic}` |
| 205 | +# ``\mathtt{Typewriter}`` :mathmpl:`\mathtt{Typewriter}` |
| 206 | +# ``\mathcal{CALLIGRAPHY}`` :mathmpl:`\mathcal{CALLIGRAPHY}` |
207 | 207 | # ============================ ==================================
|
208 | 208 | #
|
209 |
| -# .. role:: math-stix(math) |
| 209 | +# .. role:: math-stix(mathmpl) |
210 | 210 | # :fontset: stix
|
211 | 211 | #
|
212 | 212 | # When using the `STIX <http://www.stixfonts.org/>`_ fonts, you also have the choice of:
|
|
294 | 294 | # ============================== =================================
|
295 | 295 | # Command Result
|
296 | 296 | # ============================== =================================
|
297 |
| -# ``\acute a`` or ``\'a`` :math:`\acute a` |
298 |
| -# ``\bar a`` :math:`\bar a` |
299 |
| -# ``\breve a`` :math:`\breve a` |
300 |
| -# ``\ddot a`` or ``\''a`` :math:`\ddot a` |
301 |
| -# ``\dot a`` or ``\.a`` :math:`\dot a` |
302 |
| -# ``\grave a`` or ``\`a`` :math:`\grave a` |
303 |
| -# ``\hat a`` or ``\^a`` :math:`\hat a` |
304 |
| -# ``\tilde a`` or ``\~a`` :math:`\tilde a` |
305 |
| -# ``\vec a`` :math:`\vec a` |
306 |
| -# ``\overline{abc}`` :math:`\overline{abc}` |
| 297 | +# ``\acute a`` or ``\'a`` :mathmpl:`\acute a` |
| 298 | +# ``\bar a`` :mathmpl:`\bar a` |
| 299 | +# ``\breve a`` :mathmpl:`\breve a` |
| 300 | +# ``\ddot a`` or ``\''a`` :mathmpl:`\ddot a` |
| 301 | +# ``\dot a`` or ``\.a`` :mathmpl:`\dot a` |
| 302 | +# ``\grave a`` or ``\`a`` :mathmpl:`\grave a` |
| 303 | +# ``\hat a`` or ``\^a`` :mathmpl:`\hat a` |
| 304 | +# ``\tilde a`` or ``\~a`` :mathmpl:`\tilde a` |
| 305 | +# ``\vec a`` :mathmpl:`\vec a` |
| 306 | +# ``\overline{abc}`` :mathmpl:`\overline{abc}` |
307 | 307 | # ============================== =================================
|
308 | 308 | #
|
309 | 309 | # In addition, there are two special accents that automatically adjust
|
|
312 | 312 | # ============================== =================================
|
313 | 313 | # Command Result
|
314 | 314 | # ============================== =================================
|
315 |
| -# ``\widehat{xyz}`` :math:`\widehat{xyz}` |
316 |
| -# ``\widetilde{xyz}`` :math:`\widetilde{xyz}` |
| 315 | +# ``\widehat{xyz}`` :mathmpl:`\widehat{xyz}` |
| 316 | +# ``\widetilde{xyz}`` :mathmpl:`\widetilde{xyz}` |
317 | 317 | # ============================== =================================
|
318 | 318 | #
|
319 | 319 | # Care should be taken when putting accents on lower-case i's and j's.
|
|
0 commit comments