[Tex/LaTex] How to disable automatic indent

indentationparagraphsparskip

I know there are some similar questions here, but I haven't found the perfect answer for my problem.

I don't like that TeX indents he first line of each paragraph and I'm too lazy to write \noindent to the beginning of the paragraphs, so I use this: \setlength{\parindent}{0cm} (I also tried the parskip package)

The only problem is that when I try to indent a line inside a paragraph with \indent, nothing happens. I also tried unbreakable spaces (~~~~~~~) but they didn't work.

Any idea how to solve this problem?

Best Answer

Before setting \parindent to zero, we can store its value in another length variable and redefine the \indent command to use this other length variable instead of \parindent (which has been set to zero).

\documentclass[12pt]{article}

\newlength\tindent
\setlength{\tindent}{\parindent}
\setlength{\parindent}{0pt}
\renewcommand{\indent}{\hspace*{\tindent}}

\begin{document}

This is some text that will not be indented.

\indent This is some text that will be indented.

\end{document}