书目和 Sitography 引用混淆

书目和 Sitography 引用混淆

我对 Latex 还很陌生,正在写论文,在写论文的过程中,我偶然发现了一个问题,就是我的引用不按顺序排列,我不介意它们是否按顺序排列,除非它们按顺序排列,但令人不安的问题是它们之间的数字混在一起了。我有单独的 bib 文件,并已将其导入到我的主文件中。我不知道它在这里是如何工作的,我猜就像分组一样,但我希望你明白我在问什么。我想拆分参考书目和站点目录,并且我希望除了 @online 引用之外,其他引用在所有其他引用编号后进行编号,如果有人能帮助我,那就太好了!

附言:我在线使用 Overleaf

%-EM-Stirring by HK-Moffatt
@article{hkmoffatt,
author = {Moffatt, Keith},
year = {1991},
month = {05},
pages = {1336-1343},
title = {Electromagnetic stirring},
volume = {3},
journal = {Physics of Fluids - PHYS FLUIDS},
doi = {10.1063/1.858062}
}
%Mattia.
@article{mattia,
author = {Guglielmi, Mattia},
year = {2017/18},
%month = {05},
pages = {126},
title = {Optimization of Pulsed Magnetic Field Application for Electromagnetic Stirring during the Continuous Casting},
 }
@online{totalmateria,
title = {Electromagnetic Stirring},
url = {https://www.totalmateria.com/page.aspxID=CheckArticle&site=kts&NM=411},
urldate = {2013-05-16},
}
\usepackage[backref=true]{biblatex}
\begin{document}
\section{Citation}
Citing from a paper:\cite{hkmoffatt} 
Citing from a website: \cite{totalmateria} 
Citing from a paper: \cite[p.~11]{mattia}
\addcontentsline{toc}{chapter}{\bibname}
\printbibliography[nottype=online, title=Bibliography]
\printbibliography[type=online, title=Sitography]
\end{document}

我希望先对参考书目进行编号,然后再开始站点目录。 在此处输入图片描述

答案1

如果您将缺少的行添加到示例中以便可以运行,它会发出警告

Package biblatex Warning: Split bibliography detected.
(biblatex)                Many simple split bibliography setups with
(biblatex)                non-overlapping bibliographies benefit from
(biblatex)                setting 'defernumbers=true'.
(biblatex)                See the documentation for details.
(biblatex)                This warning can be suppressed with
(biblatex)                '\BiblatexSplitbibDefernumbersWarningOff'.

不要忽略警告!如果你添加defernumbers=true,则输出为

在此处输入图片描述

\documentclass{article}
\usepackage[backref=true,defernumbers=true]{biblatex}
\addbibresource{zz.bib}
\begin{document}
\section{Citation}
Citing from a paper:\cite{hkmoffatt} 
Citing from a website: \cite{totalmateria} 
Citing from a paper: \cite[p.~11]{mattia}
\addcontentsline{toc}{chapter}{\bibname}
\printbibliography[nottype=online, title=Bibliography]
\printbibliography[type=online, title=Sitography]
\end{document}

相关内容