Skip to content

Add next_whats_new entries for mathtext features #26418

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Aug 1, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
32 changes: 32 additions & 0 deletions doc/users/next_whats_new/mathtext_features.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
``mathtext`` now supports ``\substack``
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

``\substack`` can be used to create multi-line subscripts or superscripts within an equation.

To use it to enclose the math in a substack command as shown:

.. code-block::

r'$\sum_{\substack{1\leq i\leq 3\\ 1\leq j\leq 5}}$'

.. mathmpl::

\sum_{\substack{1\leq i\leq 3\\ 1\leq j\leq 5}}


``mathtext`` now supports ``\middle`` delimiter
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

The ``\middle`` delimiter has been added, and can now be used with the
``\left`` and ``\right`` delimiters:

To use the middle command enclose it in between the ``\left`` and
``\right`` delimiter command as shown:

.. code-block::

r'$\left( \frac{a}{b} \middle| q \right)$'

.. mathmpl::

\left( \frac{a}{b} \middle| q \right)