% bibliography
\RequirePackage[backend=bibtex,bibencoding=utf8]{biblatex}
%\ExecuteBibliographyOptions{backref=false,backrefstyle=three+,url=true,urldate=comp,abbreviate=false,maxnames=20}
\DeclareBibliographyCategory{cited}
\let\defaultcite\cite\renewcommand*\cite[2][]{\addtocategory{cited}{#2}\defaultcite[#1]{#2}}
\let\defaulttextcite\textcite\renewcommand*\textcite[2][]{\addtocategory{cited}{#2}\defaulttextcite[#1]{#2}}
\setcounter{biburllcpenalty}{7000}
\setcounter{biburlucpenalty}{8000}
\AfterPackage{biblatex}{
\PreventPackageFromLoading[\errmessage{You tried to load the cite package that is not compatible with biblatex.}]{cite}
}`here
\documentclass{scrbook}
\usepackage[hidelinks]{hyperref}
\newcommand\bcor{12mm} % <= Bindungskorrektur für Druckversion
\usepackage{osm-thesis}
\usepackage{longtable}
\usepackage{pgfplots}
\begin{document}
\selectlanguage{english}
\pagenumbering{roman}
\include{content/titlepage}
\ifisbook\pagestyle{plain}\cleardoubleemptypage \include{content/disclaimer}\fi
\ifisbook\cleardoubleemptypage\fi\include{content/abstract}
\tableofcontents
\pagenumbering{arabic}
\listoftables
\listoffigures
\pagestyle{headings}
\include{content/chapter1}
\appendix\include{content/appendix} % example
\onecolumn{
\ifisbook\cleardoubleemptypage\fi
\phantomsection\addcontentsline{toc}{chapter}{\refname}
\printbibliography[category=cited, title={References}]}
\end{document}
我正在使用文档类 scrbook,我发现我的引用在最终编译的 pdf 中被随机调用,即使我添加它们并在文本中按顺序调用它们。如何使它们从 [1] 逐步显示到 [150]?
My text: e.g, (....bring societies closer~\cite{fb})
我的.bib 文件:
@misc{fb,
author = {Facebook Inc.},
title = {{Facebook Company Info}},
howpublished = "\url{https://about.fb.com/company-info/}",
year = {2021},
note = "[Online; accessed 21-Jan-2021]"
}
答案1
您将获得按引用顺序排序的数字参考书目sorting=none
,因此请将其添加到您的 biblatex 调用的选项中。
\RequirePackage[backend=bibtex,bibencoding=utf8,sorting=none]{biblatex}
附注:bibencoding=utf8
不需要,通常最好使用 biber 作为后端,因为 bibtex 后端没有提供各种功能。