
我已在中發布了有關此事的問題這裡。有些人建議我使用unsrt
數字大小寫的引用,因為我正在使用.bib
.這有時有效,有時會切換到我不想要的另一種模式。為了說明問題,這是我的程式碼
\documentclass{article}
\begin{document}
hshshhhs \cite{2} \cite{1} \cite{3} \cite{4}
\bibliographystyle{unsrt}
\bibliography{references}{}
\end{document}
參考文獻.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]
但不知何故乳膠將參考清單重新排列為我不想要的東西。現在很混亂。任何建議為什麼會發生這種情況。
答案1
unsrt
依文獻中出現的順序對引用進行編號。2
命令\cite{}
和文件中的.bib
僅僅是用於引用條目的“鍵”;它與引用的編號無關。
我不明白它如何簡化引文:BibTeX 的全部目的是讓你不必擔心任何這些東西(請參閱下面我的註釋)。
您可以使用\nocite{<keys>}
強制命令。
但首先,一般來說,數字鍵非常令人困惑:
- 假設您在文件的開頭添加了引文。然後您會返回並重新命名每個鍵並對其進行引用嗎?
大多數人在寫文件的時候會說,
哦,這裡我需要引用Duckington 1998年的第一篇論文!
並寫下
\cite{duckington98a}
或他們選擇的任何圖案,不是哦,現在我在引用n,讓我輸入
\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}