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

Rendering issue with text above multi-row array/matrix #30

Open
markhats opened this issue Feb 24, 2021 · 2 comments
Open

Rendering issue with text above multi-row array/matrix #30

markhats opened this issue Feb 24, 2021 · 2 comments

Comments

@markhats
Copy link

There is a rendering issue when trying to render an array or matrix with some text above it. e.g.

\text{Title}\newline \begin{array}{rr} x & y\\1 & 2\\3 & 4\end{array}

This renders the 'Title' text over the top of the array. The more rows that are added to the array, the lower the title is displayed.

image

Thanks

@LinGrin
Copy link
Collaborator

LinGrin commented Feb 25, 2021

Hi! Thanks for bringing up this issue! It appears to be something about the way \begin{matrix} and \begin{array} interacts with the spacing of things around it that is causing this overlap. We'll be taking a look into it.

In the meanwhile here's a temporary (and very hacky) stopgap that might be useful:
\text{title}\newline \text{ }\newline \begin{array}{rr} x & y\\1 & 2\\3 & 4\end{array}

@markhats
Copy link
Author

Thanks for the info. I did notice that adding empty lines changed the positioning to be closer to what is expected. However, as more rows are added to the array, more empty lines are required to position the title at the top.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants