diff options
Diffstat (limited to 'Master/texmf-dist/tex/context/base/luat-lua.lua')
-rw-r--r-- | Master/texmf-dist/tex/context/base/luat-lua.lua | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/Master/texmf-dist/tex/context/base/luat-lua.lua b/Master/texmf-dist/tex/context/base/luat-lua.lua index d319508f004..972004e887d 100644 --- a/Master/texmf-dist/tex/context/base/luat-lua.lua +++ b/Master/texmf-dist/tex/context/base/luat-lua.lua @@ -6,8 +6,6 @@ if not modules then modules = { } end modules ['luat-lua'] = { license = "see context related readme files" } -local concat = table.concat - if lua then do local delayed = { } @@ -25,23 +23,23 @@ if lua then do end function lua.flush(...) - context.directlua("lua.flushdelayed(%s)",concat({...},',')) + context.directlua("lua.flushdelayed(%,t)",{...}) end end end ---~ See mk.pdf for an explanation of the following code: ---~ ---~ function test(n) ---~ lua.delay(function(...) ---~ context("pi: %s %s %s",...) ---~ context.par() ---~ end) ---~ lua.delay(function(...) ---~ context("more pi: %s %s %s",...) ---~ context.par() ---~ end) ---~ context("\\setbox0=\\hbox{%s}",math.pi*n) ---~ local box = tex.box[0] ---~ lua.flush(box.width,box.height,box.depth) ---~ end +-- See mk.pdf for an explanation of the following code: +-- +-- function test(n) +-- lua.delay(function(...) +-- context("pi: %s %s %s",...) +-- context.par() +-- end) +-- lua.delay(function(...) +-- context("more pi: %s %s %s",...) +-- context.par() +-- end) +-- context("\\setbox0=\\hbox{%s}",math.pi*n) +-- local box = tex.box[0] +-- lua.flush(box.width,box.height,box.depth) +-- end |