3

I try to have a simple tabularx-table in which the cell content is vertically aligned to the top. While this works as expected for text, two aligned-environments in adjacent cells are vertically centered for no reason I could find.

How do I get the content of the first tabularx-environment aligned to the top?

Thank you.

\documentclass[10pt,a4paper]{article}

\usepackage{lipsum}
\usepackage{amsmath}
\usepackage{tabularx}

\begin{document}

    \begin{tabularx}{\textwidth}{X l}
        \hline
        $
            \begin{aligned}
                a &= 1 \\
                b &= 2
            \end{aligned}
        $
        &
        $
            \begin{aligned}
                c =& 3
            \end{aligned}
        $\\  
        \hline          
    \end{tabularx}

    \begin{tabularx}{\textwidth}{X l}
        \hline
            \lipsum[1]
        &
            $
                \begin{aligned}
                    c =& 3
                \end{aligned}
            $\\  
        \hline          
    \end{tabularx}

\end{document}

vertical alignment in tabularx fails for "aligned" environment

1 Answer 1

3

You want

\begin{aligned}[t]

to align on the top.

1
  • Although I don't understand why the aligned-environment in the second table behaves differently.
    – Bastian
    Oct 7, 2014 at 15:45

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .