as though you wrote them by hand. handcalcs is a library to render Python calculation code automatically in Latex, but in a manner that mimics how one might format their calculation if it were written ...
run the script to generate a LaTeX file in the current directory python generate.py edit the sample book.tex file to adapt it to your own needs ...