我在左侧的 JOURNALS 中使用了方括号。我只想删除方括号,但保留方括号内的内容 [此处为 Aut01、Aut02 等] 仅用于参考书目。
\documentclass{article}
\usepackage{fontspec}
\setmainfont{TeX Gyre Termes}
\usepackage{polyglossia}
\setmainlanguage{spanish}
\setotherlanguage{german}
%\usepackage[german]{babel}
\usepackage{csquotes}
\usepackage[backend=biber, citetracker=true, citestyle=alphabetic, bibstyle=ieee-alphabetic, sorting=ynt,sortcites=true]{biblatex}
\addbibresource{testcite.bib}
\usepackage{filecontents} \begin{filecontents}{testcite.bib}
@book{a01,
author = {Author, A.},
year = {2001},
title = {Alpha},
}
@book{a02,
author = {Author, A.},
year = {2002},
title = {Bravo},
}
@article{c01,
author = {Cuthor, C.},
year = {2003},
title = {Charlie},
}
@article{c02,
author = {Cuthor, C.},
year = {2004},
title = {Charlie},
}
@article{c03,
author = {Cuthor, C.},
year = {1978},
title = {Charlie},
}
@article{c04,
author = {Cuthor, C.},
year = {1981},
title = {Charlie},
}
@article{ac01,
author = {Cuthor, C. and Author, A.},
year = {1987},
title = {Charlie},
}
@article{ac02,
author = {Cuthor, C. and Author, A.},
year = {1973},
title = {Charlie},
}
@article{ac03,
author = {Cuthor, C. and Author, A.},
year = {1981},
title = {Charlie},
}
\end{filecontents}
\begin{document}
Refs. \cite{a01, a02, ac01, ac02, c01, c02, c03, c04, ac03}
\today
%\clearpage
\newrefcontext[sorting=nyt]
\selectlanguage{german}
\printbibliography[ heading=subbibliography,title={Journals}]
\endrefcontext
\end{document}
答案1
参考书目中的引用标签的格式由labelalphawidth
和shorthandwidth
格式控制(对于数字标签还有labelnumberwidth
)。
所以
\DeclareFieldFormat{labelalphawidth}{#1}
\DeclareFieldFormat{shorthandwidth}{#1}
应该这么做。
在引用中,括号要么是硬编码的(在宏中经常如此textcite
),要么由提供给的包装器命令提供\DeclareCiteCommand
。更改这些括号可能需要更多代码,尽管实际上并不困难。