参考文献スタイル unsrt の使い方

参考文献スタイル unsrt の使い方

この件に関して私は質問を投稿しましたここunsrt。私は を使用しているので、引用の数値ケースには を使用するように勧める人もいます.bib。これは時々機能しますが、望まない別のモードに切り替わることもあります。問題を説明するために、これは私のコードです。

\documentclass{article}

\begin{document}

hshshhhs \cite{2}     \cite{1}  \cite{3}  \cite{4}

\bibliographystyle{unsrt}
\bibliography{references}{}


\end{document}

references.bibは

@article{1, 
    author ={H. Durrant-Whyte, T. Bailey},
    title = {Simultaneous localization and mapping: part I},
    publisher = "Robotics Automation Magazine, IEEE",
    year = {2006},
    volume  = "13",
    pages = {99-110}
}

@incollection{2,
year={1996},
isbn={978-1-4471-1257-0},
booktitle={Robotics Research},
editor={Giralt, Georges and Hirzinger, Gerhard},
doi={10.1007/978-1-4471-1021-7_69},
title={Localization of Autonomous Guided Vehicles},
url={http://dx.doi.org/10.1007/978-1-4471-1021-7_69},
publisher={Springer London},
author={Durrant-Whyte, Hugh and Rye, David and Nebot, Eduardo},
pages={613-625},
language={English}
}

@book{3, 
author = "Mr. X", 
title = {Mr. X Knows BibTeX}, 
publisher = "AWOL", 
YEAR = 2005, 
}

@misc{ 4,
       author = "Nobody Jr",
       title = "My Article",
       year = "2006" }

出力は

ここに画像の説明を入力してください

を使用しているので\cite{2}、出力は になると予想しています[2]が、どういうわけか、LaTeX は参照リストを望まないものに並べ替えます。非常に混乱しています。なぜこのようなことが起こるのか、何かアドバイスはありますか。

https://tex.stackexchange.com/questions/228034/how-to-change-bibtex-orders-citations-from-alphabetically-to-numerically

答え1

unsrt引用を文書内に現れる順に番号付けします。コマンド2\cite{}および.bibファイル内の は、エントリを参照するために使用される「キー」にすぎず、引用の番号付けとは関係ありません。

引用を簡素化する方法がわかりません。BibTeX の目的は、このようなことについて一切心配しなくてもよいようにすることです (以下のメモを参照してください)。

\nocite{<keys>}順序を強制するために使用できます。

しかし、まず、一般的に、数字キーは非常にわかりにくいです。

  • たとえば、文書の先頭に引用を追加するとします。その後、すべてのキーと参照を再度名前変更しますか?
  • 文書を書くとき、ほとんどの人はこう言います。

    ああ、ここでダッキントンの 1998 年の最初の論文を引用する必要があります。

    そして\cite{duckington98a}彼らが選んだパターンを書きますない

    ああ、今は引用中ですと入力して、その番号の\cite{n}エントリをファイルに追加します。.bib

  • 複数の引用: どの番号がどの参考文献に該当するかを常に確認して覚えておく必要があります。著者名を使用すると、記憶に残りやすくなります。

本当にやりたいのであれば、次の方法で実行できます。

\begin{filecontents}{myrefs.bib}
@article{1, 
    author ={H. Durrant-Whyte, T. Bailey},
    title = {Simultaneous localization and mapping: part I},
    publisher = "Robotics Automation Magazine, IEEE",
    year = {2006},
    volume  = "13",
    pages = {99-110}
}

@incollection{2,
year={1996},
isbn={978-1-4471-1257-0},
booktitle={Robotics Research},
editor={Giralt, Georges and Hirzinger, Gerhard},
doi={10.1007/978-1-4471-1021-7_69},
title={Localization of Autonomous Guided Vehicles},
url={http://dx.doi.org/10.1007/978-1-4471-1021-7_69},
publisher={Springer London},
author={Durrant-Whyte, Hugh and Rye, David and Nebot, Eduardo},
pages={613-625},
language={English}
}

@book{3, 
author = "Mr. X", 
title = {Mr. X Knows BibTeX}, 
publisher = "AWOL", 
YEAR = 2005, 
}

@misc{ 4,
       author = "Nobody Jr",
       title = "My Article",
       year = "2006" }
\end{filecontents}

\documentclass{article}

\begin{document}
\nocite{1,2,3,4} % force the order here
hshshhhs \cite{2}     \cite{1}  \cite{3}  \cite{4}

\bibliographystyle{unsrt}
\bibliography{myrefs}
\end{document}

ここに画像の説明を入力してください

関連情報