bibtex を href でアルファベット順に並べ替える

bibtex を href でアルファベット順に並べ替える

私の 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}

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

関連情報