Re: [NTG-context] blank line and signals

2010-03-15 Thread Wolfgang Schuster
Am 14.03.10 15:07, schrieb Andreas Harder: If one removes the blank line after \section{Section} the output is correct, otherwise \TestSpace is ignored … \def\DefineSectionBlank {\dotripleempty\doDefineSectionBlank} \def\doDefineSectionBlank[#1][#2][#3]#4% {\edef\CurrentSection{#1}%

[NTG-context] blank line and signals

2010-03-14 Thread Andreas Harder
Hi all, please have a look at the following example: \newsignal\SectionSignal \def\TestSpace% {\relax\ifdim\lastskip=\SectionSignal \blank[nowhite] \else \blank \fi} \setuphead[section] [after=\blank\vskip\SectionSignal] \setuphead[subsection][before=\TestSpace] \starttext

Re: [NTG-context] blank line and signals

2010-03-14 Thread Hans Hagen
On 14-3-2010 15:07, Andreas Harder wrote: Hi all, please have a look at the following example: \newsignal\SectionSignal \def\TestSpace% {\relax\ifdim\lastskip=\SectionSignal \blank[nowhite] \else \blank \fi} \setuphead[section] [after=\blank\vskip\SectionSignal]

Re: [NTG-context] blank line and signals

2010-03-14 Thread Wolfgang Schuster
Am 14.03.10 17:19, schrieb Hans Hagen: I'm quite sure it worked a couple of weeks before. in mkiv? probbably not ... for what do you need that kind of trickery? It worked before you enabled the new spacing mechanism in MKIV. The code was meant to change the distance between consecutive

Re: [NTG-context] blank line and signals

2010-03-14 Thread Hans Hagen
On 14-3-2010 17:27, Wolfgang Schuster wrote: Am 14.03.10 17:19, schrieb Hans Hagen: I'm quite sure it worked a couple of weeks before. in mkiv? probbably not ... for what do you need that kind of trickery? It worked before you enabled the new spacing mechanism in MKIV. The code was meant to

Re: [NTG-context] blank line and signals

2010-03-14 Thread Wolfgang Schuster
Am 14.03.10 17:45, schrieb Hans Hagen: using a kern instead of a vskip might work the problem is not the skip of the section but the information whether the current header follows another header immediately or there is normal text before. In MKII lastskip result in 1pt after both vertical

Re: [NTG-context] blank line and signals

2010-03-14 Thread Hans Hagen
On 14-3-2010 18:00, Wolfgang Schuster wrote: \starttext \vskip1pt\vskip1pt \the\lastskip \stoptext MKII: 1.0pt MKIV: 2.0pt In mkii we only see the last skip, i.e. we get 1pt. In mkiv the skips are collapsed so we get 2pt reported. (an alternative is to look into skips with higher/lower