]> git.lyx.org Git - wiki-uploads.git/blob - BibTeX/bibtexall
Import uploads from wiki
[wiki-uploads.git] / BibTeX / bibtexall
1 #!/usr/bin/env python
2 # -*- coding: iso-8859-15 -*-
3
4 # \author Juergen Spitzmueller
5
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".
12
13 import sys, os
14 for filename in os.listdir("."):
15         if filename.endswith('.aux'):
16                 f = os.path.splitext(filename)[0]
17                 os.popen('bibtex ' + f)