
我定制了我的圍脖標籤,僅顯示第一作者的前三個字母和全年,這需要maxalphanames=1
.但我想對實際的圍兜條目使用 IEEE 風格。
但是,不能maxalphanames =
與以下一起使用style = ieee-alphabetic
。你知道有什麼解決方法嗎?
\documentclass[ngerman]{article}
\usepackage[ngerman]{babel}
\usepackage{filecontents}
\begin{filecontents}{reference.bib}
@article{author1,
author = "George Orwell and Aldous Huxley and William Shakespeare and Oscar Wilde",
title = "1984",
year = "1948",
journal = "Books about big brothers",
volume = "5",
number = "42",
pages = "100--111"
}
\end{filecontents}
\RequirePackage[backend=biber,
style=alphabetic,%
% style=ieee-alphabetic, % does not work with maxalphanames
maxnames=99,
maxalphanames=1,
firstinits=true,
defernumbers=true,
]{biblatex}
\renewcommand*{\labelalphaothers}{}
% Label with full year
\DeclareLabelalphaTemplate{
\labelelement{
\field[final]{shorthand}
\field{label}
\field[strwidth=3,strside=left,ifnames=1]{labelname}
\field[strwidth=1,strside=left]{labelname}
}
\labelelement{
\field{year}
}
}
\addbibresource{reference.bib}
\begin{document}
\cite{author1}. \\
\printbibliography
\end{document}
所以我想結合一下:
包括正確的翻譯體積和數位, 有了這個:
答案1
biblatex-ieee
與ieee-alphabetic
完美配合maxalphanames
。只是它設定了maxalphanames = 4,
和minalphanames = 3,
。由於我們必須始終有maxalphanames
>= minalphanames
,所以我們必須設置
minalphanames=1, maxalphanames=1,
一切正常。
但如果它只是您想要的volume
和的格式,您可以使用number
ieee-alphabetic
\DeclareFieldFormat[article,periodical]{number}{\bibstring{number}\addnbspace#1}
\DeclareFieldFormat[article,periodical]{volume}{\bibstring{jourvol}\addnbspace#1}
\renewbibmacro*{volume+number+eid}{%
\printfield{volume}%
\setunit{\addcomma\space}%
\printfield{number}%
\setunit{\addcomma\space}%
\printfield{eid}%
}
在標準風格中alphabetic
。