Markor
I don't know if this suit your needs, but markor support LaTeX
I just freeze all my apps that I don't need to run in the background and also restricted them from autostarting, running in the background, etc. in the battery settings. I'm not sure if this is a good solution, but it's how I do it.
If anyone need, here the source: Nitter | Twitter
Source: Twitter