[luatex] shipout a page

luigi scarso luigi.scarso at gmail.com
Tue Jun 28 17:56:20 CEST 2011


On Tue, Jun 28, 2011 at 5:42 PM, luigi scarso <luigi.scarso at gmail.com>wrote:

>
>
> On Tue, Jun 28, 2011 at 5:32 PM, Patrick Gundlach <patrick at gundla.ch>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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://tug.org/pipermail/luatex/attachments/20110628/10e9f970/attachment-0001.html>


More information about the luatex mailing list