rgheck wrote:

>> Adding the appropriate ERT to my LyX document partially works. The
>> additional .aux files generated by multibib are correctly created in the
>> temp directory, however they don't get processed by bibtex and added to
>> the final PDF. I can cd to the temp directory and manually run bibtex and
>> pdflatex which works OK but it would be nice if there was some way to get
>> LyX to automatically process these files. Any hints?
>>
>> 
> One option is to see if Jurgen has any ideas. He's pretty good with this
> stuff.

One way is to write a wrapper shell script, as described in the multibib 
documentation:

#!/bin/bash
for file in *.aux ; do
bibtex ‘basename $file .aux‘
done

save it in your $PATH and make sure LyX runs it instead of bibtex (you can 
adjust that in Preferences>Output>LaTeX>Bibtex command).

Another way (probably) is use a smart latex script such as latexmk:
http://www.phys.psu.edu/~collins/software/latexmk-jcc/
I think this automatically handles multibib.

You can define a new format that runs latexmk instead of latex (without the 
"latex" flag).

HTH,
Jürgen



Reply via email to