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.

I have some description environments which I do not wish to have split across columns or pages. Is there some command which can be placed around an item to ensure that it will never be split across columns or pages, unless it happens to be too large to fit within the height of the column?

  • I am using ConTeXt, but plain TeX answers, which are generally compatible with ConTeXt are acceptable too.
share|improve this question
    
You can wrap it around a \vbox or \framed[align=normal]{...} or \startframedtext...\stopframedtext and it will never break across a page or column. –  Aditya Apr 21 '12 at 4:12
1  
\vbox and all \framed variants interfere with the \topskip mechanism which will lead to wrong spacing at the top of the page. –  Marco Apr 21 '12 at 17:33
    
What about using \startlinecorrection...\stoplinecorrection when it interferes? –  helcim May 2 '12 at 10:40
    
@Marco: Please provide an answer –  Marco Daniel Jun 2 '12 at 22:28

1 Answer 1

Minipages, I have found to be quite useful in this regard.

\begin{minipage}{\textwidth}
.
.
.
\end{minipage}

of course, \textwidth can be replaced with something else that you prefer.

share|improve this answer

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.