code: def bibtex_run(self):
          '''
          Start bibtex run.
          '''
          self.log.info('Running bibtex...')
          try:
              with open(os.devnull, 'w') as null:
                  Popen(['bibtex', self.project_name], stdout=null).wait()
          except OSError:
              self.log.error(NO_LATEX_ERROR % 'bibtex')
              sys.exit(1)
  
          shutil.copy('%s.bib' % self.bib_file,
                      '%s.bib.old' % self.bib_filef bibtex_run(self):
          '''
          Start bibtex run.
          '''
          self.log.info('Running bibtex...')
          try:
              with open(os.devnull, 'w') as null:
                  Popen(['bibtex', self.project_name], stdout=null).wait()
          except OSError:
              self.log.error(NO_LATEX_ERROR % 'bibtex')
              sys.exit(1)
  
          shutil.copy('%s.bib' % self.bib_file,
                      '%s.bib.old' % self.bib_file)
docs: Start bibtex run.