
私は、パッケージを使用して、文書に参考文献のエントリを挿入しています。私の場合は、通常の参考文献のエントリも必要になります。私が理解しているところによると、これを実現するには、を と組み合わせてbibentry
使用する必要があります。\nobibliography*
\bibliography
このコードは正常に動作します:
\documentclass{report}
\usepackage[numbers,sort&compress]{natbib}
\usepackage{bibentry}
\nobibliography*
\begin{document}
\chapter{Introduction}
text~\citet{haertel_return_2008}
more text
\bibentry{haertel_return_2008}
\bibliographystyle{plainnat}
\bibliography{al}
\end{document}
次のサンプル.bib
ファイルの場合:
@inproceedings{haertel_return_2008,
Author = {Author, First},
Booktitle = {Booktitle},
Title = {Title},
Year = {2008}
}
しかし、ドキュメントクラスを使用が義務付けられているものでは、動作しなくなります。この問題は、article
またはreport
クラスを使用する少し異なるコンテキスト、つまり\nobibliography{al}
(対応するコマンドなし\bibliography
)を使用する場合にも発生します。
以下に、sharelatex を使用して完全にオンラインでコンパイルおよび表示できる完全な動作例へのリンクを示します。役立つ場合に備えて編集可能にしておきました。
- 必要なクラスの使用
- www.sharelatex.com/project/51e0437ecad12b446f54bb5a にあるレポート クラスを使用する代替手段