你好,我想将引用链接中的作者和年份的方括号更改为圆括号,我使用以下代码:
\usepackage{csquotes}
\usepackage[
backend=biber,
style=ext-authoryear,
backref=true,
doi=false,
isbn=false,
url=false,
articlein=false,
dashed=false,
introcite=plain,
]{biblatex}
\usepackage{hyperref}
\hypersetup{colorlinks,linkcolor={blue},citecolor={blue},urlcolor={red}}
\DeclareFieldFormat{bbx@introcite}{\mkbibbrackets{#1}}
\DeclareDelimFormat[bbx@introcite]{nameyeardelim}{\addcomma\space}
\UndeclareInnerCiteDelims{bbx@introcite}
\renewcommand*{\introcitepunct}{\quad}
\setlength\bibitemsep{1.5\itemsep}
\DeclareFieldFormat[article]{title}{#1}
\DeclareOuterCiteDelims{cite}{\bibopenbracket}{\bibclosebracket}
\DeclareFieldFormat{linkallcite}{%
\DeclareFieldFormat{bibhyperref}{##1}%
\bibhyperref{#1}%
}
\AtIntrocite{\DeclareFieldFormat{linkallcite}{#1}}
\letbibmacro{cite:orig}{cite}
\renewbibmacro{cite}{%
\printtext[linkallcite]{%
\usebibmacro{cite:orig}}}
\DeclareDelimFormat{nameyeardelim}{\addcomma\space}
\DefineBibliographyStrings{german}{
andothers = {{et\,al\adddot}},
backrefpage = {zitiert auf Seite:},
backrefpages = {zitiert auf Seiten:},
}
\addbibresource{biblio.bib}
我得到的输出是:[Lutkepohl,2005] 但我想要圆括号 (Lutkepohl,2005)。我应该改变什么?提前谢谢您!
答案1
这对你有用吗?
\renewcommand{\bibopenbracket}{(}
\renewcommand{\bibclosebracket}{)}