请考虑以下参考条目:
@article{hurwicz1,
title = "Optimality and informational efficiency in resource allocation processes",
author = "Leonid Hurwicz",
journal = "Mathematical Methods in the Social Sciences",
year = "1960",
publisher = "Stanford University Press",
editor = "Kenneth J. Arrow and S. Karlin and P. Suppes",
pages = "27 -- 46",
url = "https://doi.org/10.1017%2Fcbo9780511752940.014"
}
此外,考虑这个 MWE:
\documentclass[]{scrartcl}
\usepackage[isbn=false,giveninits=true,uniquename=init,style=authoryear-comp,backend=biber,sorting=ynt,natbib,maxbibnames=99,maxcitenames=3,sortcites=true,language=british]{biblatex} % To get fancy bibliography.
% BIBLIOGRAPHY SETTINGS
\addbibresource{References.bib}
\setlength\bibitemsep{3\itemsep}
\AtBeginBibliography{
\renewcommand*{\mkbibnamefamily}[1]{\textsc{#1}}
\renewcommand*{\mkbibnamegiven}[1]{\textsc{#1}}
\renewcommand*{\mkbibnameprefix}[1]{\textsc{#1}}
\renewcommand*{\mkbibnamesuffix}[1]{\textsc{#1}}
}
\DeclareNameAlias{author}{family-given}
\DeclareDelimFormat[cbx@textcite]{nameyeardelim}{\addspace}
\renewcommand*{\bibfont}{\small}
\renewbibmacro{in:}{}%
\renewcommand*{\finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\&\space}
\AtBeginBibliography{%
\renewcommand*{\finalnamedelim}{%
\ifnumgreater{\value{liststop}}{2}{\finalandcomma}{}%
\addspace\&\space}%
}
\DefineBibliographyStrings{english}{
phdthesis = {PhD\addabbrvspace Thesis}
}
\renewcommand*{\multicitedelim}{\addcomma\space}
\begin{document}
\cite{hurwicz1}
\raggedright
\renewcommand\arraystretch{1}
\emergencystretch=1em
\begin{refcontext}[sorting=nyt]
\printbibliography
\end{refcontext}
\end{document}
正如您在输出中看到的,参考书目没有编号。我不知道我的 MWE 中的哪一点导致了这种情况。
有人能帮助我实现[1]
参考书目条目之前的功能吗?
非常感谢大家抽出时间。
编辑:虽然 Manuel 的答案确实有效,但它会更改Hurwicz, 1960
为[1]
。我希望在参考文献中使用数字,但我希望保留Hurwicz, 1960
而不是[1]
。关于如何实现这一点有什么线索吗?
答案1
- 改成。
\usepackage[isbn=false,giveninits=true,uniquename=init,style=authoryear-comp,backend=biber,sorting=ynt,natbib,maxbibnames=99,maxcitenames=3,sortcites=true,language=british]{biblatex}
\usepackage[isbn=false,giveninits=true,uniquename=init,style=numeric-comp,backend=biber,sorting=ynt,natbib,maxbibnames=99,maxcitenames=3,sortcites=true,language=british]{biblatex}
- 选项
style
已改变。 - 请阅读并关注如何编写 MWEB(带有参考书目的最小工作示例)?以便解答未来相关问题。