Hello friend @stefano.massari.
I do the equations in Microsoft PowerPoint.
I give insert equations, and I use the tools that insert equations gives me.
Microsoft Word also provides the same tools.
Greetings friend, I hope you can experiment with this way of doing the equations.
RE: Calculation of arc length