* Preventing page break in a paragraph
@ 2007-11-25 6:28 Maurício
2007-11-25 6:36 ` Aditya Mahajan
0 siblings, 1 reply; 5+ messages in thread
From: Maurício @ 2007-11-25 6:28 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Preventing page break in a paragraph
2007-11-25 6:28 Preventing page break in a paragraph Maurício
@ 2007-11-25 6:36 ` Aditya Mahajan
2007-11-25 8:01 ` Maurício
2007-11-25 11:36 ` Hans Hagen
0 siblings, 2 replies; 5+ messages in thread
From: Aditya Mahajan @ 2007-11-25 6:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
[-- Attachment #1: Type: TEXT/PLAIN, Size: 296 bytes --]
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
[-- Attachment #2: Type: text/plain, Size: 487 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Preventing page break in a paragraph
2007-11-25 6:36 ` Aditya Mahajan
@ 2007-11-25 8:01 ` Maurício
2007-11-25 11:36 ` Hans Hagen
1 sibling, 0 replies; 5+ messages in thread
From: Maurício @ 2007-11-25 8:01 UTC (permalink / raw)
To: ntg-context
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Preventing page break in a paragraph
2007-11-25 6:36 ` Aditya Mahajan
2007-11-25 8:01 ` Maurício
@ 2007-11-25 11:36 ` Hans Hagen
2007-11-27 16:52 ` Maurício
1 sibling, 1 reply; 5+ messages in thread
From: Hans Hagen @ 2007-11-25 11:36 UTC (permalink / raw)
To: mailing list for ConTeXt users
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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: Preventing page break in a paragraph
2007-11-25 11:36 ` Hans Hagen
@ 2007-11-27 16:52 ` Maurício
0 siblings, 0 replies; 5+ messages in thread
From: Maurício @ 2007-11-27 16:52 UTC (permalink / raw)
To: ntg-context
>>> 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
___________________________________________________________________________________
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-11-27 16:52 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-25 6:28 Preventing page break in a paragraph Maurício
2007-11-25 6:36 ` Aditya Mahajan
2007-11-25 8:01 ` Maurício
2007-11-25 11:36 ` Hans Hagen
2007-11-27 16:52 ` Maurício
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).