Misleading documentation for node.setglue

26 Mar
2020
26 Mar
'20
8:09 p.m.
Hi, according to the LuaTeX manual for node.setglue:
When you pass values, only arguments that are numbers are assigned so node.setglue(n,655360,false,65536) will only adapt the width and shrink.
This does not correspond to the actual behaviour. In practise, arguments which are not numbers are treated as zero: \directlua{ local n = node.new'glue' node.setglue(n, 100000, 100000, 100000, 2, 2) print('BEFORE', node.getglue(n)) node.setglue(n, 655360, false, 655360) print('AFTER', node.getglue(n)) node.free(n) } \bye prints BEFORE 100000 100000 100000 2 2 AFTER 655360 0 655360 0 0 The documentation should probably be adjusted to reflect the actual behaviour. - Marcel
1808
Age (days ago)
1808
Last active (days ago)
0 comments
1 participants
participants (1)
-
Marcel Fabian Krüger