If I have defined tabular alignment with the p{} option,


Is there a way to specify that I want it \flushleft without wrapping the contents of each cell in a \parbox or minipage environment? It might be trouble in the example above, but I have dozens of cells, so is not a very feasible solution (unless I program something with Emacs Lisp).


Load the array package and write


It's necessary to use the \arraybackslash in the last column, otherwise \\ would not end the table row. You can use \newline to end lines in the last column cells (and the regular \\ in the other column cells).

By the way, a tabular specification like yours will give an overfull box, as you are not keeping into account the intercolumn spaces. If you want that the table extends all the way of the line width, say


after loading the calc package. Or, without it


The two @{} avoid the insertion of the intercolumn space before and after the tabular.

  • I like to define something like \def\myraggedright{\rightskip0mm plus10mm\relax} and use that instead of \raggedright in the column definition. This way you have the text flushed left without the large space between words, but with hyphenation, so that the output looks much less ragged than with \raggedright. – Elmar Zander Jan 10 '12 at 13:44
  • 2
    @ElmarZander You can also use the ragged2e package and its \RaggedRight command that does something similar to yours. – egreg Jan 10 '12 at 14:01

You could use a feature of the array package to insert a \raggedright command for flush left text, use >{command} before the column definition to insert one or several command(s):

    \blindtext & \blindtext

You mentioned \flushleft - you could use it but it can insert undesired vertical space, such as


If you need it often, consider defining a new column type using array features, as I did here:


Some people define further useful types, such as


etc. So your tabular definition becomes simpler:


In narrow columns, it may be good to allow hyphenation. This can be done using ragged2e. microtype could improve even more. So I would use:

    \blindtext & \blindtext \\

With ragged2e commands \arraybackslash is not needed. As the first word in a box would not be hyphenated, I additionally inserted zero horizontal space.

  • \arraybackslash is necessary only in the last column. – egreg Oct 13 '11 at 23:30
  • 1
    Still works with it though... and I like the convenience of having a new column type! – hatmatrix Oct 15 '11 at 11:36

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.