TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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?

share|improve this question

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.

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. – Rok Strniša Dec 4 '11 at 15:55
up vote 27 down vote accepted

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:

\usepackage{lipsum}% for demo only!

\begin{addmargin}[1em]{2em}% 1em left, 2em right

Results in:

enter image description here

share|improve this answer
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 '14 at 5:59

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