Fonts and Text Formatting

Is it better to align left or justify?

LaTeX sets body text justified by default. Learn when left alignment with ragged-right text reads better, and how to switch in LaTeX documents.

On this page
  1. Short answer: justified is the default, so choose by document
  2. What justified text does in LaTeX
  3. When left alignment reads better
  4. Switching alignment in LaTeX
  5. Letters and business documents

Short answer: justified is the default, so choose by document

In LaTeX, body text is justified by default. For a book, a thesis, or a paper with normal line lengths, justified text is the usual choice and it looks well set. For short lines, informal documents, or readers who find even spacing hard to follow, left alignment (also called ragged right) is often the easier choice.

What justified text does in LaTeX

Justified text puts both edges of a paragraph on the margins by stretching the spaces between words. Word processors often stretch those spaces unevenly, which leaves wide gaps and “rivers” of white space running down a paragraph.

TeX handles the problem differently. It looks at a whole paragraph and chooses the line breaks that give the most even spacing across all of its lines, rather than deciding each line on its own. Hyphenation gives it more options, which is why the advice on controlling hyphenation in LaTeX matters for justified text. As a result, justified text in LaTeX tends to show fewer gaps than justified text in a typical word processor.

Lines can still look loose, especially in narrow columns or where there are long words, names, or URLs. In that case, adjust the hyphenation settings or consider a ragged edge.

When left alignment reads better

Left alignment keeps the spacing between words the same on every line, and lets the line ends vary. Many readers find that easier to follow. Accessibility guides often recommend left alignment for readers with dyslexia or visual impairments.

Consider a ragged right edge when:

  • Lines are short, as in a narrow column, a Beamer slide, or a poster.
  • The text has many long words, names, URLs, or code, which make justified spacing uneven.
  • Readers may find dense text hard to follow, for example in a general-audience handout.
  • A style guide or journal asks for it. Check the rules for your venue first.

Very long lines are hard to read with either alignment. Keeping the line length moderate matters more than the choice of alignment.

Switching alignment in LaTeX

To set ragged-right text for the whole document, put the declaration in the preamble:

\raggedright

To change it for part of a document, put the declaration inside a group:

{\raggedright
  This paragraph has a ragged right edge.\par}

For a block, use the flushleft environment:

\begin{flushleft}
  A block of text with a ragged right edge.
\end{flushleft}

The ragged2e package provides \RaggedRight, a version that works better inside lists, tables, and captions.

For right alignment, see right-aligning text in LaTeX.

Letters and business documents

Letters are a different case. Business and personal letters usually use left alignment by convention, and most cover letters follow the same pattern. The general advice in this article applies to books and papers. For correspondence, the convention is usually the ragged right edge.

The complete guide to fonts and text formatting

LaTeX Fonts and Font Families Explained
Read the guide

Keep exploring

Guides from other topics

All topics →