On Tue, Jun 28, 2011 at 5:42 PM, luigi scarso <[email protected]>wrote:
> > > On Tue, Jun 28, 2011 at 5:32 PM, Patrick Gundlach <[email protected]>wrote: > >> >> >> > Otherwise, don't add those nodes to the MVL, but to a made-up box, which >> you then ship out. >> >> I am thinking about this right now. I use node.write only twice, so that >> is not much to do. >> >> I'll report back after my experiments. >> >> But I am still interested in a solution without an intermediate box. >> >> Patrick >> >> >> > \shipout writes a box. > Hence or you shipout your box, or you add the material into the MVL and > pass the control to luatex > that will shipout it with the current otr (\plainoutput in my case, luatex > from minimals) > > > -- > luigi > > I mean %% Box solution \tracingall \directlua{dofile("mknodes.lua")} \directlua{dofile("mknodes.lua")} \bye -- mknodes.lua local tenpt = 10 * 2^16 local r = node.new("rule") r.width = tenpt r.height = tenpt r.depth = tenpt local v = node.vpack(r) tex.setbox(8192, v) tex.shipout(8192) %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% %%% MVL solution \tracingall \directlua{dofile("mknodes.lua")} \bye -- mknodes.lua local tenpt = 10 * 2^16 local r = node.new("rule") r.width = tenpt r.height = tenpt r.depth = tenpt local v = node.vpack(r) node.write(v) -- luigi
