我需要尽可能压缩参考文献。假设有:
J. Chen and X. Ran. “Deep Learning With Edge Computing: A Review.”
In: Proc. IEEE 107.8 (2019), pp. 1655–1674.
我想获得
CR2019 “Deep Learning With Edge Computing: A Review.”
In: Proc. IEEE 107.8 (2019), pp. 1655–1674.
有没有办法使用 biblatex 来实现这一点?
答案1
编辑:xstring
根据 moewe 的评论删除了软件包
这将产生您想要的格式:
\documentclass{article}
\usepackage{biblatex}
\begin{filecontents}{references.bib}
@article{chen2019,
author={J. Chen and X. Ran},
title={Deep Learning With Edge Computing: A Review.},
journal={Proc. IEEE},
volume={107},
number={8},
year={2019},
pages={1655--1674}
}
\end{filecontents}
\addbibresource{references.bib}
\DeclareNameFormat{author}{%
\def\bibinitperiod{}%
\namepartfamilyi%
\ifthenelse{\value{listcount}=\value{liststop}}%
{\thefield{year}}{}% append year after last author
}
% only a space between author and title, no comma or period
\DeclareDelimFormat[bib]{nametitledelim}{\space}
\begin{document}
\cite{chen2019}
\printbibliography
\end{document}
答案2
我不太清楚这方面的更广泛的背景(引用风格和应用)是什么,但你也可以选择一种alphabetic
风格并隐藏参考书目中的名称。
\documentclass{article}
\usepackage[style=alphabetic]{biblatex}
\DeclareLabelalphaTemplate{
\labelelement{
\field[final]{shorthand}
\field{label}
\field[strwidth=1,strside=left]{labelname}
}
\labelelement{
\field[strwidth=2,strside=right]{year}
}
}
\renewbibmacro{author}{}
\renewbibmacro{editor}{}
\renewbibmacro{editor+others}{}
\renewbibmacro{translator}{}
\renewbibmacro{translator+others}{}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,worman,geer,nussbaum,companion}
\printbibliography
\end{document}
如果您需要基于某种numeric
风格,您仍然可以尝试使用字母标签。
\documentclass{article}
\usepackage[style=numeric, labelalpha]{biblatex}
\DeclareLabelalphaTemplate{
\labelelement{
\field[final]{shorthand}
\field{label}
\field[strwidth=1,strside=left]{labelname}
}
\labelelement{
\field[strwidth=2,strside=right]{year}
}
}
\renewbibmacro{author}{\printfield{labelalpha}}
\renewbibmacro{editor}{\printfield{labelalpha}}
\renewbibmacro{editor+others}{\printfield{labelalpha}}
\renewbibmacro{translator}{\printfield{labelalpha}}
\renewbibmacro{translator+others}{\printfield{labelalpha}}
\DeclareDelimFormat[bib,biblist]{nametitledelim}{\addspace}
\addbibresource{biblatex-examples.bib}
\begin{document}
\cite{sigfridsson,worman,geer,nussbaum,companion}
\printbibliography
\end{document}