[Tex/LaTex] How to center and indent a particular paragraph in LaTex

horizontal alignmentindentation

I just want to centre and indent a particular paragraph.
Everything else shall stay the same?

How can I do this in LaTex?

Best Answer

The quotation environment does this, though it does add a little extra vertical space.

\documentclass{article}
\usepackage{lipsum}
\begin{document}
\lipsum[1]
\begin{quotation}
\lipsum[2]
\end{quotation}
\lipsum[3]
\end{document}

enter image description here

If you don't want the extra vertical space, use \leftskip and \rightskip.

\documentclass{article}
\usepackage[nopar]{lipsum}
\begin{document}
\lipsum[1]

\leftskip=1cm\rightskip=1cm
\lipsum[2]

\leftskip=0cm\rightskip=0cm
\lipsum[3]
\end{document}

enter image description here