我有一个 BibLaTeX 数据库,它设置为按alphabetic
样式打印。结果会显示所需的字符,但格式却不是所需的格式。我希望将这些键(在参考书目和每个引文中显示为枚举项)排版为\scshape
。我该如何实现?
\documentclass{scrartcl}
\usepackage[backend=biber,style=alphabetic,maxbibnames=1,maxcitenames=1,defernumbers,%
doi=false,isbn=false,clearlang=false,backref=false]{biblatex}
\begin{filecontents}{bib.bib}
@ONLINE{text:source,
author={B. Obby},
title={Sources today},
url={http://www.example.com},
urldate={2017-02-20},}
\end{filecontents}
\bibliography{bib}
\nocite{*}
\begin{document}
Text with citation: \autocite{text:source}
\printbibliography
\end{document}
答案1
更改字段格式。
\documentclass{scrartcl}
\usepackage[backend=biber,style=alphabetic,maxbibnames=1,maxcitenames=1,defernumbers,%
doi=false,isbn=false,clearlang=false,backref=false]{biblatex}
\addbibresource{biblatex-examples.bib}
\DeclareFieldFormat{labelalpha}{\textsc{#1}}
\begin{document}
Text with citation: \autocite{herrmann}
\printbibliography
\end{document}