I have recently used Latex3 to write a customized environment and I discovered that I can write also some functions. To improve my workflow, I will implement some functions or some customized environments. To implement in latex, I can use the programming in Latex3 or Luatex. I have no experience, so before choosing the wrong option, I prefer to ask what would be the best. It's of course related with my goals. They are:
- write some macros
- customized environments where some programming is needed
- write some macros/environments in which some computation are done.
For example I wrote a tag system. So I had to use some lists and I used the programming in Latex3. I could write some macros/environments where addition, multiplication,conversion of units, square some numbers, operations on fractions, etc. are done.
For example, I have in mind to create an environment to use the Pythagora's theorem:
\begin{pythagore}
3^2 + 4^2 = 5^2
\end{pythagore}
I often use in exercises such equalites and each time I have to write each step.
\begin{align*}
3^2 + 4^2 &= 5^2 \\
9 + 16 &= 25 \\
25 = 25
\end{align*}
So I would like a macro/environment which automatically write all the steps.
I don't exclude to write and publish a package one day.
What should I take into account to choose between Latex3 and Lua. Or pehaps both of them is also a possibility.
Thank you for sharing your experience!
