我在编译 bibunits 时遇到了问题。即使是最简单的示例(与此包官方文档中发布的示例非常相似)也不起作用:
\documentclass[english,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\usepackage{bibunits}
\begin{document}
\begin{bibunit}[plain]
I want to cite two works, the first one~\cite{Dub1} and the second one~\cite{Dub2}.
\putbib[mybib]
\end{bibunit}
\begin{bibunit}[alpha]
I want to cite only work, that is~\cite{Har}.
\putbib[mybib]
\end{bibunit}
\end{document}
有3个错误:
I found no \citation commands---while reading file bibunittest1.aux
I found no \bibdata command---while reading file bibunittest1.aux
I found no \bibstyle command---while reading file bibunittest1.aux
另外,如果我想做这样的事情:
\documentclass[english,12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[T2A]{fontenc}
\begin{document}
I want to cite two works, the first one~\cite{Dub1} and the second one~\cite{Dub2}.
I want to cite only work, that is~\cite{Har}.
\bibliographystyle{plain}
\bibliography{mybib}
\end{document}
所以,即使不使用该软件包,一切都很好。我将非常感谢您的帮助。
答案1
请原谅我的英语。我不是以英语为母语的人。
要编译文档,您需要运行 5 个不同的进程(请参阅文档bibunits
,第 2 页):latex bibunittest1、bibtex bu1、bibtex bu2、latex bibunittest1、latex bibunittest1。我使用 TeXMaker 和 QuickBuild Wisard(连续单击 LaTeX、BiBTeX、BiBTeX、LaTeX、LaTeX)来生成以下字符串:
latex -interaction=nonstopmode %.tex|bibtex %|bibtex %|latex -interaction=nonstopmode %.tex|latex -interaction=nonstopmode %.tex
bu1
然后我手动用和替换了两个百分号bu2
:
latex -interaction=nonstopmode %.tex|bibtex bu1|bibtex bu2|latex -interaction=nonstopmode %.tex|latex -interaction=nonstopmode %.tex
该命令已成功生成一个.dvi
文件。