Thanks for everybody's answers, they answer my question perfectly. I had not been able to find https://github.com/zauguin/luametalatex previously. Looking at it, I realize the amount of work that's involved. Quite impressive! Bruno