Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

Is there a minipage-like environment that allows pagebreaks? Everything I can find is about avoiding page breaks (which minipage does well) but I want to indent a whole section, which is convenient to do by wrapping the section in minipage as \leftskip is overtaken by the environment enclosing this section.

share|improve this question
4  
Have a look at tex.stackexchange.com/questions/588/… –  lockstep Oct 25 '11 at 20:16
1  
This question might be relevant: tex.stackexchange.com/questions/4590/… –  jonalv Oct 25 '11 at 20:18
    
It certainly was helpful, thank you. –  crippledlambda Oct 26 '11 at 10:47

2 Answers 2

up vote 9 down vote accepted

Another option is to use adjustwidth from the changepage package- see example below

\documentclass{article}
\usepackage[showframe=true]{geometry}
\usepackage{changepage}
\usepackage{lipsum}

\begin{document}

\section{Regular settings}
\lipsum

\begin{adjustwidth}{2cm}{}
\section{Adjusted settings}
\lipsum
\end{adjustwidth}

\end{document}

Note that the adjustwidth environment takes 2 arguments, the first is the indent from the left of the page, the second is the indent from the right of the page. I put showframe=true when I loaded the geometry package just for demonstration.

If you plan to use this idea at lots of different places throughout the document, it is probably worth defining your own environment, something like

\newenvironment{mywidth}{\begin{adjustwidth}{2cm}{}}{\end{adjustwidth}}

which could then be used as

\begin{mywidth}
\lipsum
\end{mywidth}

If your document is twosided then you can adjust the width different for even and odd sides- see the documentation for more details.

share|improve this answer

no need for a minipage, use a trivlist

\documentclass{article}
\usepackage{lipsum}
\begin{document}

\section{foo}
\begin{trivlist}\leftskip=2cm
\item\relax\lipsum[1]
\end{trivlist}

\lipsum[1]
\end{document}

enter image description here

share|improve this answer
6  
This works provided that no list based environment appears within this trivlist. \begin{list}{}{\leftmargin=2cm}...\end{list} wouldn't have this problem (and is the approach taken by adjustwidth). –  egreg Oct 25 '11 at 21:35

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

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