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}
Three problems:
- I cannot use another minipage within that minipage (which I need in my usecase)
- Indentation and paragraph spacing seem to change
- 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:
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 packagescrextend
.Note that
scrextend
is a package to use some KOMA-Script Features likeaddmargin
with other classes. Hence if you use a KOMA-Script class there is no need to loadscrextend
.