[Tex/LaTex] Opposite of \parindent

indentation

I want to do the opposite of normal paragraph indentation, meaning:

  1. Have no indent on the first line of each paragraph, but

  2. Indent each subsequent line in the paragraph.

Currently I'm using the command \setlength{\parindent}{0pt} to accomplish (1), but what is the command for (2)?

Best Answer

A combination of \leftskip and \parindent can achieve, I think, what you seek (that is, having the hanging indent persist beyond a single paragraph). Then reset them when you are done.

\documentclass{article}
\usepackage{lipsum}
\parindent=0em
\begin{document}
\lipsum[4]
\leftskip=2em
\parindent=-2em
\lipsum[2-4]
\leftskip=0em
\parindent 0em
\lipsum[4]
\end{document}

enter image description here

Alternately, you can set the stuff off in its own brace-delimited group. Then, you don't have to reset them at the end:

\documentclass{article}
\usepackage{lipsum}
\parindent=0em
\begin{document}
\lipsum[4]
{
\leftskip=2em
\parindent=-2em
\lipsum[2-4]
}
\lipsum[4]
\end{document}