9

Consider this example:

\begin{enumerate}
    \item Blablabla bla bla bla.
        \begin{tabular}{l}
            Lorem ipsum dolor sit amet.\\
            Consectetur adipiscing elit.\\
            Donec eu ante non mi sagittis molestie.\\
        \end{tabular}
    \item Next question
\end{enumerate}

LaTeX will vertically center the table, which looks pretty weird. It basically looks like this:

                          Lorem ipsum dolor sit amet.
1. Blablabla bla bla bla. Consectetur adipiscing elit.
                          Donec eu ante non mi sagittis molestie.

How can I manage for the consecutive lignes to line up under the first one (with the same margin)? Something which would look like this:

1. Blablabla bla bla bla. Lorem ipsum dolor sit amet.
                          Consectetur adipiscing elit.
                          Donec eu ante non mi sagittis molestie.

Any ideas?

Thanks!

14

The tabular environment has an optional argument to specify the vertical alignment. The default is centered, the other options are t and b for top and bottom.

\begin{enumerate}
    \item Blablabla bla bla bla.
        \begin{tabular}[t]{l}
            Lorem ipsum dolor sit amet.\\
            Consectetur adipiscing elit.\\
            Donec eu ante non mi sagittis molestie.\\
        \end{tabular}
    \item Next question
\end{enumerate}
  • And how about the same but with a \hline at the top of the table? – Albert Jun 14 '16 at 8:23

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.