[dev-context] minor problem with utf-8 inside \startintertext

Mojca Miklavec mojca.miklavec.lists at gmail.com
Tue Mar 13 00:45:06 CET 2007


On 3/11/07, Hans Hagen wrote:
> Aditya Mahajan wrote:
> > On Fri, 9 Mar 2007, Aditya Mahajan wrote:
> >> On Fri, 9 Mar 2007, Mojca Miklavec wrote:
> >>
> >>> Hello,
> >>>
> >>> I have something for (most probably) Hans/Taco/Aditya to resolve:
> >>>
> >>> \enableregime[utf-8]
> >>> \starttext
> >>> \startformula\startalign
> >>>     \NC a \NC = b \NR
> >>> \startintertext
> >>> Še četrta možnost
> >>> %
> >>> For those with problems with encoding, \ccaron should be enough to
> >>> reproduce the bug.
> >>> \stopintertext
> >>>     \NC c \NC = d \NR
> >>> \stopalign\stopformula
> >>> \stoptext
> >
> > \unexpanded\def\dointertext#1%
> >    {\penalty\postdisplaypenalty
> >     \afterdisplayspace
> >     {\forgetall\noindent#1\par}%
> >     \penalty\predisplaypenalty
> >     \beforedisplayspace}
>
> in cont-new.tex ....
>
> \def\dealwithmathtextencoding
>  {\expanded{\everyhbox{\the\everyhbox\noexpand\fastenableencoding{\currentencoding}}}%
>    \def\dealwithmathtextencoding{\let\characterencoding\nocharacterencoding}%
>    \dealwithmathtextencoding}
>
> \appendtoks
>   \dealwithmathtextencoding
> \to \everymathematics

Thanks a lot for your answers, but neither approach seems to work here.

Mojca


More information about the dev-context mailing list