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.

Possible Duplicate:
What is the proper way to prevent text from splitting across columns and pages?

I'd be surprised if this has not been asked a zillion times before, but really I couldn't find it (tried [context] "no page break", [context] "preventing page breaks, [context] same page, etc - to no avail). So with some trepidation, here is my question:

Is there a ConTeXt equivalent of LaTeX's samepage environment? Or another way to prevent page breaks? I understand that \page[no] prevents breaks at specific positions, but what I am after is something like \startsamepage ... \stopsamepage, if it exists at all.

ThanksI

share|improve this question
add comment

marked as duplicate by Marco, Paulo Cereda, egreg, percusse, Torbjørn T. Jul 23 '12 at 12:21

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.

1 Answer

up vote 3 down vote accepted

Ok, so it was a duplicate, as I feared (of What is the proper way to prevent text from splitting across columns and pages?) - sorry about that.

If anyone stumbles on this question, a possible solution is:

\definestartstop[samepage][before={\vbox}]

I'm sure there are better ways, but this seems to work for me.

share|improve this answer
add comment

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