以下是我的乳胶文件中的内容:
\usepackage[backend=biber, style=alphabetic, bibstyle=ieee-alphabetic, sortcites=true,
maxbibnames = 99, maxalphanames = 8, maxcitenames = 6,
minalphanames = 6, minnames = 4,
]{biblatex}
以下是我的 .bib 文件中的内容:
@article {ipv10,
AUTHOR = {Ioana, Adrian and Popa, Sorin and Vaes, Stefaan},
TITLE = {A class of superrigid group von {N}eumann algebras},
JOURNAL = {Annals of Mathematics},
VOLUME = {178},
YEAR = {2013},
NUMBER = {1},
PAGES = {231--286}, }
当我在文件中引用它时.tex
,我得到了 [IPV13]。但是,我希望 [IPV10] 出现。这可能吗?如果可以,那么获取它的命令是什么?
答案1
在alphabetic
样式中,通常从(或)字段和出版物/biblatex
计算引用标签。author
editor
date
year
对于显示的条目,您的配置确实会产生
IPV13
条目键ipv10
几乎从不用于生成引文或参考书目中的打印数据。它应该是条目的纯内部 ID。因此,如果您想在数据中没有“10”的地方强制使用“10”,则需要使用类似的东西shorthand
来完全覆盖生成的标签。请注意,您必须提供整个引文标签(因此您必须自己计算“IPV”部分),shorthand
即使您使用数字样式也会使用它。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\usepackage[backend=biber,
style=ieee-alphabetic,
sortcites=true,
maxbibnames = 99, maxalphanames = 8, maxcitenames = 6,
minalphanames = 6, minnames = 4,
]{biblatex}
\begin{filecontents}{\jobname.bib}
@article{ipv10,
AUTHOR = {Ioana, Adrian and Popa, Sorin and Vaes, Stefaan},
TITLE = {A Class of Superrigid Group von {Neumann} Algebras},
JOURNAL = {Annals of Mathematics},
VOLUME = {178},
YEAR = {2013},
NUMBER = {1},
PAGES = {231-286},
shorthand = {IPV10},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson,ipv10}
\printbibliography
\end{document}
或者,您可以使用设置稍微复杂的机制来使用名为 的字段覆盖标签的日期位realdate
(labeldate
本来是显而易见的选择,但该字段已经存在,但含义不同)。优点是,shorthand
在这种情况下您不使用全部覆盖字段。
\documentclass[british]{article}
\usepackage[T1]{fontenc}
\usepackage{babel}
\usepackage{csquotes}
\begin{filecontents}{realdate.dbx}
\DeclareDatamodelEntrytypes{realdate}
\DeclareDatamodelFields[type=field, datatype=date, skipout]{
realdate}
\end{filecontents}
\usepackage[backend=biber,
style=ieee-alphabetic,
datamodel=realdate,
sortcites=true,
maxbibnames=99, maxalphanames=8, maxcitenames=6,
minalphanames=6, minnames=4,
]{biblatex}
\DeclareLabelalphaTemplate{
\labelelement{
\field[final]{shorthand}
\field{label}
\field[strwidth=3,strside=left,ifnames=1]{labelname}
\field[strwidth=1,strside=left]{labelname}
}
\labelelement{
\field[strwidth=2,strside=right]{realyear}
\field[strwidth=2,strside=right]{year}
}
}
\begin{filecontents}{\jobname.bib}
@article{ipv10,
AUTHOR = {Ioana, Adrian and Popa, Sorin and Vaes, Stefaan},
TITLE = {A Class of Superrigid Group von {Neumann} Algebras},
JOURNAL = {Annals of Mathematics},
VOLUME = {178},
YEAR = {2013},
NUMBER = {1},
PAGES = {231-286},
realdate = {2010},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\addbibresource{biblatex-examples.bib}
\begin{document}
Lorem \autocite{sigfridsson,ipv10}
\printbibliography
\end{document}
缺点是你必须使用.dbx
文件。