[NTG-context] Spurious newlines at beginning of startstop pair
Hans Hagen
j.hagen at xs4all.nl
Wed Nov 27 17:25:12 CET 2019
On 11/27/2019 2:17 PM, Denis Maier wrote:
> Hi,
> I have this file:
>
> --------------------------------------------------------------
> \newdimen\cslhangindent
> \cslhangindent=1.5em
> \definestartstop [cslreferences] [
> before={%
> \setupnarrower[left=\cslhangindent]
> \startnarrower[left]%
> \setupindenting[-\leftskip,yes,first]%
> \indentation%
> },
> after=\stopnarrower,
> ]
>
> \starttext
>
> \section{Some title}
>
> \input ward
>
> \section{References}
>
> \startcslreferences
>
> \dorecurse{10}{\dorecurse{10}{This is a Test. }\par}
>
> \stopcslreferences
>
> \stoptext
> --------------------------------------------------------------
>
> The skip after the `\section{References}` is bigger than after
> `\section{Some title}`. Why is that? If I delete the empty line after
> `\startcslreferences`, the skips are identical.
>
> Is there a way to take care of this through `\definestartstop`?
you need to get rid of the empty line
\definenarrower[whatever][left=1.5em]
\definestartstop
[cslreferences]
[before={%
\startwhatever[left]
\setupindenting[-\leftskip,yes,first]
\indentation
\GetPar
},
after=\stopwhatever]
\showframe
\starttext
\section{Some title}
\input ward
\section{References}
\startcslreferences
\dorecurse{10}{\dorecurse{10}{This is a Test. }\par}
\stopcslreferences
\stoptext
-----------------------------------------------------------------
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | www.pragma-ade.nl | www.pragma-pod.nl
-----------------------------------------------------------------
More information about the ntg-context
mailing list