I am trying to use bibunits
package. If I compile the TeX file using the following sequence of commands, it works properly.
pdflatex document
bibtex bu1
pdflatex document
pdflatex document
However, if I compile it using TeXstudio 2.8.8, TeXstudio fails to recognize bibtex entries inside the bibunit. Here is a minimal example.
\documentclass{article}
\usepackage{bibunits}
\usepackage{filecontents}
\begin{filecontents}{mybib.bib}
@ARTICLE{Meyer2000,
AUTHOR="Bernd Meyer",
TITLE="A constraint-based framework for diagrammatic reasoning",
JOURNAL="Applied Artificial Intelligence",
VOLUME= "14",
ISSUE = "4",
PAGES= "327--344",
YEAR=2000
}
@ARTICLE{Codishetal2000,
AUTHOR="M. Codish and K. Marriott and C.K. Taboch",
TITLE="Improving program analyses by structure untupling",
JOURNAL="Journal of Logic Programming",
VOLUME= ""43",
ISSUE = "3",
PAGES= "251--263",
YEAR=2000
}
\end{filecontents}
\begin{document}
\begin{bibunit}[plain]
References to the \TeX book \cite{Meyer2000}
and to Lamport’s \LaTeX\ book, which appears
only in the references\nocite{Codishetal2000}.
\putbib[mybib]
\end{bibunit}
\end{document}
bibunits
wants you to runbibtex bu1.aux
(1 for the 'first' BibUnit); are you sure you're running it? As a matter of taste: I'd put the filecontents in the preamble, too; and have no space before\end{filecontents}
.bibtex bu1
. I don't know why.