[luatex] node.copy_list() does not copy glue_spec nodes

Patrick Gundlach patrick at gundla.ch
Fri Jun 15 13:45:08 CEST 2012


I'd like to bring this up again. Is this something I should report to the tracker or is this "it's a feature, not a bug"?

Patrick




Am 03.05.2012 um 15:35 schrieb Patrick Gundlach:

> Hello all,
> 
> it seems that node.copy_list() does not copy the glue_spec nodes, right? Any chance for a fix?
> 
> Patrick
> 
> 
> 
> \documentclass{article}
> \usepackage{luacode}
> \begin{document}
> \begin{luacode}
> 
> g1 = node.new("glue")
> g1.spec = node.new("glue_spec")
> g1.spec.stretch_order = 3
> print(g1.spec.stretch_order) -- 3: ok
> 
> g2 = node.copy_list(g1)
> g2.spec.stretch_order = 1
> print(g1.spec.stretch_order) -- 1, expected 3
> 
> -- This is because both are the same:
> print(g1.spec)
> print(g2.spec)
> 
> -- <node    nil <     86 >    nil : glue_spec 0>
> -- <node    nil <     86 >    nil : glue_spec 0>
> 
> \end{luacode}
> \end{document}
> 
> 
> 





More information about the luatex mailing list