I have an offical document template in LaTeX, which I would like to fill programatically, i.e. providing script with values for selected variables (e.g. name, surname or boolean value for Mr./Mrs.) and compiling .tex into .pdf.
- How do I correctly create a document with such variables, is there some common format for inserting such templated variables into LaTeX?
- How do I compile such template from a script (I need just pointing into the right direction, the right way to do these kind of things, I will know where to go from there)?