Re: [NTG-context] Preventing page break in a paragraph
>>> How do I prevent a paragraph to be broken >>> between pages (or columns)? >> Add a \vbox{} around the paragraph. (...) > a vbox messes up the spacing ... > > \starttext > > \input tufte \blank \input tufte \blank > > \setpenalties\widowpenalties{100}\maxdimen \dorecurse{3}{\input tufte} > > \blank \input tufte \blank \input tufte > > \stoptext > Is it possible to do that with verbatim text? Like \startC (a lot of text) \stopC? ___ 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 ___
Re: [NTG-context] Preventing page break in a paragraph
Aditya Mahajan wrote: > On Sun, 25 Nov 2007, Maurício wrote: > >> Hi, >> >> How do I prevent a paragraph to be broken between >> pages (or columns)? > > Add a \vbox{} around the paragraph. You can also use > \framed[align=normal], or \start-stop framed, which are fancier vboxes > and provide more control. a vbox messes up the spacing ... \starttext \input tufte \blank \input tufte \blank \setpenalties\widowpenalties{100}\maxdimen \dorecurse{3}{\input tufte } \blank \input tufte \blank \input tufte \stoptext - Hans Hagen | PRAGMA ADE Ridderstraat 27 | 8061 GH Hasselt | The Netherlands tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com | www.pragma-pod.nl - ___ 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 ___
Re: [NTG-context] Preventing page break in a paragraph
Aditya Mahajan escreveu: > On Sun, 25 Nov 2007, Maurício wrote: > >> Hi, >> >> How do I prevent a paragraph to be broken between >> pages (or columns)? > > Add a \vbox{} around the paragraph. You can also use > \framed[align=normal], or \start-stop framed, which are fancier vboxes > and provide more control. > > Aditya > Are those supposed to work with verbatim code (\startC etc.) inside? Maurício ___ 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 ___
Re: [NTG-context] Preventing page break in a paragraph
On Sun, 25 Nov 2007, Maurício wrote: Hi, How do I prevent a paragraph to be broken between pages (or columns)? Add a \vbox{} around the paragraph. You can also use \framed[align=normal], or \start-stop framed, which are fancier vboxes and provide more control. Aditya___ 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 ___
[NTG-context] Preventing page break in a paragraph
Hi, How do I prevent a paragraph to be broken between pages (or columns)? Thanks, Maurício ___ 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 ___