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

Aditya Mahajan adityam at umich.edu
Tue Mar 13 00:58:37 CET 2007


On Tue, 13 Mar 2007, Mojca Miklavec wrote:

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

Hans, the above code does not work for me also. If I replace, 
everyhbox with everyvbox, the output is correct, but I have no clue 
what is happening here.

Aditya


More information about the dev-context mailing list