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 759351e

Browse filesBrowse files
committed
Correctly remove support for \stackrel.
This was done incompletely in c4d3cd4, after which `\stackrel{x}{y}` just behaved (incorrectly) like `xy`.
1 parent 3b576e6 commit 759351e
Copy full SHA for 759351e

File tree

Expand file treeCollapse file tree

2 files changed

+0
-12
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-12
lines changed

‎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
@@ -2059,7 +2059,6 @@ def __init__(self):
20592059
p.accentprefixed = Forward()
20602060
p.space = Forward()
20612061
p.sqrt = Forward()
2062-
p.stackrel = Forward()
20632062
p.start_group = Forward()
20642063
p.subsuper = Forward()
20652064
p.subsuperop = Forward()
@@ -2144,12 +2143,6 @@ def __init__(self):
21442143
| Error(r"Expected \dfrac{num}{den}"))
21452144
)
21462145

2147-
p.stackrel <<= Group(
2148-
Suppress(Literal(r"\stackrel"))
2149-
- ((p.required_group + p.required_group)
2150-
| Error(r"Expected \stackrel{num}{den}"))
2151-
)
2152-
21532146
p.binom <<= Group(
21542147
Suppress(Literal(r"\binom"))
21552148
- ((p.required_group + p.required_group)
@@ -2206,7 +2199,6 @@ def __init__(self):
22062199
| p.group
22072200
| p.frac
22082201
| p.dfrac
2209-
| p.stackrel
22102202
| p.binom
22112203
| p.genfrac
22122204
| 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
@@ -218,8 +218,6 @@ def test_fontinfo():
218218
(r'$\hspace{foo}$', r'Expected \hspace{n}'),
219219
(r'$\frac$', r'Expected \frac{num}{den}'),
220220
(r'$\frac{}{}$', r'Expected \frac{num}{den}'),
221-
(r'$\stackrel$', r'Expected \stackrel{num}{den}'),
222-
(r'$\stackrel{}{}$', r'Expected \stackrel{num}{den}'),
223221
(r'$\binom$', r'Expected \binom{num}{den}'),
224222
(r'$\binom{}{}$', r'Expected \binom{num}{den}'),
225223
(r'$\genfrac$',
@@ -242,8 +240,6 @@ def test_fontinfo():
242240
'hspace with invalid value',
243241
'frac without parameters',
244242
'frac with empty parameters',
245-
'stackrel without parameters',
246-
'stackrel with empty parameters',
247243
'binom without parameters',
248244
'binom with empty parameters',
249245
'genfrac without parameters',

0 commit comments

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