@luizaandrade , I can do all work apart from the tex implementation. I will let you know when I have done that.