... Great, thank you!
Lukas
On Wed, 30 May 2018 13:47:12 +0200, Henri Menke wrote:
On 05/30/2018 08:19 PM, 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:
This cannot work \startluacode has to
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
On 05/30/2018 08:19 PM, 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:
>
This cannot work \startluacode has to “see” \stopluacode. Use buffers:
\unexpanded\def\startWord
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