# [NTG-context] intertext for aligned equations

Taco Hoekwater taco at elvenkind.com
Wed Mar 29 09:49:59 CEST 2006

>
> This does not look good. Consider,
>
> There is too much space after the intertext and the next line. Can you
> provide some magic to reduce this space.

Ok, got it. The \NR has to go away, and the \beforedisplayspace
reinserted, like so:

\def\startintertext#1\stopintertext
{\noalign{\dointertext{#1}}}

\unexpanded\def\dointertext#1%
{\penalty\postdisplaypenalty
\afterdisplayspace
\vbox{\forgetall \noindent #1\par}%
\penalty\predisplaypenalty
\beforedisplayspace }

Looks much better (over here).

Taco