More elegant but also more verbose way to call latex

Gives the latex output in a string, without requiring to read any files. This method is committed so we can find it in the history, should we need it. Will be reverted immediately.
Revert "More elegant but also more verbose way to call latex"

This reverts commit a3b16036466601086711b5bba03fa471dd8d8f0d.
Add todo