Hello,
I have the following problem.
Let's have T~.lua file which defines a function:
---
function F2()
context(draw (0,0)--(5cm,0))
end
print(T~OK!)
---
Let's have MP-02.ctx ConTeXt source file:
---
\starttext
AAA
\startluacode
function F()
context(draw (0,0)--(2cm,0))
On 29-9-2010 3:02, Procházka Lukáš wrote:
Hello,
I have the following problem.
Let's have T~.lua file which defines a function:
hm, what is this ~ doing there ... avoid such characters! ~ is HOME on
some systems
Hans
-
On 09/29/10 15:10, Hans Hagen wrote:
On 29-9-2010 3:02, Procházka Lukáš wrote:
Hello,
I have the following problem.
Let's have T~.lua file which defines a function:
hm, what is this ~ doing there ... avoid such characters! ~ is HOME on
some systems
That is true of course, but the
... Thanks, it works now! It had to be fixed both in F() and in F2().
(I forgot ; in MP statement as Lua doesn't require ;.)
(Still it's a bit strange to me that calling F() worked even when the MP statement in F()
was not finished by ; and F2() was not called.)
Lukas
On Wed, 29 Sep 2010
I think that ; is not needed to end an MP statement but to separate
two of them. So it works without as long as you only have one MP statement.
Stefan
On 29.09.2010 15:35, Procházka Lukáš Ing. - Pontex s. r. o. wrote:
... Thanks, it works now! It had to be fixed both in F() and in F2().
(I