Search code examples
latexalignmenttabular

How to adjust text in table in latex


I have table with 5 cells ,

I want to let all cells text in the same adjust my first cell text from four litters and the second cell text is word from 7 litters so the two cells are not in the same adjust

enter image description here

I attached picture to show you my problem any help please.


Solution

  • Array columns in a tabular environment must be associated with an alignment qualifier. In your example, you probably used c (center), but you should have used l to have the text in the cells left aligned or r for a right alignment.

    But this is very basic LaTeX use and you should absolutely read a tutorial on LaTeX tables.

    Note that there are many useful packages that extend the tabular functionality and allows to have centered paragraph, to control their vertical alignment, to align digital numbers and so on. Look at this thread in tex.stackexchange.com to have a good overview on existing packages for table formatting.