[Tex/LaTex] Python and latex

compilingpdfpython

Is there any way to compile a .tex to pdf without having to install latex.

Is there any python package for this ?

Or even better is there any small stand-alone portable software for this.

Thanks a lot

Best Answer

If you're using matplotlib, you have a basic TeX expression parser which works quite well. But to go beyond that you need to install a (La)TeX distribution.

It should be possible to use matplotlib to produce graphics containing equations written in TeX by turning off everything else in the graph and plotting no data. That would be an interesting question, but one for the python experts rather than for here, assumign you can't figure it out yourself.