[NTG-context] Prevent page break in middle of paragraph

2014-10-17 Thread Ben Moon
Hi,
I'm trying to get a thesis in a final shape and encounter a page break
("... Über 70 % der pagebreak") in the middle of a paragraph where there
still seems to be plenty of space to finish that paragraph.
If I add a few lines to the text it works ok. Also "\page[no]" doesn't
work or "\vbox" and "\setpenalties\widowpenalties{100}\maxdimen" I
couldn't get working neither. Though the last one got closest.
Here's the minimal example I could come up with, sorry for it beeing a
bit lengthy:

%%
\installlanguage[german][de]
\mainlanguage[de]

\setuppapersize[A4][A4]
\setuplayout[reset]
\setuplayout[
location=doublesided,
top=20mm, % 20
topspace=30mm, % 20
bottom=20mm, % 20
%bottomdistance=0mm,
backspace=30mm,
leftmargin=30mm,
leftmargindistance=0mm,
rightmargin=30mm, % 25
rightmargindistance=0mm,
header=2\bodyfontsize,
headerdistance=\bodyfontsize,
footer=2\bodyfontsize,
footerdistance=\bodyfontsize,
height=fit,
width=fit,
%grid=yes
]
\setuppagenumbering[
way=bytext,
partnumber=no,
alternative=doublesided,
location=right,
style=\sl
 ]
 
\setupindenting[medium,yes]
 
\setupcaption[table][headstyle=normal, location=top, stopper={.},
  width=\makeupwidth, style={\switchtobodyfont[11pt]}]
   
\setuphead[section][style=\bfb]
\setuphead[subsection][style=\bfa]
\setupheads[indentnext=yes]
\setupfloats[indentnext=yes]
\setupheadertexts[][{\sl\getmarking[section]}][{\sl \getmarking[chapter]}][]
\setupbackgrounds[header][text][bottomframe=on]
\setupbackgrounds[footer][text][topframe=on]

\starttext
\setupinterlinespace[big]
pT--Klassifikation teilte sich wie folgt auf:
pTis 13 (3,5\,\%), pT1 238 (64,2\,\%), pT2 114 (30,7\,\%) und pT3 6
(1,6\,\%) Fälle.
Es handelte sich in 287 Fällen (77,4\,\%) um ein ductal invasives, in 41
(11,1\,\%) um
ein lobulär invasives, in 6 (1,6\,\%) um ein gemischtes und in 24 Fällen
(6,5\,\%) um 
ein Mammakarzinom anderer Art. Ein Ductales Carcinoma in situ fand sich
in 13 Fällen (3,5\,\%)
(Tabelle \in[tab:Pat-Charakt]). Hier wurde die SLNB nur im Rahmen
einer Mastektomie durchgeführt.

Da in Deutschland bei klinisch unauffälliger Axilla die
Wächterlymphknotentechnik
Methode der Wahl ist \cite[Kuehn2005]{}, keine nationale Leitlinie über ein
exaktes und standardisiertes Markierungsprotokoll existiert und den
Patientinnen
durch die retrospektive Analyse keine Unannehmlichkeiten entstanden sind
bzw. sie keinen Schaden erlitten
haben, konnte auf eine Genehmigung durch die Ethikkommission verzichtet
werden.

\placetable[here][tab:Pat-Charakt]{Tabellarische Zusammenfassung der in
der vorliegenden
Studie zusammengeführten, wichtigsten Patientencharakteristika.}
{
\setupTABLE[c][1][width=5em]
\setupTABLE[c][2][width=8em]
\setupTABLE[c][3][align=center]
\setupTABLE[frame=off]
\setupTABLE[r][1,4,7,10,15,21,24][bottomframe=on]
\bTABLE
\bTR\bTD[nc=2] Geschlecht (\Sigma=371) \eTD\bTD \eTD \eTR
\bTR\bTD \eTD\bTD Frauen \eTD\bTD 368 \eTD \eTR
\bTR\bTD \eTD\bTD Männer \eTD \bTD 3 \eTD \eTR
\bTR\bTD[nc=2] Alter (Jahre)\eTD \eTR
\bTR\bTD \eTD\bTD Median\eTD \bTD 60,4  \eTD \eTR
\bTR\bTD \eTD\bTD Bereich\eTD \bTD 25,3\,--\,86,5\eTD \eTR
\bTR\bTD[nc=2] Tumorgröße (mm) \eTD \eTR
\bTR\bTD \eTD\bTD Median\eTD \bTD 16 \eTD \eTR
\bTR\bTD \eTD\bTD Bereich\eTD \bTD 0,9\,--\,140 \eTD \eTR
\bTR\bTD[nc=2] pT Klassifizierung \eTD \eTR
\bTR\bTD \eTD\bTD pTis\eTD \bTD 13 (3,5\,\%) \eTD \eTR
\bTR\bTD \eTD\bTD pT1\eTD \bTD 238 (64,2\,\%) \eTD \eTR
\bTR\bTD \eTD\bTD pT2\eTD \bTD 114 (30,7\,\%) \eTD \eTR
\bTR\bTD \eTD\bTD pT3\eTD \bTD 6 (1,6\,\%) \eTD \eTR
\bTR\bTD[nc=2] Histologie\eTD \eTR
\bTR\bTD \eTD\bTD ductal invasiv\eTD \bTD 287 (77,4\,\%) \eTD \eTR
\bTR\bTD \eTD\bTD lobulär invasiv\eTD \bTD 41 (11,1\,\%) \eTD \eTR
\bTR\bTD \eTD\bTD kombiniert\eTD \bTD 6 (1.6\,\%) \eTD \eTR
\bTR\bTD \eTD\bTD DCIS\eTD \bTD 13 (3,5\,\%) \eTD \eTR
\bTR\bTD \eTD\bTD andere\eTD \bTD 24 (6,5\,\%) \eTD \eTR
\eTABLE
}

