TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How to justify a table column like:

\begin{table}{j j}
ab cd & ef gh\\
ij kl & mn op

where j stands for justified column, i.e. both right and left are aligned.


share|improve this question

A simple readymade solution is to use David Carlisle'’s tabulary-package. As a free bonus, you can specify the width of the tabular, and the width of the column is tailored to the width of the text.

The J-column gives you justified columns. You can also fine tune the appearance with the lengths \tymin and \tymax controlling the minimum and maximum widths of the columns, see the manual page 4.


  ab cd ... & ef gh ...\\
  ij kl ...& mn op ...\\
share|improve this answer

For this you need to specify a fixed-width column, like p{<len>}, where <len> is a known TeX length. For example,

  ab cd ... & ef gh ... \\
  ij kl ... & mn op ...

Note that I use tabular and not table. The former is the structure to create the table, while the latter is a float that allows the structure to move around in your document.

Another alternative would be to place the contents of the cells inside a "justified" box, like a \parbox. However, this also requires you to specify the width:

  \parbox{4cm}{ab cd ...} & \parbox{5cm}{ef gh ...} \\
  ij kl & mn op
share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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