I want to justify my text to left without losing the paragraph indentation. I tried ragged and flushleft, although both justify the text and the next paragraph. So I am losing intendation. I do not want to do individual paragraphs because my document is pretty long.
3 Answers
Do you just want something like this?
\documentclass{article}
\usepackage{kantlipsum}
\newlength{\normalparindent}
\setlength{\normalparindent}{\parindent}
\raggedright
\setlength{\parindent}{\normalparindent}
\begin{document}
\kant[1-3]
\end{document}
Or, using \RaggedRight
from the ragged2e
package you can assign the desired value to the length \RaggedRightParindent
for indentation:
\documentclass{article}
\usepackage{lipsum}
\usepackage{ragged2e}
\setlength\RaggedRightParindent{15pt}
\RaggedRight
\begin{document}
\lipsum[1-3]
\end{document}
-
This looks better. Just the only time I'd use this is for cases where I basically need to conform to some rule and usually 'not justified' seems to go along with 'no hyphenation'. But maybe I've just had peculiarly unaesthetic experiences ;).– cfrMay 29, 2014 at 0:12
-
If I add
a5paper
like so\documentclass[12pt,a5paper]{article}
, the paper size doesn't change. Dec 25, 2015 at 2:09 -
Edit: Ahh.. I should use
\usepackage[a5paper]{geometry}
instead of addinga5paper
in thedocument class
:) Now it works fine. Thanks. Dec 25, 2015 at 2:29
I found that just setting the variable parindent
after enabling raggedright
, kept paragraph indentation for me.
E.g.,
\raggedright
\parindent=.35in
\begin{document}
Some text.
Another paragraph with more text.
\end{document}
\documentclass{...}
and ending with\end{document}
.