Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d270810

Browse filesBrowse files
authored
Merge pull request #18725 from QuLogic/auto-backport-of-pr-18533-on-v3.3.x
Backport PR #18533 on branch v3.3.x
2 parents de22a51 + 6818007 commit d270810
Copy full SHA for d270810

File tree

Expand file treeCollapse file tree

4 files changed

+2
-14
lines changed
Filter options
Expand file treeCollapse file tree

4 files changed

+2
-14
lines changed

‎doc/api/prev_api_changes/api_changes_3.1.0.rst

Copy file name to clipboardExpand all lines: doc/api/prev_api_changes/api_changes_3.1.0.rst
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ Mathtext changes
727727

728728
Deprecations
729729
~~~~~~~~~~~~
730-
- The ``\stackrel`` mathtext command hsa been deprecated (it behaved differently
730+
- The ``\stackrel`` mathtext command has been deprecated (it behaved differently
731731
from LaTeX's ``\stackrel``. To stack two mathtext expressions, use
732732
``\genfrac{left-delim}{right-delim}{fraction-bar-thickness}{}{top}{bottom}``.
733733
- The ``\mathcircled`` mathtext command (which is not a real TeX command)

‎lib/matplotlib/mathtext.py

Copy file name to clipboardExpand all lines: lib/matplotlib/mathtext.py
-8Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2396,7 +2396,6 @@ def __init__(self):
23962396
p.accentprefixed = Forward()
23972397
p.space = Forward()
23982398
p.sqrt = Forward()
2399-
p.stackrel = Forward()
24002399
p.start_group = Forward()
24012400
p.subsuper = Forward()
24022401
p.subsuperop = Forward()
@@ -2481,12 +2480,6 @@ def __init__(self):
24812480
| Error(r"Expected \dfrac{num}{den}"))
24822481
)
24832482

2484-
p.stackrel <<= Group(
2485-
Suppress(Literal(r"\stackrel"))
2486-
- ((p.required_group + p.required_group)
2487-
| Error(r"Expected \stackrel{num}{den}"))
2488-
)
2489-
24902483
p.binom <<= Group(
24912484
Suppress(Literal(r"\binom"))
24922485
- ((p.required_group + p.required_group)
@@ -2543,7 +2536,6 @@ def __init__(self):
25432536
| p.group
25442537
| p.frac
25452538
| p.dfrac
2546-
| p.stackrel
25472539
| p.binom
25482540
| p.genfrac
25492541
| p.sqrt

‎lib/matplotlib/tests/test_mathtext.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_mathtext.py
-4Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -214,8 +214,6 @@ def test_fontinfo():
214214
(r'$\hspace{foo}$', r'Expected \hspace{n}'),
215215
(r'$\frac$', r'Expected \frac{num}{den}'),
216216
(r'$\frac{}{}$', r'Expected \frac{num}{den}'),
217-
(r'$\stackrel$', r'Expected \stackrel{num}{den}'),
218-
(r'$\stackrel{}{}$', r'Expected \stackrel{num}{den}'),
219217
(r'$\binom$', r'Expected \binom{num}{den}'),
220218
(r'$\binom{}{}$', r'Expected \binom{num}{den}'),
221219
(r'$\genfrac$',
@@ -238,8 +236,6 @@ def test_fontinfo():
238236
'hspace with invalid value',
239237
'frac without parameters',
240238
'frac with empty parameters',
241-
'stackrel without parameters',
242-
'stackrel with empty parameters',
243239
'binom without parameters',
244240
'binom with empty parameters',
245241
'genfrac without parameters',

‎tutorials/text/mathtext.py

Copy file name to clipboardExpand all lines: tutorials/text/mathtext.py
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@
9797
9898
.. math::
9999
100-
\frac{3}{4} \binom{3}{4} \stackrel{}{}{0}{}{3}{4}
100+
\frac{3}{4} \binom{3}{4} \genfrac{}{}{0}{}{3}{4}
101101
102102
Fractions can be arbitrarily nested::
103103

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.