FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[Doc]: How to show an ASCII hyphen in math text without using TeX? · Issue #25053 · matplotlib/matplotlib · GitHub

Repository navigation

[Doc]: How to show an ASCII hyphen in math text without using TeX? #25053

Closed

Description

Documentation Link

No response

Problem

There is no explanation how to show an ASCII hyphen in math text without using TeX. It is unclear how to avoid the conversion of '-' into a minus sign.

Suggested improvement

The documentation should explain how to show an ASCII hyphen in math text, or warn that this requires using TeX.

Activity

  1. raymondlanger commented on Jan 21, 2023

    Author

    Inserting the Unicode character u"\u2010" worked for me. I've answered my question on stackoverflow, but I don't know whether there is a better solution.

  2. anntzer commented on Jan 21, 2023

    Contributor

    I think this would basically be fixed by #22173 which would let you write \text{-}, which is also one of the approaches suggested for TeX at https://tex.stackexchange.com/questions/123211/a-short-hyphen-in-a-math-formula.

  3. linked a pull request that will close this issueSupport `\text` in `mathtext` #22173on Jan 21, 2023
  4. added this to the v3.8.0 milestone on Mar 31, 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


      Back | FazBrowse Home | New Git URL