ビブユニットの問題

ビブユニットの問題

ビブユニットのコンパイルに問題があります。最も簡単な例 (このパッケージの公式ドキュメントで公開されている例と非常に似ています) でも動作しません。

\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 つの異なるプロセスを実行する必要があります (のドキュメントのbibunits2 ページを参照)。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

次に、2 つのパーセント記号を手動でbu1およびに置き換えましたbu2

latex -interaction=nonstopmode %.tex|bibtex bu1|bibtex bu2|latex -interaction=nonstopmode %.tex|latex -interaction=nonstopmode %.tex

このコマンドは.dviファイルを正常に生成しました。

関連情報