General ⇒ Generating LaTeX in Program
Generating LaTeX in Program
I am experienced with TeX (have been using for years), but not with how the "back-end" of the compiling process works. Because of this, I'm not quite sure where to start searching for answers to this question.
Basically, say that I have written a computer program (suppose it is coded in C/C++, if that would make any difference) that produces TeX code to be compiled (what I would typically write in the TeXShop editor and then click 'Typeset'). I want to take that TeX code and produce the output (either an image file or a pdf file or both preferably) via my own code or something that I can integrate it nicely with (so that the final step of the code would be to take the TeX code and produce an image output). That is, I don't want to have to put the TeX code in an external source (TeXShop or MikTex or whatever) to compile it.
Does anyone know how I would go about doing this?
I hope this makes sense. I appreciate your time, and please let me know if I can clarify anything.
Learn LaTeX easily with newest books:
The LaTeX Beginner's Guide: 2nd edition and perfect for students writing a thesis
The LaTeX Cookbook: 2nd edition full of practical examples for mathematics, physics, chemistry, and more
LaTeX Graphics with TikZ: the first book about TikZ for perfect drawings in your LaTeX thesis