bibtex classifica em ordem alfabética com href

bibtex classifica em ordem alfabética com href

Eu tenho o seguinte em meu arquivo reference.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}}
}

Como posso classificar a bibliografia no bibtex da seguinte forma?

[1] aaa
[2] bbb
[3] ccc

Responder1

Você pode adicionar um keycampo usado para classificação:

@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}}
}

Aqui está um exemplo completo, filecontents*apenas para torná-lo independente.

\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}

insira a descrição da imagem aqui

informação relacionada