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

I don't want my report justified. I want it \raggedright.

I added a \begin{raggedright} / \end{raggedright} pair around the whole document, and it is working, but I'm wondering if I can somehow include the directive at the document level (without having to enclose the entire document like that! Feels awkward.)

share|improve this question
up vote 12 down vote accepted

Just add \raggedright after \begin{document}.

The idea behind using an environment limits the scope of \raggedright. However, if no scope is specified, it is set globally. If you want to keep things clean, you could add \AtBeginDocument{\raggedright} in your document preamble.

A slightly more advanced form of \raggedright is provided by the ragged2e package. It provides \RaggedRight, which allows some hyphenation.

share|improve this answer
I have always just added \raggedright in the preamble. Is there a reason not to? – Karl Ove Hufthammer Nov 7 '11 at 11:10
That works as well in this case. I've always just added that kind of styling within the document environment. It may be that some document class (or package) issues a different justification \AtBeginDocument, which will override \raggedright if put in the preamble. – Werner Nov 7 '11 at 15:07

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.