Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

I have create some sort of Template I'm using for my reports. The Data shown in those document is collected by a script running on a webserver.

I was wondering if there is an appropriate method for creating the whole reports via scripting. My first intention was to simply replace strings withing the .texfile but this seems to be a very dirty method.

I'm considering writing my own tool which should be capable of setting some sort of variables within the .tex file. Maybe in combination with a package created for this purpose. The final goal would be, to run everything as a web-service giving you the ability to simply download the finished report.

Are there any Tools which are already doing this?

share|improve this question
1  
Related blog post by Paulo: tex.blogoverflow.com/2012/03/… –  Torbjørn T. May 26 at 13:15
2  
Have a look for "template engines" like Jinja2 (based on Python) or others. I have made good experience with Jinja2 which helped me to print dozens of German tax forms. I'll create a more detailed answer later. –  Uwe Ziegenhagen May 26 at 13:25
2  
Maybe this could help? tex.stackexchange.com/questions/48193/… –  Paulo Cereda May 26 at 13:59
1  
It would be possible to store the data in JSON objects, this could do the work. I'll definitely try it. –  Rico May 26 at 14:28
    
I usually generate a portion of the TeX file which I load by one or more \input commands in the main TeX file. From time to time I generate whole TeX file which is processed by some TeX engine afterwards. –  Malipivo Jun 7 at 6:13

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Browse other questions tagged or ask your own question.