我在脚注中引用了一些内容,并希望使用编号样式在参考书目中引用其他内容。我必须使用biblatex-gost
样式,它提供了该功能。
但我遇到了问题:书目计数器不是从 1 开始的。我尝试使用找到的解决方案重置它这里。但它不起作用。两者都不行
\usepackage[
...
defernumbers=true,
...
]{biblatex}
...
\printbibliography[resetnumbers=true, notkeyword=footcited]
作品。
以下是 MWE:
\documentclass{article}
\usepackage{fontspec} % enagles loading of OpenType fonts
\usepackage{polyglossia} % support for languages
% fonts:
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes
\setmainfont{DejaVu Sans}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
% Russian/English document:
\usepackage{xecyr}
\newfontfamily\cyrillicfont{DejaVu Sans}
\setmainlanguage{russian} % \setdefaultlanguage{russian} is obsolete and not needed
\setotherlanguage[variant=american]{english}
% bibliography:
\usepackage[
backend=biber,
minnames=3,
citestyle=gost-footnote-min,
bibstyle=gost-numeric-min,
url=false,
sorting=none,
language=auto,
babel=other,
]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
keywords = {footcited},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Text\footcite{A01}.
\nocite{B02, C03}
% bibliography:
\printbibliography[notkeyword=footcited]
\end{document}
结果:
编辑:
没有俄语,没有biblatex-gost
MWE resetnumbers
:
\documentclass{article}
\usepackage{fontspec} % enagles loading of OpenType fonts
\usepackage{polyglossia} % support for languages
% fonts:
\defaultfontfeatures{Scale=MatchLowercase,Mapping=tex-text} % without this XeLaTeX won't turn "--" into dashes
\setmainfont{DejaVu Sans}
\setsansfont{DejaVu Sans}
\setmonofont{DejaVu Sans Mono}
\setmainlanguage{english} % \setdefaultlanguage{russian} is obsolete and not needed
% bibliography:
\usepackage[
backend=biber,
minnames=3,
url=false,
sorting=none,
language=auto,
babel=other,
defernumbers=true,
]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@misc{A01,
author = {Author, A.},
year = {2001},
title = {Alpha},
keywords = {footcited},
}
@misc{B02,
author = {Buthor, B.},
year = {2002},
title = {Bravo},
}
@misc{C03,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\begin{document}
Text\footcite{A01}.
\nocite{B02, C03}
% bibliography:
\printbibliography[resetnumbers=true, notkeyword=footcited]
\end{document}
结果: