You may even see that the AMS matrix class of environments does not leave more than enough Area when used together with fractions leading to output comparable to this: The arithmetic method in LaTeX is very versatile and powerful, There may be a lot more that may be accomplished with https://medium.com/@gdforblog1