Am 04.10.2008 um 01:51 schrieb Mojca Miklavec: > On Sat, Oct 4, 2008 at 12:54 AM, Wolfgang Schuster wrote: >> >>> One more question: how can I say "please keep this content together" >>> when typsetting in columns on grid? \vbox behaves a bit weird, but >>> most important: it does not align baselines properly. >> >> \interlinepenalty=10000 > > So like this: > \long\def\startpleasekeepmetogether#1\stoppleasekeepmetogether > {\hereshouldprobablybesomepenaltyfixtoallowcolumnbreak > \bgroup\interlinepenalty=10000#1\egroup} > ? > > I alweays fear using such constructs since I have a feeling that > ConTeXt has something better to offer, but colums seem a bit > problematic anyway.
\definestartstop [pleasekeepmetogether] [commands=\setups{pleasekeepmetogether}] \startsetups pleasekeepmetogether %\interlinepenalty\plustenthousand \setpenalties\interlinepenalties{100}\maxdimen \stopsetups \showframe \starttext \dorecurse{9}{\input ward\par} \startpleasekeepmetogether \input tufte\par \stoppleasekeepmetogether \dorecurse{3}{\input ward\par} \stoptext Wolfgang ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________