\section{Markierungstechnik}
Ein Radiologe mit über 30 Jahren Expertise in der
interstitiellen peritumoralen Lymphszintigraphie und der
Funktionslymphszintigraphie führte die SN--Markierung am Vortag etwa 20
Stunden vor der Operation
durch. Durch diesen Zeitabstand war eine ausreichende Möglichkeit für
Spätaufnahmen gegeben.

\subsection{Applizierter Tracer}
{Im Laufe der Untersuchungen kamen drei verschiedene Tracer, von drei
unterschiedlichen Herstellern zur Verwendung: {\it Nanocoll\high{®}} (GE
Healthcare Buchler, Braunschweig, Deutschland), {\it Nano--Albumon\high{®}}
(Medi--Radiopharma Ltd., Budapest, Ung\-arn), sowie {\it Nanocis\high{®}}
(CIS bio, Berlin, Deutschland). Bei {\it Nanocoll\high{®}} und
{\it Nano--Albumon\high{®}} handelt es sich um ein
Natrium--(\high{99m}Tc)--Technetium--Pertechnetat markiertes
Humanserum--Albumin--Nanokolloid. {\it Nanocis\high{®}} demgegenüber ist ein
kolloidales (\high{99m}Tc)--Tech\-netium--Rheniumsulfid. Die Verwendung von
Tracern unterschiedlicher Hersteller war lediglich durch die lokale

Re: [NTG-context] Prevent page break in middle of paragraph

2014-10-17 Thread Rik Kabel

On 2014-10-16 16:03, Ben Moon wrote:

Hi,
I'm trying to get a thesis in a final shape and encounter a page break
("... Über 70 % der pagebreak") in the middle of a paragraph where there
still seems to be plenty of space to finish that paragraph.
If I add a few lines to the text it works ok. Also "\page[no]" doesn't
work or "\vbox" and "\setpenalties\widowpenalties{100}\maxdimen" I
couldn't get working neither. Though the last one got closest.
Here's the minimal example I could come up with, sorry for it beeing a
bit lengthy:


With the current (2014-10-17) standalone beta the complete paragraph 
appears on page 2 and section 1.2 begins at the top of the next page. 
Perhaps there are some simple patches that Hans or others can supply for 
the version you are using, otherwise an update may be called for.


--
Rik
___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Prevent page break in middle of paragraph

2014-10-17 Thread Rik

On 2014-10-17 12:18, Rik Kabel wrote:

On 2014-10-16 16:03, Ben Moon wrote:

Hi,
I'm trying to get a thesis in a final shape and encounter a page break
("... Über 70 % der pagebreak") in the middle of a paragraph where there
still seems to be plenty of space to finish that paragraph.
If I add a few lines to the text it works ok. Also "\page[no]" doesn't
work or "\vbox" and "\setpenalties\widowpenalties{100}\maxdimen" I
couldn't get working neither. Though the last one got closest.
Here's the minimal example I could come up with, sorry for it beeing a
bit lengthy:


With the current (2014-10-17) standalone beta the complete paragraph 
appears on page 2 and section 1.2 begins at the top of the next page. 
Perhaps there are some simple patches that Hans or others can supply 
for the version you are using, otherwise an update may be called for.


Sorry, I should have added that I did reproduce your problem with TL14, 
which uses the same version you used, dated 20140521. The problem does 
not exist with the 20140622 beta and later versions I have. I do not 
know at what point the change was made, but it clearly was made very 
shortly after TL14.


--
rik

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___

Re: [NTG-context] Prevent page break in middle of paragraph

2014-10-17 Thread Ben Moon
Thanks Rik for looking into this. I'm trying to figure out how to update
my context in the least painful way ;)

Cheers and a nice weekend

Ben

> On 2014-10-17 12:18, Rik Kabel wrote:
>> On 2014-10-16 16:03, Ben Moon wrote:
>>> Hi,
>>> I'm trying to get a thesis in a final shape and encounter a page break
>>> ("... Über 70 % der pagebreak") in the middle of a paragraph where there
>>> still seems to be plenty of space to finish that paragraph.
>>> If I add a few lines to the text it works ok. Also "\page[no]" doesn't
>>> work or "\vbox" and "\setpenalties\widowpenalties{100}\maxdimen" I
>>> couldn't get working neither. Though the last one got closest.
>>> Here's the minimal example I could come up with, sorry for it beeing a
>>> bit lengthy:
>>>
>>>
>> With the current (2014-10-17) standalone beta the complete paragraph 
>> appears on page 2 and section 1.2 begins at the top of the next page. 
>> Perhaps there are some simple patches that Hans or others can supply 
>> for the version you are using, otherwise an update may be called for.
>>
> Sorry, I should have added that I did reproduce your problem with TL14, 
> which uses the same version you used, dated 20140521. The problem does 
> not exist with the 20140622 beta and later versions I have. I do not 
> know at what point the change was made, but it clearly was made very 
> shortly after TL14.
> 

___
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  : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___