ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Prevent page break in middle of paragraph
@ 2014-10-16 20:03 Ben Moon
  2014-10-17 16:18 ` Rik Kabel
  0 siblings, 1 reply; 4+ messages in thread
From: Ben Moon @ 2014-10-16 20:03 UTC (permalink / raw)
  To: mailing list for ConTeXt users

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 und
momentane
Verfügbarkeit begründet. Gemäß Herstellerangaben liegt bei {\it
Nanocoll\high{®}}
die Teilchengröße zu 95\,\% im Bereich unter 80\,nm, zu 4\,\% zwischen
80 und
100\,nm und bei 1\,\% über 100\,nm. Über 70\,\% der
{\it Nanocis\high{®}}--Partikel haben eine Größe zwischen 31,6 und 178\,nm,
davon 20\,\% unter 100\,nm. Die Partikelgröße von {\it
Nano--Albumon\high{®}}
liegt zu 80\,\% unter 100\,nm.}


\subsection{Tracerapplikation}
Die Patientin wurde in ca. 30° Neigung zur kontralateralen Seite der
betroffenen Brust gelagert. Es wurde ein Depot des momentan verfügbaren
Radiopharmakons
langsam, intradermal am periareolären
Rand des betroffenen Quadranten gesetzt (Abbildung \in[fig:Tracer]). Die
Injektionsnadel wurde so
positioniert, dass die Nadelspitze vor Beginn der Injektion grau durch
die Haut schimmerte und sich
mit beginnender Injektion unmittelbar eine Quaddel bildete. Bei
Schmerzen wurde kurz pausiert.
\stoptext
%%%%%%%%%%%%%%


The context version I'm using is the current debian installation in the
unstable branch:

context --version

mtx-context     | ConTeXt Process Management 0.60
mtx-context     |
mtx-context     | main context file:
/usr/share/texmf/tex/context/base/context.mkiv
mtx-context     | current version: 2014.05.21 22:04

Help is much appreciated

Thanks very much in advance

Ben
___________________________________________________________________________________
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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Prevent page break in middle of paragraph
  2014-10-16 20:03 Prevent page break in middle of paragraph Ben Moon
@ 2014-10-17 16:18 ` Rik Kabel
  2014-10-17 18:59   ` Rik
  0 siblings, 1 reply; 4+ messages in thread
From: Rik Kabel @ 2014-10-17 16:18 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Prevent page break in middle of paragraph
  2014-10-17 16:18 ` Rik Kabel
@ 2014-10-17 18:59   ` Rik
  2014-10-17 19:30     ` Ben Moon
  0 siblings, 1 reply; 4+ messages in thread
From: Rik @ 2014-10-17 18:59 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Prevent page break in middle of paragraph
  2014-10-17 18:59   ` Rik
@ 2014-10-17 19:30     ` Ben Moon
  0 siblings, 0 replies; 4+ messages in thread
From: Ben Moon @ 2014-10-17 19:30 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2014-10-17 19:30 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-10-16 20:03 Prevent page break in middle of paragraph Ben Moon
2014-10-17 16:18 ` Rik Kabel
2014-10-17 18:59   ` Rik
2014-10-17 19:30     ` Ben Moon

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).