Re: [NTG-context] Problem defining macro with Lua inside

2018-05-30 Thread Procházka Lukáš Ing .
de has to “see” \stopluacode. Use buffers: \unexpanded\def\startWord {\grabbufferdata[Word][startWord][stopWord]} \unexpanded\def\stopWord {\startluacode print(buffers.prepend("Word","context[[")) print(buffers.append("Word","]]")) \stopluacode

Re: [NTG-context] Problem defining macro with Lua inside

2018-05-30 Thread Henri Menke
rd {\grabbufferdata[Word][startWord][stopWord]} \unexpanded\def\stopWord {\startluacode print(buffers.prepend("Word","context[[")) print(buffers.append("Word","]]")) \stopluacode \ctxluabuffer[Word]} \starttext \startWord ab

Re: [NTG-context] Problem calling Lua during \startsetups

2011-01-25 Thread Wolfgang Schuster
): \startbuffer[lualayer] % … \startluacode … \stopluacode \stopbuffer \doifmode{foo}{\ctxluabuffer[lualayer]} Wolfgang ___ If your question is of interest to others as well, please add an entry to the Wiki! maillist