Dynamically create tex files based on parameters.