在我的参考书目中,卷号和期号目前打印为“volume.issue”
我想将其更改为“volume(issue)”,例如“35(5)”。
這與有關嗎\renewbibmacro
?
答案1
是的 - 但也可以使用\xpatchbibmacro
(从xpatch
包)进行部分重新定义。
\documentclass{article}
\usepackage{biblatex}
\usepackage{xpatch}
% No dot before number of articles
\xpatchbibmacro{volume+number+eid}{%
\setunit*{\adddot}%
}{%
}{}{}
% Number of articles in parentheses
\DeclareFieldFormat[article]{number}{\mkbibparens{#1}}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Bli74,
author = {Blinder, Alan S.},
year = {1974},
title = {The economics of brushing teeth},
shorttitle = {Brushing teeth},
journaltitle = {Journal of Political Economy},
volume = {82},
number = {4},
pages = {887--891},
}
\end{filecontents}
\addbibresource{\jobname.bib}
\nocite{*}
\begin{document}
\printbibliography
\end{document}
无耻的推销:自定义 biblatex 样式的指南