Hello all,
For several hours trying to find solutions of problem.
My minimal example (I mention it at the end of email) for clear reasons
show, that :
7 is not number.
7 is number.
7is not number.
7is not number.
In the first is argument '\value' negotiable to the value, in second it
is
Am 17.07.2011 um 14:01 schrieb Jaroslav Hajtmar:
Hello all,
For several hours trying to find solutions of problem.
My minimal example (I mention it at the end of email) for clear reasons
show, that :
7 is not number.
7 is number.
7is not number.
7is not number.
In the first is
Thanx Wolfgang.
But I guess I was wrong to express..
I need to pass parameter '\\macroI' to the function and turn it up a
inside luafunction expand to its value.
Ie when \def\macroI{6}
Then I need when I make in your example \ctxlua{test(\\macroI)} get
the result :
The argument “6” is a
Am 17.07.2011 um 14:42 schrieb Jaroslav Hajtmar:
Thanx Wolfgang.
But I guess I was wrong to express..
I need to pass parameter '\\macroI' to the function and turn it up a inside
luafunction expand to its value.
Not possible.
Ie when \def\macroI{6}
Then I need when I make in your
Wolfgang,
Me too. This is because the parameter '\macroI' is evaluated as a
number, but the parameter '\\macroI' is in fact really a string - the
name of a context macro. context (...) command properly put correctly
content of the '\macroI' macro into the ConTeXt, but without knowledge
of
Am 17.07.2011 um 15:10 schrieb Jaroslav Hajtmar:
then it's not for me very good news, because I thus probably not my module to
process only at the Lua language ...
You can’t expand macro from Lua but the following is possible:
\startluacode
values = {
I = 1,
II = 2,
}
Thanx Wolfgang.
It is a good example, which I will definitely come in handy sometimes,
but unfortunately I can not help my problem to solve.
Once again, many thanks
Jaroslav
Dne 17.7.2011 15:40, Wolfgang Schuster napsal(a):
You can’t expand macro from Lua but the following is possible: