有没有办法使用具有特定样式的 BibLatex 来更改参考编号的外观?
我正在使用phys
样式,并希望参考编号显示在方括号中,而不是上标。这是我目前拥有的 MWE
\documentclass{article}
\usepackage[hidelinks]{hyperref}
\hypersetup{colorlinks=true,citecolor=blue,linkcolor=blue,urlcolor=blue,linktocpage=true}
\usepackage[giveninits=true,isbn=false,url=false,doi=false,hyperref=true,backend=biber, style=phys]{biblatex}
\addbibresource{sample.bib}
\begin{document}
Test \cite{PhysRevLett.128.051103}
\printbibliography
\end{document}
包含sample.bib
@article{PhysRevLett.128.051103,
title = {Bondi-Metzner-Sachs Group in Five Spacetime Dimensions},
author = {Fuentealba, Oscar and Henneaux, Marc and Matulich, Javier and Troessaert, C\'edric},
journal = {Phys. Rev. Lett.},
volume = {128},
issue = {5},
pages = {051103},
numpages = {5},
year = {2022},
month = {Feb},
publisher = {American Physical Society},
doi = {10.1103/PhysRevLett.128.051103},
url = {https://link.aps.org/doi/10.1103/PhysRevLett.128.051103}
}
输出结果如下:
除了上标参考编号之外,它是我希望实现的样式,包括期刊、期刊、页面和年份的超链接。
答案1
biblatex-phys
有一个名为的选项,您可以使用它在参考书目中biblabel
在上标数字(默认biblabel=superscript,
)或括号数字( )之间切换。biblabel=brackets,
\documentclass{article}
\usepackage[
backend=biber,
style=phys,
giveninits=true,
isbn=false,url=false,doi=false,
biblabel=brackets,
]{biblatex}
\usepackage[colorlinks]{hyperref}
\addbibresource{biblatex-examples.bib}
\begin{document}
Test \cite{sigfridsson}
\printbibliography
\end{document}