I am trying to use the package bibunits to have separate bibliographies for sections, chapters,...
I am using TeXShop on a Mac, and I just recently installed "TeX Live 2012".
I downloaded the file bibunits.sty and put it in the same folder as the files I want to compile.
(I hope this is the best thing to do)
I followed the introduction by Thorsten Hansen, I used this file:
\documentclass{article} \usepackage{bibunits}
\begin{document}
\begin{bibunit}[plain]
References to the \TeX book \cite{Knuth:1991} and to Lamport’s \LaTeX\ book,
which appears only in the references\nocite{Lamport:1994}. \putbib[lit]
\end{bibunit}
\begin{bibunit}[alpha]
A new bibunit with a different style and a cite of a Postscript tutorial \end{bibunit}
\end{document}
However, no "bu1" or "bu2" is produced when I LaTeX this maintex-file.
Instead, I get maintex.1.aux and maintex.2.aux, and then I simply do not know what to do next. I tried BibTex-ing and LaTex-ing all files several times, but I don't get any references in my pdf, just a "?".
Could you tell me what I am probably doing wrong?

bibunitsyourself, as it is already a part of TeXlive. I suggest you remove the local copy of the style. Secondly, your example compiles fine for me and producesbu1.aux; there is nobu2.auxas you have no citations in that section. – Andrew Swann Jan 22 at 8:27