[luatex] Assigning shrink_order of glue_spec in LuaTeX r4917

Paul Isambert zappathustra at free.fr
Fri Mar 28 08:06:27 CET 2014


Hironori KITAGAWA <h_kitagawa2001 at yahoo.co.jp> a écrit:
> I typeset the following test.tex by LuaTeX r4917:
> ===
> \directlua{
>    local s = node.new( node.id('glue_spec') )
>    s.width = 65536
>    s.stretch_order, s.stretch = 1, 10000
>    s.shrink_order, s.shrink = 2, 655360
>    tex.setskip(0, s)
> }
> \showthe\skip0
> \bye
> ===
> Then, I got
> ===
> $ mtxrun --script plain test
> ...
>  > 1.0pt plus 0.15259fi minus 10.0pt.
> l.9 \showthe\skip0
> ===
> which should be "... minus 10.0fil", I think.

Yes, you’ve got a problem here; more generally, you can’t write to
“shrink_order”:

    \skip0=0pt plus 1fi minus 1fil
    \directlua{
       local x = tex.getskip(0)
       x.shrink_order = 0
       texio.write_nl(x.shrink_order)
    }
    \bye

“2” is printed, it should be “0”. With “stretch_order”, things are ok.

So, you should pay a visit to: http://tracker.luatex.org.

Best,
Paul




More information about the luatex mailing list