I want to write a book containing ordinary text, python code, mathematical formulas and also pictures/plots.
In general, how would this be done in the best way? People who publish books, how / in what tool do they write in? The only thing I can think of is LaTeX?