[Tex/LaTex] How to vary alignment in document

horizontal alignment

I wanted to left align my document in such a way that some pages…e.g. Abstract to remain justified, but the rest of the document left aligned. Anyway to do that?

Best Answer

\documentclass{article}
\usepackage{lipsum}
\usepackage{ragged2e}
\begin{document}

\begin{abstract}
\lipsum[1]
\end{abstract}
\raggedright
\lipsum[2]

\justifying
\lipsum[3]

\end{document}