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

Support array environment's vertical positioning optional argument #2172

Open
ghost opened this issue Dec 13, 2019 · 3 comments · May be fixed by #3190
Open

Support array environment's vertical positioning optional argument #2172

ghost opened this issue Dec 13, 2019 · 3 comments · May be fixed by #3190

Comments

@ghost
Copy link

ghost commented Dec 13, 2019

This is a question about the optional vertical positioning argument of an array. When I tried
\begin{array}[t]{c|}1\\ \,\end{array} \begin{array}[t]{rrrr}1& 2& -5& 2\\ & 1& 3& -2\\ \hline 1& 3& -2& 0\end{array}
I did not get an error message and it seems to work, but I did not find the [position] optional argument mentioned in the official documentation. Can I assume that it is officially supported?

@kevinbarabash
Copy link
Member

It looks like it isn't supported yet. I get the following error message when trying your example on katex.org I get the follow error:

KaTeX parse error: Unknown column alignment: [ at position 14: \begin{array}[̲t]{c|}1\\ \,\en…

Which version are you using?

@ghost
Copy link
Author

ghost commented Jan 3, 2020

I am not sure about the version (I will ask). I am entering math expressions to an online platform where they use KaTeX to display the formulas.
Here is a screenshot of the editor platform with the rendered arrays properly aligned at the top row.
TableVerticalAlignment

@pzinn
Copy link
Contributor

pzinn commented Aug 26, 2021

I'm surprised this hasn't been addressed yet. \begin{array} is a really basic command, and its optional argument (b or t for bottom or top alignment) shouldn't be hard to implement.

@edemaine edemaine changed the title Is array vertical positioning supported? Support array environment's vertical positioning optional argument Aug 26, 2021
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

Successfully merging a pull request may close this issue.

2 participants