Skip to content

[Bug]: \geqslant, \leqslant and \eqslantgtr are not spaced like their non-slanted versions #25042

Closed

Description

@tfpf

Bug summary

There should be a space on both sides of these operators.

Code for reproduction

import matplotlib.pyplot as plt
plt.text(.3, .2, r'$a\leq2$', size=40)
plt.text(.3, .4, r'$a\leqslant2$', size=40)
plt.text(.3, .6, r'$a\geqslant2$', size=40)
plt.text(.3, .8, r'$a\eqslantgtr2$', size=40)
plt.show()

Actual outcome

nospace

Expected outcome

Spacing should be the same for all of these symbols.

Additional information

No response

Operating system

Debian GNU/Linux 11 (bullseye)

Matplotlib Version

3.5.0.dev7385+ge6bf91dcfd

Matplotlib Backend

TkAgg

Python version

Python 3.9.2

Jupyter version

No response

Installation

git checkout

Activity

  1. anntzer commented on Jan 20, 2023

    @anntzer
    Contributor

    Seems easy enough to add them to Parser._relation_symbols, but the bigger question is whether there is a more automated way to get the list of symbols that need spacing around them instead of listing them by hand.

  2. oscargus commented on Jan 20, 2023

    @oscargus
    Member

    There is a list in doc/sphinxext/math_symbol_table.py although that includes both binary operation and relation symbols.

    Also, I guess that it is good if the added symbols exists in _mathtext_data.py (which these does).

  3. added this to the v3.8.0 milestone on Jun 23, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions