I get two warnings saying: citation "alexandre2000" on page 1 undefined on input line 7. No bu1.bbl and the second warning: there were undefined references.
I don't understand what is the problem since I follow exactly what is say in the bibunits documentation.
And if I used a standard procedure for my bibliography, like this
Do you run "bibtex bu1" after running the compiler? I've never used TeXnicCenter, but I suspect that most latex-aware editors are unable to detect when BibTeX needs to be run with an argument other than the main .aux file.
I have the same problem with bibunits. I use TeXnicCenter and like to have a references section in each chapter. I think, like olofos said, the problem is that BibTeX needs to compile all the "bu<i>.aux" files. The bibunits manual says:
For each bibunit, in sequence, there is now a corresponding file bu<i>.aux that
needs to be compiled through BibTEX. Suppose your document has <n> different
bibunits, you must now invoke BibTEX on bu1, . . . , bu<n>. This can be done by a
csh-script.
It seems that this code needs to be sent to BibTeX somehow, however I dont know how to do this. I hope there is someone on this forum that can help me and anyone else who is struggeling with this!
These are C-Shell scripts for Unix like systems (e.g. Linux). The counterpart for Wind0ws (MSD0S) are batch files. So, with the necessary knowledge you will have to translate the scripts to make them work on your system.
I finally got it to work. I don't know how to translate the Unix script to windows, but I made a .bat file (random name) with the following code in it:
This will run PDFLaTeX on "myfile.tex", then BibTeX on "bu1.aux and "bu2.aux" (if you have more references sections you need to add "bu3"), and then PDFLaTeX twice more. I don't know how to get this to work in TeXnicCenter, however I did get it to work in TeXmaker. At "Configure Texmaker" you type in the user field:
then saved the file as "texifycompilebib.bat". I put the file in my MikTeX bin folder C:\Program Files\MiKTeX 2.9\miktex\bin (not sure if that's necessary or wise but it worked).
Next, I opened TeXworks and went to Edit --> Preferences --> Typesetting. Under "Processing tools" I double-clicked my favorite processing tool that I had previously been using before I installed bibunits, which happened to be "pdfLaTeX+MakeIndex+BibTeX". Double-clicking shows what the processing tool does: It calls the program "texify.exe" with three specific arguments ("--pdf", "--tex-option=-synctex=1", "$fullname"). So I down wrote those three arguments on a piece of paper, and went back to the main processing tool window. Then I made a new Processing tool (plus sign in the bottom right), and named it "pdfLaTeX+MakeIndex+BibTeX for bibunits". I set it up to call my program (texifycompilebib.bat) instead of texify.exe, but otherwise I made it exactly the same as pdfLaTeX+MakeIndex+BibTeX, with the same three arguments in the same order.
Finally, in TeXworks, I can select "pdfLaTeX+MakeIndex+BibTeX for bibunits" from the drop-down menu at the top, and by clicking the green button the whole document re-compiles in one click! Very nice!!