I am trying to create a glue node that I can assign to the internal parameter tex.parfillskip.
In Plain TeX, the glue for \parfillskip is assigned as \parfillskip=0pt plus 1fil. Dumping the values in Lua(TeX):
print("width: " .. tex.parfillskip.width)
print("stretch: " .. tex.parfillskip.stretch)
print("shrink: " .. tex.parfillskip.shrink)
print("stretch_order: " .. tex.parfillskip.stretch_order)
print("shrink_order: " .. tex.parfillskip.shrink_order)
leads to this output:
width: 0
stretch: 65536
shrink: 0
stretch_order: 2
shrink_order: 0
So my questions are:
- How does one convert a value
1filto thestretchcomponent of the glue spec. Is it just as simple as multiplying by65536(as it seems from the dump)? - How does one determine the value
stretch_order? It seems a bit arbitrary. The value above is2, but thestretch_ordervalue fortex.topskipis0. How does one determine what to put in that component for the glue spec.