[NTG-context] ' undefined inside \startformula .. \stopformula

Hans Hagen pragma at wxs.nl
Wed Dec 27 09:31:16 CET 2006


Aditya Mahajan wrote:
> On Tue, 26 Dec 2006, Sanjoy Mahajan wrote:
>
>   
>> I just noticed this test file failing:
>>
>> \starttext
>> $f'(x)$
>> \startformula
>> f^\prime(x)\quad f'(x)
>> \stopformula
>> \stoptext
>>
>> It gives:
>>
>> ! Undefined control sequence.
>> l.4 f^\prime(x)\quad f'
>>                        (x)
>>
>>     
>
> This is a typo in math-pln.tex. The end of the file should be
>
> \bgroup
>      \catcode`\_ = 13
>      \catcode`\' = 13
>      \doglobal\appendtoks
>          \let_\activemathunderscore
>          \let'\activemathquote
>      \to \everymathematics %<--- was \everymath
> \egroup
>   
ok, fixed ... the _ thing is kind of weird and taco and i could not cook 
up a reason why plain does/needs that ; the ' (prime) is needed

this trickery is related to a change in the catcode management of 
context (which interferes with some plain tex left-overs)

Hans

-- 

-----------------------------------------------------------------
                                          Hans Hagen | PRAGMA ADE
              Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
     tel: 038 477 53 69 | fax: 038 477 53 74 | www.pragma-ade.com
                                             | www.pragma-pod.nl
-----------------------------------------------------------------



More information about the ntg-context mailing list