![强制书目排序](https://linux22.com/image/273786/%E5%BC%BA%E5%88%B6%E4%B9%A6%E7%9B%AE%E6%8E%92%E5%BA%8F.png)
我有一个包含网站的参考书目。我想按字母顺序排序。因此我使用了简单的样式,效果很好。问题是网站不如其他参考资料重要,我想把它们放在最后。
可以强制这么做吗?
以下是 BibTex 文件的一部分:
@Misc{wikianglais,
title = {\url{http://www.wikipedia.org/wiki/Blackjack}},
month = {mai},
year = {2013}
}
@Book{Thorp,
author = {Edward O. Thorp},
ALTeditor = {},
title = {Beat the dealer},
publisher = {Vintage Books Edition},
year = {1966},
month = {février}
}
@Book{Braun,
author = {Julian H. Braun},
ALTeditor = {•},
title = {How to play winning Blackjack},
publisher = {Data House Pub. Co},
year = {1980}
}
我希望得到的顺序是:Braun、Thorp,然后是维基百科参考,但实际的顺序是:维基百科参考、Braun、Thorp。
答案1
这不是一个合适的解决方案,但它有效......
添加“假”key
字段
key = {zzzz}
在您的所有@Misc
条目中。
这样,该key
字段就用于排序(zzzz
我想它位于所有其他条目之后),但它不会打印在参考书目中。顺便说一句,我不知道任何ALTeditor
字段。
因此,将您的参考书目 MWE 更改为
@Misc{wikianglais,
key = {zzzz},
title = {\url{http://www.wikipedia.org/wiki/Blackjack}},
month = {mai},
year = {2013}
}
@Book{Thorp,
author = {Edward O. Thorp},
ALTeditor = {},
title = {Beat the dealer},
publisher = {Vintage Books Edition},
year = {1966},
month = {février}
}
@Book{Braun,
author = {Julian H. Braun},
ALTeditor = {•},
title = {How to play winning Blackjack},
publisher = {Data House Pub. Co},
year = {1980}
}
就足够了。
MWE 只是为了测试它:
\documentclass{report}
\usepackage[colorlinks]{hyperref}
\begin{filecontents}{\jobname.bib}
@Misc{wikianglais,
key = {zzzz},
title = {\url{http://www.wikipedia.org/wiki/Blackjack}},
month = {mai},
year = {2013}
}
@Book{Thorp,
author = {Edward O. Thorp},
ALTeditor = {},
title = {Beat the dealer},
publisher = {Vintage Books Edition},
year = {1966},
month = {février}
}
@Book{Braun,
author = {Julian H. Braun},
ALTeditor = {•},
title = {How to play winning Blackjack},
publisher = {Data House Pub. Co},
year = {1980}
}
\end{filecontents}
\begin{document}
\cite{wikianglais} \cite{Thorp} \cite{Braun}
\bibliographystyle{plain}
\bibliography{\jobname}
\end{document}