I'd like to left align my entire document (latex default seems to be center justified). Is there a simple way to do this?
I'm trying to use
\begin{flushleft}
...
\end{flushleft}
but really don't want to have to do that on a paragraph by paragraph basis (and when I try to simply add that to the start and end of my document I get an error.
Best Answer
Just use:
right after
\begin{document}
The
flushleft
environment effectively sets text in a ragged right list environment. It is defined as:The
\raggedright
command does the actual work:Setting text this way will lead to some ugly looking lines. The
ragged2e
package provides the\RaggedRight
command (and corresponding)FlushLeft
environment that solves some of these problems. I would recommend using it instead of just\raggedright
.To see the differences between
\raggedright
and\RaggedRight
here's a small sample document:Both
\raggedright
and\RaggedRight
set the paragraph indent to zero. Withragged2e
this is controllable with the length\RaggedRightParindent
which can be set to equal the regular\parindent
in the following way:To do this with regular
\raggedright
you could do the following: