# How can I indent a block of text for a specified amount? [duplicate]

I would like to indent a paragraph or two for a specific amount.

The quote environment is not suitable, since indentation width is not configurable.

An article suggested using {\addtolength{\leftskip}{5mm} text}, but that doesn't work for me.

Another article suggested a very hacky way, which involved temporarily modifying global margins.

Is there a clean solution for this?

EDIT:

Thanks to a comment by @barbara beeton, addtolength can be made to work by adding a \par: {\addtolength{\leftskip}{5mm} text \par}

-
–  Torbjørn T. Dec 4 '11 at 15:45
Could you elaborate on "doesn't work for me" what did you try exactly and why didn't it work? –  Seamus Dec 4 '11 at 15:49
did you try this with \par at the end before closing the group in which the \leftskip is adjusted? –  barbara beeton Dec 4 '11 at 15:54
@Seamus I tried the exact command quoted, and it didn't affect text layout. –  Darthenius Dec 4 '11 at 15:55
add comment

## marked as duplicate by Seamus, lockstep, Torbjørn T., Schweinebacke, WernerDec 4 '11 at 15:56

This question has been asked before and already has an answer. If those answers do not fully address your question, please ask a new question.

## 2 Answers

You may use addmargin environment of either a KOMA-Script class or the KOMA-Script package scrextend. Here an example with a standard class and package scrextend:

\documentclass{article}
\usepackage{scrextend}
\usepackage{lipsum}% for demo only!
\begin{document}

\lipsum[1]
\begin{addmargin}[1em]{2em}% 1em left, 2em right
\lipsum[2]
\end{addmargin}
\lipsum[3]
\end{document}


Results in:

-
Thank you, this is a very clean solution, and I was already using KOMA-Script. –  Anony-Mousse Oct 24 '12 at 8:32
A tip for other sloppy readers: the package is s c r extend, not s r c extend. –  ntc2 Mar 20 at 5:59
add comment

I solved the problem with a fairly clean solution, which makes use of the tabular environment:

\begin{tabular}{@{\hspace{3ex}}p{42em}}
text
\end{tabular}


With this solution, you have to manually set the indentation width (3ex in the example) and the width of the paragraph (42em in the example).

-
Caveat: There are no page breaks at tabular. –  Schweinebacke Dec 4 '11 at 15:46
add comment