14

I have an array which has a few columns, and each of the columns contains again an array. The problem is that the three arrays are vertically aligned with respect to the center. How to align them on the top?

Here is a simple example

\documentclass[12pt]{amsart}
\begin{document}
\[\begin{array}{llll}
\begin{array}{|l|l|l|}
\hline
a& b& c\\
\hline
1&1&0\\1&2&3\\ 4 & 5& 6\\ \hline\end{array}&
\begin{array}{|l|l|l|}
\hline
a& b& c\\
\hline
1&3&4\\1&2&3\\  4&5&6\\ 7&9&8\\ \hline\end{array}&
\begin{array}{|l|l|l|}
\hline
a& b& c\\
\hline
1&2&5\\1&2&3\\ \hline\end{array}\end{array}\]
\end{document}

which gives

Actual output

but I would like to have something like this:

Desired output

Thanks for your help.

1
13

For each of the three inner array environments, you need to change

\begin{array}{|l|l|l|}

to

\begin{array}[t]{|l|l|l|}

Adding the [t] positioning specifier to the outer array doesn't hurt, but it doesn't do anything in particular either.

2
  • 2
    What if I want to have a right curly brace after one of the arrays? when I try that after adding "[t]", the brace becomes too tall, extending above the array. – StrawberryFieldsForever Jan 27 at 23:38
  • @StrawberryFieldsForever - Not sure I understand your comment. Please post a new question, in which you lay out in more detail what you're trying to achieve. – Mico Jan 27 at 23:42

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.