
В моем файле 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}