Skip to content

Commit b94addd

Browse files
committed
Make dotplus, dotminus binary operators.
1 parent 3efad3b commit b94addd

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
``$\doteq \doteqdot \dotminus \dotplus \dots$`` are now surrounded by extra space
2+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
3+
... because they are correctly treated as relational or binary operators.

lib/matplotlib/_mathtext.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1649,7 +1649,8 @@ class _MathStyle(enum.Enum):
16491649
\cdot \bigtriangledown \bigcirc
16501650
\cap \triangleleft \dagger
16511651
\cup \triangleright \ddagger
1652-
\uplus \lhd \amalg'''.split())
1652+
\uplus \lhd \amalg
1653+
\dotplus \dotminus'''.split())
16531654

16541655
_relation_symbols = set(r'''
16551656
= < > :
@@ -1662,7 +1663,7 @@ class _MathStyle(enum.Enum):
16621663
\sqsubset \sqsupset \neq \smile
16631664
\sqsubseteq \sqsupseteq \doteq \frown
16641665
\in \ni \propto \vdash
1665-
\dashv \dots \dotplus \doteqdot'''.split())
1666+
\dashv \dots \doteqdot'''.split())
16661667

16671668
_arrow_symbols = set(r'''
16681669
\leftarrow \longleftarrow \uparrow

0 commit comments

Comments
 (0)