
我在編譯 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
and bu2
:
latex -interaction=nonstopmode %.tex|bibtex bu1|bibtex bu2|latex -interaction=nonstopmode %.tex|latex -interaction=nonstopmode %.tex
此命令已成功產生.dvi
檔案。