[NTG-context] Problem defining macro with Lua inside

Procházka Lukáš Ing. LPr at pontex.cz
Wed May 30 10:19:30 CEST 2018


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.

Best regards,

Lukas


-- 
Ing. Lukáš Procházka | mailto:LPr at pontex.cz
Pontex s. r. o.      | mailto:pontex at pontex.cz | http://www.pontex.cz | IDDS:nrpt3sn
Bezová 1658
147 14 Praha 4

Mob.: +420 702 033 396
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t6.log
Type: application/octet-stream
Size: 1471 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180530/b7eaf74b/attachment.obj>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t6.mkiv
Type: application/octet-stream
Size: 185 bytes
Desc: not available
URL: <http://mailman.ntg.nl/pipermail/ntg-context/attachments/20180530/b7eaf74b/attachment-0001.obj>


More information about the ntg-context mailing list