Skip to content
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

textPainter does not correctly center an equation which contains eqnarray #172

Open
kevcrooks opened this issue Oct 12, 2020 · 1 comment
Labels
Status/1. Ready This issue has been confirmed and is ready to be worked on. Type/Bug

Comments

@kevcrooks
Copy link

kevcrooks commented Oct 12, 2020

We have a formula containing eqnarray which should appear centered, however it's rendered too far over to the right.

In the screenshot, the first formula is an eqnarray with two lines, which are aligned on the "=" sign. The third line is a separate formula which shows how the second line would appear if it was centered.

It appears that the textPainter assumes both lines in the first formula are individually centered (instead of the second line being aligned slightly to the right with the "="):
image

The LaTex is respectively:
$$\begin{eqnarray}a+b+c+d+e+f&=&a+b+c+d+e+f\\0 &=& a+b+c+d+e+f-a-b-c-d-e-f\end{eqnarray}$$
$$0=a+b+c+d+e+f-a-b-c-d-e-f$$

@kevcrooks kevcrooks added Status/0. New This issue is new and is awaiting confirmation from the maintainers. Type/Bug labels Oct 12, 2020
@Happypig375 Happypig375 added Status/1. Ready This issue has been confirmed and is ready to be worked on. and removed Status/0. New This issue is new and is awaiting confirmation from the maintainers. labels Oct 20, 2020
@charlesroddie
Copy link
Collaborator

Similar spacing issue:

$$\begin{pmatrix} y^{2}e^{xy} & (xy + 1)e^{xy} \\ (xy + 1)e^{xy} & x^{2}e^{xy} \end{pmatrix}$$

image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Status/1. Ready This issue has been confirmed and is ready to be worked on. Type/Bug
Projects
None yet
Development

No branches or pull requests

3 participants