
我的references.bib 檔案中有以下內容。
@Misc{ref1,
Title = {\href{http://www.ref1.com}{aaa}}
}
@Misc{ref2,
Title = {\href{http://www.ref2.com}{ccc}}
}
@Misc{ref3,
Title = {\href{http://ref3.com}{bbb}}
}
如何將 bibtex 中的參考書目排序為以下內容?
[1] aaa
[2] bbb
[3] ccc
答案1
您可以新增key
用於排序的欄位:
@Misc{ref1,
key = {aaa},
Title = {\href{http://www.ref1.com}{aaa}}
}
@Misc{ref2,
key = {ccc},
Title = {\href{http://www.ref2.com}{ccc}}
}
@Misc{ref3,
key = {bbb},
Title = {\href{http://ref3.com}{bbb}}
}
這是一個完整的範例,只是filecontents*
為了使其獨立。
\begin{filecontents*}{\jobname.bib}
@Misc{ref1,
key = {aaa},
Title = {\href{http://www.ref1.com}{aaa}}
}
@Misc{ref2,
key = {ccc},
Title = {\href{http://www.ref2.com}{ccc}}
}
@Misc{ref3,
key = {bbb},
Title = {\href{http://ref3.com}{bbb}}
}
\end{filecontents*}
\documentclass{article}
\usepackage{hyperref}
\begin{document}
\nocite{*}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}