5

I am trying to turn of the indentation for a group of paragraphs in my document. So I would like something like:

\begin{noindent}
Paragraph 1

Paragraph 2

Paragraph 3
\end{noindent}

How can I achieve this?

P.S. My question is not a duplicate of this one.

Victor
  • 367
  • You will need to have paragraph skips if you don't want indentation of new paragraphs. But why isn't this a duplicate? Doesn't the solutions help you? – Johannes_B Feb 21 '16 at 15:34
  • indentation {\setlength{parskip}{0pt} no indentation} indentation or define a simple environment (like quotation). – Johannes_B Feb 21 '16 at 15:35
  • @Johannes_B, my situation is like this: N indented paragraphs, group of M not indented paragraphs and P indented paragraph (with the original indentation) – Victor Feb 21 '16 at 15:36

3 Answers3

10

Just define a new environment

\newenvironment{zeroindent}
  {\par\setlength{\parindent}{0pt}}
  {\par}

Then, in the document, you do

\begin{zeroindent}
Paragraph 1

Paragraph 2

Paragraph 3
\end{zeroindent}

The usefulness of this is unclear to me, though.

egreg
  • 1,121,712
3

A slightly strange request and a more semantically oriented markup would be preferable but without any indication of the intended use, the basic layout can be obtained by

indented para

\begin{parindent}0pt

no indent

no indent

\end{parindent}

indent again
David Carlisle
  • 757,742
3

Another solution, which uses explicit \begingroup and \endgroup statements to delimit the scope of \setlength\parindent{0pt}. (Relative to the earlier posting you provided a link to, the only difference is the addition of \begingroup and \endgroup.) In the code, note the use blank lines before \begingroup and after \endgroup; the blank lines generate paragraph breaks.

Paragraph 0

\begingroup
\setlength\parindent{0pt}

Paragraph 1

Paragraph 2

Paragraph 3
\endgroup

Paragraph 4
Mico
  • 506,678