[NTG-context] Problem defining macro with Lua inside

Hans Hagen j.hagen at xs4all.nl
Wed May 30 13:49:07 CEST 2018


On 5/30/2018 10:19 AM, Procházka Lukáš Ing. wrote:
> Hello,
> 
> I'm trying to define a macro (a MS Word -> clipboard -> Ctx tool), whose 
> simplified form is the following:
> 
> ----
> \def\startWord{%
>    \startluacode
>      context[[
> }
> 
> \def\stopWord{%
> ]]
>    \stopluacode
> }
> 
> \starttext
>    aaa
> 
>    \startWord
>      abc
>      def
> 
>      ghi
>    \stopWord
> \stoptext
> ----
> 
> Unfortunately, I'm not able to define \startWord and \stopWord in a way 
> that Ctx would accept.
> 
> How to define it?
> 
> Any help would be appreciated.

just define a buffer and do something with it afterwards



-- 

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


More information about the ntg-context mailing list