Skip to content

Mathtext brackets #4183

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
wants to merge 3 commits into from
Closed

Mathtext brackets #4183

wants to merge 3 commits into from

Conversation

mdboom
Copy link
Member

@mdboom mdboom commented Mar 3, 2015

Fix for #3374.

This special cases the minus sign to be treated as if it has full x height. Also fixes a small problem with vertical alignment of text that was discovered along the way.

@tacaswell
Copy link
Member

The vertical aliment of the |-> does not look right to me in the pngs

@mdboom
Copy link
Member Author

mdboom commented Mar 3, 2015

To my eyes, the Computer Modern one looks fine. The stix is a bit low, but the minus sign is a bit low in that font anyway. It doesn't look and odd in the context of more stuff.

@WeatherGod
Copy link
Member

yeah, cm looks right to me, the other pngs don't seem right. The vertical extent of the | doesn't match the extent of the bracket, and they aren't aligned. Are they supposed to or not? In cm, the vertical bar doesn't match the vertical extent, but it seems to be better aligned.

@tacaswell tacaswell added this to the next point release milestone Mar 12, 2015
@tacaswell
Copy link
Member

I think the - should be even with the center of the > . Below is the output from

\documentclass{article}
\usepackage{amsmath}

\begin{document}
\thispagestyle{empty}
\begin{math}
  \left\langle - \right| \left | + \right\rangle
\end{math}
\end{document}

braket

I am wearing my physicist hat here complaining about this.

This PR is definitily an improvement and if the answer is 'use tex' to get the more centered version that is probably ok.

@mdboom
Copy link
Member Author

mdboom commented Mar 13, 2015

Fixing this properly has turned into a rather deep wormhole of problems... I say we just keep this open and I (or some other brave soul) can continue to hack away at it as able...

@tacaswell tacaswell modified the milestones: proposed next point release, next point release Jun 18, 2015
@tacaswell tacaswell modified the milestone: 2.1 (next point release) Aug 29, 2017
@anntzer
Copy link
Contributor

anntzer commented Feb 9, 2020

#3374 was fixed by #5871.
Vertical alignment of +/- and brakets remains less than perfect, but this PR doesn't change that situation AFAICT, so I'll close this.

@anntzer anntzer closed this Feb 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants