[Tex/LaTex] Text left spacing (local “margin”)

minipageparagraphsspacing

How can I add left space to a block of text? (see the attempts and pictures below)

I can think of two ways:

minipage

\documentclass{article}

\usepackage{lipsum}

\begin{document}

\lipsum[1]

\noindent
\hspace{2em}%
\begin{minipage}{0.95\textwidth}
\lipsum[2-3]
\end{minipage}

\end{document}

minipage

Three problems:

  1. I cannot use another minipage within that minipage (which I need in my usecase)
  2. Indentation and paragraph spacing seem to change
  3. What to pass as the width optional argument?

enumitem

Using itemize with the enumitem options:

\documentclass{article}

\usepackage{lipsum}
\usepackage{enumitem}  % needed!

\begin{document}

\lipsum[1]

\begin{itemize}[label={},leftmargin=2em]
\item \lipsum[2-3]
\end{itemize}

\end{document}

It loses indentation and the paragraph spacing is a little different than the rest, but looks like much better:

enumitem

Anyhow, any other suggestion?

(Duplicate of: How can I change the margins for only part of the text?)

Best Answer

Here is a suggestion using the addmargin environment defined by package scrextend.

\documentclass{article}
\usepackage{lipsum}
\usepackage{scrextend}
\begin{document}
\lipsum[1]
\begin{addmargin}[2em]{0em}
\lipsum[2-3]
\end{addmargin}
\end{document}

enter image description here

Note that scrextend is a package to use some KOMA-Script Features like addmargin with other classes. Hence if you use a KOMA-Script class there is no need to load scrextend.