Commits

JanKanis committed 7d7e151

fix bug where rerun count was not reset

Comments (0)

Files changed (1)

         '''Run the LaTeX compilation.'''
         # store files
         self.old_dir = []
+        self.latex_run_counter = 0
         if self.opt.clean:
             self.old_dir = os.listdir('.')
 
                 break
             ok = self.latex_run()
 
+        if self.latex_run_counter >= MAX_RUNS:
+            self.log.error("Error: LaTeX takes more than {} runs"+
+                           "to converge, aborting".format(MAX_RUNS))
+
         if self.opt.check_cite:
             cites = set()
             with open('%s.aux' % self.project_name) as fobj: