8000 [Doc]: How to show an ASCII hyphen in math text without using TeX? · Issue #25053 · matplotlib/matplotlib · GitHub
[go: up one dir, main page]

Skip to content

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

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
raymondlanger opened this issue Jan 21, 2023 · 2 comments · Fixed by #22173
Closed

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

raymondlanger opened this issue Jan 21, 2023 · 2 comments · Fixed by #22173
Milestone

Comments

@raymondlanger
Copy link

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.

@raymondlanger
Copy link
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.

@anntzer
Copy link
Contributor
anntzer commented Jan 21, 2023

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.

@anntzer anntzer linked a pull request Jan 21, 2023 that will close this issue
4 tasks
@QuLogic QuLogic added this to the v3.8.0 milestone Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants
0