code: def generate_tex(self, filepath):
          
  
          with open(filepath + '.tex', 'w', encoding='utf-8') as newf:
              self.dump(newf)
docs: Generate a .tex file.
  
          Args
          ----
          filepath: str
              The name of the file (without .tex)