37

Possible Duplicate:
Indenting a whole paragraph
Write text with some fixed amount of space from the margin

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?

marked as duplicate by Seamus, lockstep, Torbjørn T., Schweinebacke, Werner Dec 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.

46

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:

enter image description here

  • 5
    A tip for other sloppy readers: the package is s c r extend, not s r c extend. – ntc2 Mar 20 '14 at 5:59

Not the answer you're looking for? Browse other questions tagged or ask your own question.