On 7/9/2019 10:37 AM, Taco Hoekwater wrote:
On 8 Jul 2019, at 17:18, mf wrote:
Hello list,
i've played a bit with interfaces.definecommand, that lets you define TeX macros from lua
(see the "ConTeXt Lua Documents", 7.3 User interfacing).
I found that the commands defined by
> On 8 Jul 2019, at 17:18, mf wrote:
>
> Hello list,
> i've played a bit with interfaces.definecommand, that lets you define TeX
> macros from lua (see the "ConTeXt Lua Documents", 7.3 User interfacing).
>
> I found that the commands defined by interfaces.definecommand fail when you
> pass
On 7/8/2019 5:18 PM, mf wrote:
Hello list,
i've played a bit with interfaces.definecommand, that lets you define
TeX macros from lua (see the "ConTeXt Lua Documents", 7.3 User
interfacing).
I found that the commands defined by interfaces.definecommand fail when
you pass string arguments
Hello list,
i've played a bit with interfaces.definecommand, that lets you define
TeX macros from lua (see the "ConTeXt Lua Documents", 7.3 User interfacing).
I found that the commands defined by interfaces.definecommand fail when
you pass string arguments that contain brackets.
I think
Hi Hans,
is it possible to extend “interfaces.definecommand” so that it is possible
to create commands without optional arguments.
\starttext
\startluacode
function test(opt_1, arg_1)
context(%s,arg_1)
end
interfaces.definecommand {
name = test,
arguments = {
{ option, list
On 12-7-2011 5:59, Wolfgang Schuster wrote:
Hi Hans,
is it possible to extend “interfaces.definecommand” so that it is possible
to create commands without optional arguments.
\starttext
\startluacode
function test(opt_1, arg_1)
context(%s,arg_1)
end
interfaces.definecommand {
name
Am 12.07.2011 um 18:04 schrieb Hans Hagen:
hm, isn't that what
interfaces.definecommand {
name = simpleone,
macro = simpleone,
}
does?
This creates a command without *any* arguments but i’m interested how to create
a command with mandatory arguments only, e.g. \test{One}{Two}.
On 12-7-2011 6:24, Wolfgang Schuster wrote:
Am 12.07.2011 um 18:04 schrieb Hans Hagen:
hm, isn't that what
interfaces.definecommand {
name = simpleone,
macro = simpleone,
}
does?
This creates a command without *any* arguments but i’m interested how to create
a command with