在我的论文中,我需要对参考文献进行排序,这样,虽然所有内容都会按其出现的顺序排序,但 URL 链接将排在最后。
如何使用.bst 文件?
其实不是。例如我需要一条围兜,如下:
[1] 文章 [2] 文章 [3] 网址
即使网址位于文本中的文章之前。
答案1
您可以使用 biblatex/biber 的类别轻松完成此操作。
\documentclass{scrartcl}
% some bib entries for test purposes:
\begin{filecontents}{bibfile.bib}
@ARTICLE{art1,
TITLE = {Test 1},
AUTHOR = {Doe, John},
JOURNAL = {Journal of unreproducible Results},
YEAR = {2015},
}
@ARTICLE{art2,
TITLE = {Test 2},
AUTHOR = {Doe, Jane},
JOURNAL = {Journal of unreproducible Results},
YEAR = {2015},
}
@ONLINE{web1,
TITLE = {Google},
URL = {www.google.com},
}
@ONLINE{web2,
TITLE = {Wikipedia},
URL = {en.wikipedia.org},
}
\end{filecontents}
% sorting = none means same order as the appearance in the document
% biber is the modern backend for biblatex, replacement for bibtex
\usepackage[backend=biber, sorting=none]{biblatex}
\addbibresource{bibfile.bib}
% create a new category for web sources
\DeclareBibliographyCategory{web}
% add the web entries to the category
\addtocategory{web}{web1,web2}
\begin{document}
\section{Test}
See \cite{art1}, \cite{web1}, \cite{art2}, and \cite{web2}!
% one bibliography for the non-web soruces
\printbibliography[notcategory=web, title={Print References}]
% and another one for the websources
\printbibliography[category=web, title={Internet References}]
\end{document}
使用latex document.tex
、进行编译biber document.bcf
,latex document.tex
其中 latex 是您选择的编译器。
结果: