# ConTeXt equivalent of LaTeX samepage [duplicate]

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

-

## 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

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.

-