bibunits:无法使其工作(没有生产 bu1)

bibunits:无法使其工作(没有生产 bu1)

我正在尝试使用该包bibunits为各个章节、章节等创建单独的参考书目......

我在 Mac 上使用 TeXShop,最近刚安装了“TeX Live 2012”。我下载了文件bibunits.sty并将其放在与要编译的文件相同的文件夹中。(我希望这是最好的做法)

我按照Thorsten Hansen的介绍,使用了这个文件:

\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}

但是,当我用 LaTeX 处理这个 maintex 文件时,没有生成“bu1”或“bu2”。相反,我得到了maintex.1.auxmaintex.2.aux,然后我根本不知道下一步该怎么做。我尝试用 BibTex 和 LaTex 处理所有文件几次,但我的 pdf 中没有任何参考资料,只有一个“?”。

你能告诉我我可能做错了什么吗?

答案1

首先,您的 TeXlive 发行版已经包含bibunits.sty,因此最好使用该版本,而不是本地副本(可能未正确设置)。只需确保您的发行版是最新的(在本例中通过sudo tlmgr update --all终端),然后删除本地样式文件。通过然后在标准发行版上运行您的代码,pdflatex结果bu1.aux如预期;没有,bu2.aux因为您在该部分中没有引用。

其次,请查看 TexShop 附带的“Tips & Trikcs”帮助文件的第 6.1 节。其中将告诉您如何调用引擎pdflatexmk,该引擎将为您处理整个编译过程,包括运行bibtex正确的文件。

相关内容