Removing auto-indent for all new paragraphs

From Notes_Wiki
Revision as of 03:16, 6 May 2014 by Saurabh (talk | contribs) (Created page with "<yambe:breadcrumb>LaTeX|LaTeX</yambe:breadcrumb> =Removing auto-indent for all new paragraphs= If we use documentclass article to write an application or letter then it is ve...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

<yambe:breadcrumb>LaTeX|LaTeX</yambe:breadcrumb>

Removing auto-indent for all new paragraphs

If we use documentclass article to write an application or letter then it is very irritating to write \noindent after every \\ to remove unnecessary indentation. This can be done automatically using:

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

After this by default there would be no indentation for new paragraphs. However if indentation is desired then corresponding paragraph can be preceeded with \indent command.

Learned from http://tex.stackexchange.com/questions/59245/how-to-disable-automatic-indent