Generating pdf-latex with python script

You can start by defining the template tex file as a string: content = r”’\documentclass{article} \begin{document} … \textbf{\huge %(school)s \\} \vspace{1cm} \textbf{\Large %(title)s \\} … \end{document} ”’ Next, use argparse to accept values for the course, title, name and school: parser = argparse.ArgumentParser() parser.add_argument(‘-c’, ‘–course’) parser.add_argument(‘-t’, ‘–title’) parser.add_argument(‘-n’, ‘–name’,) parser.add_argument(‘-s’, ‘–school’, default=”My U”) A bit … Read more