10000 Add next_whats_new entries for mathtext features (#26418) · matplotlib/matplotlib@a92b784 · GitHub
[go: up one dir, main page]

Skip to content

Commit a92b784

Browse files
devRDQuLogic
andauthored
Add next_whats_new entries for mathtext features (#26418)
* Add next_whats_new entries for mathtext features * Update doc/users/next_whats_new/mathtext_features.rst Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com> * Update doc/users/next_whats_new/mathtext_features.rst Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com> --------- Co-authored-by: Elliott Sales de Andrade <quantum.analyst@gmail.com>
1 parent 5bdac1d commit a92b784

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed
Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
``mathtext`` now supports ``\substack``
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
4+
``\substack`` can be used to create multi-line subscripts or superscripts within an equation.
5+
6+
To use it to enclose the math in a substack command as shown:
7+
8+
.. code-block::
9+
10+
r'$\sum_{\substack{1\leq i\leq 3\\ 1\leq j\leq 5}}$'
11+
12+
.. mathmpl::
13+
14+
\sum_{\substack{1\leq i\leq 3\\ 1\leq j\leq 5}}
15+
16+
17+
``mathtext`` now supports ``\middle`` delimiter
18+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
19+
20+
The ``\middle`` delimiter has been added, and can now be used with the
21+
``\left`` and ``\right`` delimiters:
22+
23+
To use the middle command enclose it in between the ``\left`` and
24+
``\right`` delimiter command as shown:
25+
26+
.. code-block::
27+
28+
r'$\left( \frac{a}{b} \middle| q \right)$'
29+
30+
.. mathmpl::
31+
32+
\left( \frac{a}{b} \middle| q \right)

0 commit comments

Comments
 (0)
0