我遇到了 biblatex 引用顺序的问题。
使用此配置:
\documentclass {article}
\usepackage[brazil]{babel}
\usepackage[utf8]{inputenc}
\hyphenation{es-ta-bi-li-da-de}
\usepackage{setspace}
\singlespacing
\usepackage[natbib=true,style=numeric]{biblatex}
\addbibresource{frameworks.bib}
作为 frameworks.bib,这是:
@Article{JONHSON88,
author = {Ralph Johnson, Brian Foote},
title = {Designin Reusable Classes},
journal = {Journal of Object-Oriented Programming SIGS},
year = {1988},
key = {Johnson:88},
volume = {1},
number = {5},
pages = {22-35},
month = jun
}
@book{UML-F:00,
author = {Fontoura M., Pree W., Rumpe B.},
editor = {Addison-Wesley},
title = {The UML Profile for Framework Architectures},
year = {2000},
}
PDF 生成的文本如下:
Something about something[4], and moo foo other children[1].
此引文[4]
是所有文本中的第一个。我该如何正确排序[1]...[2] ...
?
答案1
您可以使用该sorting=none
选项来实现这一点。这是一个完全正常工作的 MWE:
\documentclass{article}
\usepackage[
%backend=biber,
natbib=true,
style=numeric,
sorting=none
]{biblatex}
\addbibresource{biblatex-examples.bib}
\begin{document}
Aksin~\cite{aksin} says one in his article.
Aristotle~\cite{aristotle:poetics} says two in his book.
Angenendt~\cite{angenendt} says three in his article.
And Augustine \cite{augustine} says four in his book.
\printbibliography
\end{document}
根据第 3.1.2 节biblatex 文档:
biblatex
知道各种排序方案,包括:
nty
按名称、标题、年份排序。nyt
按名称、年份、标题排序。nyvt
按名称、年份、卷、标题排序。anyt
按字母标签、名称、年份、标题排序。anyvt
按字母标签、名称、年份、卷、标题排序。ynt
按年份、名称、标题排序。ydnt
按年份(降序)、名称、标题排序。none
根本不排序。所有条目均按引用顺序处理。debug
按输入键排序。这仅用于调试。
如果排序仍然失败,请尝试backend=biber
,它更稳定,尤其是对于 UTF8 .bib 文件。您
无需调用(pdf)latex
, bibtex
, (pdf)latex
,(pdf)latex
而是可以调用(pdf)latex
, biber
, (pdf)latex
。