我正在使用 sharelatex 进行文档工作。我正在使用 biblatex 进行参考部分。添加参考时,我使用的所有 URL 都在开头引用。我希望将这些 URL 放在参考部分的末尾。
例如
- 第1条,
- 第2条, 3.URL 4.URL
以下是我正在使用的代码。
\usepackage[backend=bibtex,style=numeric,citestyle=numeric-comp]{biblatex}
\addbibresource{references.bib}
@article{dt3,
author = {Leo.},
title = {forests.},
journaltitle = {45.1},
year = {2003},
%volume = {911},
%number = {14},
pages = {5-32},
%doi = {http://dx.doi.org/10.1002/andp.19053221004}
}
@online{stack,
author = {},
title = {},
year = {},
url = {http://stats.stackexchange.com/questions/111968/random-forest-how-to-handle-overfitting},
}
我是这个平台的新手,如能提供任何帮助我将非常感激。
答案1
我建议将参考书目分开:一个\printbibliography
用于非@online
来源,另一个用于@online
。分开的参考书目可以更清楚地说明为什么编号与通常的方案不同。
defernumbers=true
如果您使用数字样式,请不要忘记该选项。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=bibtex, style=numeric-comp, defernumbers=true]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{appleby,
author = {Humphrey Appleby},
title = {On the Importance of the Civil Service},
date = {1980},
}
@online{elk,
author = {Anne Elk},
title = {A Theory on Brontosauruses},
date = {1972},
url = {http://example.edu/~elk/bronto.pdf},
urldate = {2018-09-22},
}
@article{hacker,
author = {James Hacker},
title = {On Government},
journal = {Government and Governing},
volume = {123},
number = {4},
pages = {109-123},
date = {1981},
}
@online{weisel,
author = {Frank Weisel},
title = {It Takes Two to Quango},
date = {1980},
url = {http://example.com/~weisel/quango.pdf},
urldate = {2018-09-22},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
\cite{appleby,elk,hacker,weisel}
\printbibliography[nottype=online]
\printbibliography[type=online, title={Online Sources}]
\end{document}