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.

If I want to prevent latex from putting two (short) paragraphs on different columns, is there something similar to \nopagebreak that will let me do this?

share|improve this question
2  
AFAIK columns are handled like different pages and so \nopagebreak should do what you want. –  Martin Scharrer May 20 '11 at 9:21
    
@Martin I couldn't get \nopagebreak to work, but maybe I just didn't insist on it enough. –  Viktor Dahl May 20 '11 at 9:38
    
You could place the paragraphs into a {minipage}{\columnwidth} environment to prevent page or column breaking between or inside them. –  Martin Scharrer May 20 '11 at 9:42
    
@Martin Thanks! But shouldn't you last comment be an answer? –  Viktor Dahl May 20 '11 at 11:04
add comment

1 Answer

up vote 5 down vote accepted

AFAIK columns are handled like different pages and so \nopagebreak should do what you want.

However, could simply wrap the paragraphs into \begin{minipage}{\columnwidth} ... \end{minipage} to prevent page or column breaking between or inside them. This should work fine as long you don't have footnotes in the paragraphs which would be placed at the bottom of the minipage.

share|improve this answer
add comment

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.