diff options
author | Marius <mariausol@gmail.com> | 2013-03-15 20:40:14 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2013-03-15 20:40:14 +0200 |
commit | 792b2ca2d206c2c90cc9967a8ae4916f53f902d7 (patch) | |
tree | 61a6b50fcad361326d0a7e6c305ab9d291d699e7 /tex/context/base/luat-lua.lua | |
parent | 5649bfe8b7ccdd5a8b02951fc9f6a0dbbdf48256 (diff) | |
download | context-792b2ca2d206c2c90cc9967a8ae4916f53f902d7.tar.gz |
beta 2013.03.15 19:22
Diffstat (limited to 'tex/context/base/luat-lua.lua')
-rw-r--r-- | tex/context/base/luat-lua.lua | 34 |
1 files changed, 16 insertions, 18 deletions
diff --git a/tex/context/base/luat-lua.lua b/tex/context/base/luat-lua.lua index d319508f0..972004e88 100644 --- a/tex/context/base/luat-lua.lua +++ b/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 |