## LaTeX forum ⇒ Graphics, Figures & Tables ⇒ Non-centered cells in table

Information and discussion about graphics, figures & tables in LaTeX documents.
Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm

### Non-centered cells in table

Hello everyone,

I'm trying to no avail to create a table every cell in the row starts at the same height. Right now, every two cells in a row are centralized with respect to each other. So instead of:

1. Col1|Col2
2. Row1| |bla
3. |bla |bla
4. | |bla

I want:

1. Col1|Col2
2. Row1|bla |bla
3. | |bla
4. | |bla

That is, the first line in every cell in the row starts at the same level.
Suggestions anyone?
Thanks!

Tags:

Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm
What you want is the LaTeX standard for p-columns. Are you using m-clumns by any chance? Don't.

To really help you, we need to see a minimal working example.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm
Okay I tried p-columns and it solved my original problem but now it turns out I have a new problem: the table itself is centered with respect to the
1. \item
in a list. I provide a MWE which demonstrates this. This MWE produces a list with a table such that the table is centered with respect to the item label. However I want all of them to appear in the same line.

1. \documentclass{article}
2.
3. \begin{document}
4.
5. \begin{enumerate}
6. \item \begin{tabular}{p{2pt}p{5cm}}
7. * & This curriculum vitae template has been designed for an academic CV. The current structure provides a summary of academic history without going in-depth on any one constituent part but the \\
8.
9. \end{tabular}
10. \end{enumerate}
11.
12. \end{document}

Johannes_B
Site Moderator
Posts: 4044
Joined: Thu Nov 01, 2012 4:08 pm
Very good example, the tabular is a box and gets typeset with its vertical center aligned with the baseline of the surrounding text. Use the optional argument to get the top of the box aligned.

1. \documentclass{article}
2.
3. \begin{document}
4.
5. \begin{enumerate}
6. \item \begin{tabular}[t]{p{2pt}p{5cm}}
7. * & This curriculum vitae template has been designed for
8. an academic CV. The current structure provides a summary
9. of academic history without going in-depth on any one
10. constituent part but the
11. \end{tabular}
12. \end{enumerate}
13.
14. \end{document}

I hope you are not designing a template. By the way, what is your definition of a template? Personally, i am very confused.
The smart way: Calm down and take a deep breath, read posts and provided links attentively, try to understand and ask if necessary.

Kotoschow
Posts: 28
Joined: Mon Apr 09, 2012 3:13 pm
Sorry sorry sorry this text is just a filler! it has no meaning.

Anyway it worked, thanks a lot.