2 # -*- coding: iso-8859-15 -*-
4 # \author Juergen Spitzmueller
6 # This file is a wrapper on bibtex to let LyX
7 # process every aux file in the temp directory
8 # this is needed if you use chapterbib with LyX.
9 # Place this file somewhere in your PATH , then
10 # open Tools->Preferences->LaTeX in LyX and change
11 # the "bibtex command" from "bibtex" to "bibtexall".
14 for filename in os.listdir("."):
15 if filename.endswith('.aux'):
16 f = os.path.splitext(filename)[0]
17 os.popen('bibtex ' + f)