I have a complete framework for my PhD thesis based on classicthesis/arsclassica. Single chapters are located in Subfolders like this.
I am using
chapterbib to have a references section after each chapter. The chapter files are included in the main document via
\include, so that I get separate
.aux files in each subfolder. I need to run bibtex on the
.aux files in the subfolders so that the
.bbl files necessary for the chapter references are created.
All my machines both at work and at home are running Linux, I am using Vim as an editor and have written a simple shell script to do this.
#!/bin/bash pdflatex main.tex for auxfile in $(find * -name "*.aux"); do bibtex $auxfile; done pdflatex main.tex pdflatex main.tex
Now, I have given the template to a friend, she is using both Windows and OS X. Her editor is Texmaker. The given compile profiles all do not work for this, since they do not run
bibtex on the other files. Manually opening the subchapters and executing
bibtex works on my machine, oddly enough even this was not really working for her either, but I need to check it again. Anyways, an automatic routine would be preferred.
If I add something like this
for auxfile in $(find * -name "*.aux"); do bibtex $auxfile; done
as a user specified command in Texmaker on the Mac, I am getting the Message
"Error: Could not start the command", even though it works when I execute it from the command line.
So, I am looking for a solution (or two) to add a profile that does the usual compilation routine plus also runs bibtex on the .aux files of the \included chapters. Needs to work in OS X and in Windows, so probably the solutions are going to be distinct. If necessary, I can upload a minimal working example which I have prepared.