Taco Hoekwater wrote: > Zhichu Chen wrote: >> Hi, >> >> I've searched the list and it seems that no one has been occurred >> to my problem. >> >> Has the javascript interface gone? 'cause I failed the following > > No, just bugged. Hans ran into that himself yesterday, actually. > I cannot look up the actual fix from here, but it comes down to > a pretty simple catcode mixup. Hans will probably post it sometime > tomorrow.
\def\presetJSpreamble {\ifx\allJSpreambles\empty\else \bgroup \setverbosecscharacters \obeyspaces \let\obeyedspace\normalspace \def\par{\delcharacter}% was: { } \globallet\JSpreamble\empty \def\@@collectedJSpreamble{\r!java\r!java collected}% \letvalue{\@@collectedJSpreamble}=\empty \def\docommand##1% {\xdef\JScode{\getvalue{\r!java\r!java##1}}% \ifoneJSpreamble % \global\letcdcsname [EMAIL PROTECTED]@EA\@@[EMAIL PROTECTED] {\csname\@@collectedJSpreamble\endcsname\JScode}% \else \setxvalue{\r!java\r!java##1}{\JScode}% \fi}% \processcommacommand[\allJSpreambles]\docommand \ifoneJSpreamble \gdef\allJSpreambles{collected}% \fi \globallet\presetJSpreamble\relax \egroup \fi} ----------------------------------------------------------------- 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 ----------------------------------------------------------------- ___________________________________________________________________________________ If your question is of interest to others as well, please add an entry to the Wiki! maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context webpage : http://www.pragma-ade.nl / http://tex.aanhet.net archive : https://foundry.supelec.fr/projects/contextrev/ wiki : http://contextgarden.net ___________________________________________________________________________________