我在用\documentclass{amsart}
。
我想在参考书目中引用仅包含作者姓氏首字母的参考文献。例如,如果作者是 Jaule Calo 和 Micke Kikdi,那么我想在文中以 [CK] 引用他们。
我已经尝试过\bibliographystyle{apalike}
,,\bibliographystyle{plain}
但\bibliographystyle{alpha}
这些都不能满足我的要求。\bibliographystyle{alpha}
还给出了我不想要的年份。
答案1
样式alphanum
(https://www.ctan.org/pkg/alphanum-bst,https://www.ctan.org/pkg/alphanumb) 接近你想要的。由于其(不清楚?)许可证,它无法在 MikTeX 或 TeX live 中使用,你必须直接从 CTAN 下载https://www.ctan.org/tex-archive/biblio/bibtex/contrib/misc/alphanum.bst
\documentclass{amsart}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{elk,
author = {Anne Elk},
title = {Towards a Unified Theory on Brontosauruses},
year = {1977},
publisher = {Monthy Press},
address = {London},
}
@book{elkuthor,
author = {Anne Elk and Anne Uthor},
title = {Towards a Unified Theory on Emela-ntoukas},
year = {1980},
publisher = {Monthy Press},
address = {London},
}
\end{filecontents}
\begin{document}
\cite{elk,elkuthor}
\bibliographystyle{alphanum}
\bibliography{\jobname}
\end{document}
我建议你使用biblatex
Biber:要切换到 biblatex 该怎么做?,biblatex 简介(适合初学者),bibtex 与 biber 以及 biblatex 与 natbib 的比较也Biblatex 与 Biber:配置我的编辑器以避免未定义的引用
您可以根据需要修改标签
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[T1]{fontenc}
\usepackage[british]{babel}
\usepackage[style=alphabetic, backend=biber]{biblatex}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@book{elk,
author = {Anne Elk},
title = {Towards a Unified Theory on Brontosauruses},
year = {1977},
publisher = {Monthy Press},
address = {London},
}
@book{elkuthor,
author = {Anne Elk and Anne Uthor},
title = {Towards a Unified Theory on Emela-ntoukas},
year = {1980},
publisher = {Monthy Press},
address = {London},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\DeclareLabelalphaTemplate{
\labelelement{
\field[final]{shorthand}
\field{label}
\field[strwidth=1,strside=left]{labelname}
}
}
\DeclareFieldFormat{extraalpha}{#1}%
\begin{document}
\cite{elk,elkuthor}
\printbibliography
\end{document}
如果\DeclareFieldFormat{extraalpha}{#1}%
有两部“Elk”的作品,您将获得消歧义数字,即“E1”和“E2”。如果您省略该行,您将获得字母,即“Ea”、“Eb”。