[NTG-context] LuaTeX error <main ctx instance>:1: '<name>' expected near '\'.

Hans Hagen pragma at wxs.nl
Thu Feb 18 13:13:00 CET 2010


On 18-2-2010 13:05, Peter Münster wrote:
> Hello,
>
> With the latest version, I get the following error:
>
> MTXrun | executing: vim  -u NONE -e -C -n -c "set tabstop=4" -c "syntax on"
> -c "set syntax=c" -c "let contextstartline=1" -c "let contextstopline=0" -c
> "source /opt/context/tex/texmf-context/tex/context/third/vim/2context.vim"
> -c wqa c-course-vimsyntax.tmp
> MTXrun |
> MTXrun |
>   (c-course-vimsyntax.tmp-vimsyntax.tmp
> ! LuaTeX error<main ctx instance>:1: '<name>' expected near '\'.
> l.3 }
>
> \dolocationpagecheck ...eferences.expandcurrent()}
>                                                    \fi \ifx
>                                                    \@@iaclosepageact...
> <inserted text>  ...onstartup \dolocationpagecheck
>                                                    \synchronizepaperdimension...
> \actualshipout ...mptytoks \fi \the \everyshipout
>                                                    \relax \ifnum \realpageno
>                                                    ...
> \myshipout ...\@@ppmethod }\gobbleoneargument {#1}
>                                                    \setnextrealpageno
>                                                    \afters...
> \dofinaloutput ...hbox {\vbox {\dopagebody #1#2}}}
>                                                    \the \everyaftershipout
>                                                    \a...
> ....
> l.1 ...{char}\s[]{ uc = }\s[Constant]{0x80}\s[]{;}
>
> ?
>
>
> This is the file c-course-vimsyntax.tmp-vimsyntax.tmp:
>
> \s[Type]{unsigned}\s[]{ }\s[Type]{char}\s[]{ uc =
> }\s[Constant]{0x80}\s[]{;}
> \s[Type]{unsigned}\s[]{ }\s[Type]{long}\s[]{ ul = }\s[Constant]{0}\s[]{;}
> \s[]{ul {\letterbar}= uc {\letterless}{\letterless} }\s[Constant]{8}\s[]{ *
> (}\s[Statement]{sizeof}\s[]{(}\s[Type]{int}\s[]{) -
> }\s[Constant]{1}\s[]{);}
> \s[]{printf(}\s[Constant]{{\letterdoublequote}0x}\s[Special]{{\letterpercent}lx}\s[Special]{{\letterbackslash}n}\s[Constant]{{\letterdoublequote}}\s[]{,
> ul);}
>
>
> I get this error, when compiling my product. When components are compiled
> one by one, there is no such error.

my guess is that t-vim is doing something funny with catcodes and that 
can interfere with pagebreaks and the pagebuilding

normally codes are reset when the otr is invoked

so, indeed we need a small example

maybe just something

\starttext

\start \initializevimmode

\input that temp file that has multiple pages

\stop

\stoptext

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