\nocite の問題

\nocite の問題

私は LaTex で論文を書いていますが、参考文献に問題があります。本文に引用されていないものも含めて、記載したすべての参考文献を記載したいと思います。 コマンドを使用しようとしました\nocite{*}が、使用すると確かにすべての参考文献が表示されますが、本文では引用が番号なしの [?] のようになります。 コマンドを使用しないと、正しく表示されますが、すべての参考文献が表示されません。 コードは次のとおりです。

\documentclass[10pt,twoside,a4paper]{report}
\usepackage[english,mt]{ethidsc} 
\usepackage{pdfpages}
\usepackage{fixltx2e} 
\usepackage{emptypage}

\begin{document}
\maketitle  
%chapters....
\backmatter

\bibliographystyle{unsrt}
\bibliography{bibliography}

\end{document}

参考文献はbibliography.bibファイルに次のように書かれています。

@article{C2014,
author={Author},
journal={Journal C},
title={First Paper},
year={2020}
}

どうすればこの問題を解決できるのか、何かアイデアはありますか? ありがとうございます!

答え1

必ずドキュメントを数回コンパイルしてください。

  • pdflatexbibtex/ biberpdflatexpdflatex

レポートクラスにはないので\backmatter、その部分をコメントアウトしました。また、不要になった -package も削除しましたfixltx2e

次の例は問題なく実行されます。

\documentclass[10pt,a4paper]{report}

\usepackage{pdfpages}
% \usepackage{fixltx2e} 
\usepackage{emptypage}
\usepackage{kantlipsum}

\begin{filecontents}{bibliography.bib}
@article{C2014,
author={Firstname Lastname},
journal={Journal C},
title={First Paper},
year={2020}
}
\end{filecontents}

\title{Me, I, and all my other Personalities}
\author{Me I. Myself}

\begin{document}
\maketitle  

\chapter{First Chapter}
\kant[1]

\section{Here be a Citation}
This is the best article ever written: \cite{C2014}

% \backmatter
\nocite{*}
\bibliographystyle{unsrt}
\bibliography{bibliography}

\end{document}

引用

書誌

関連情報