如何将引用样式 \parencite 从方括号更改为圆括号?

如何将引用样式 \parencite 从方括号更改为圆括号?

这就是我正在使用的:

\documentclass[12pt]{scrartcl} 
  \usepackage[hidelinks]{hyperref}
  \usepackage[backend=bibtex, 
  citestyle=authoryear-icomp,
    autocite=footnote,
    maxcitenames=3,
    mincitenames=1,
    maxbibnames=100,
    firstinits=true,
    % natbib=true,
    sorting=nyvt]{biblatex}
  \bibliography{library}
          \usepackage{booktabs}

    \usepackage{amsmath}
    \usepackage{setspace}
    \usepackage{graphics}
    \usepackage[labelfont=bf,format=plain,parindent=1em]{caption}
    \usepackage{longtable}
    \usepackage{tabularx}
    \usepackage{lscape}
    \usepackage{float}
    \usepackage{siunitx}
    \setkomafont{title}{\normalfont}
    \renewcommand{\thesection}{\Roman{section}} 
    \renewcommand{\thesubsection}{\Alph{subsection}}
    \linespread{1.25}
 \DeclareNameAlias{sortname}{last-first}
  % always last first
  \DeclareNameAlias{default}{last-first}

  \DeclareFieldFormat{title}{#1}
    \DeclareFieldFormat
    [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
    {title}{#1}
  \DeclareFieldFormat{journaltitle}{#1}
  \renewbibmacro*{cite:labelyear+extrayear}{%
    \iffieldundef{labelyear}
    {}
    {\printtext[bibhyperref]{%
      \printtext[parens]{% 
        \printfield{labelyear}%
        \printfield{extrayear}}}}}

  \renewbibmacro*{date+extrayear}{%
    \iffieldundef{\thefield{datelabelsource}year}
    {}
    {%\printtext[parens]{%
        \setunit{\addcomma\space}%
      \iffieldsequal{year}{\thefield{datelabelsource}year}
      {\printdateextralabel}%
      {\printfield{labelyear}%
        \printfield{extrayear}}}}%}%

    \renewbibmacro*{publisher+location+date}{%
      %
      \printlist{publisher}%
      \setunit*{\addcomma\space}%
      %\printlist{publisher}% 
        %\setunit*{\addperiod\space}% 
        %
      \printlist{location}%
      \setunit*{\addcomma\space}
      \usebibmacro{date}%
      \newunit}

  \renewbibmacro*{institution+location+date}{%
    \printlist{institution}%
    \setunit*{\addcomma\space}%
    \printlist{location}%
    \setunit*{\addcomma\space}
    \usebibmacro{date}%
    \newunit}
  \renewbibmacro*{organization+location+date}{%
    \printlist{organization}%
    \setunit*{\addcomma\space}%
    \printlist{location}%
    \setunit*{\addcomma\space}
    \usebibmacro{date}%
    \newunit}

  \renewbibmacro{in:}{%
    \ifentrytype{article}{}{\printtext{\bibstring{in}\intitlepunct}}}

  \renewbibmacro*{volume+number+eid}{%
    \printfield{volume}%
    \setunit*{\addspace}%
    \printfield[parens]{number}%
    \setunit{\addcomma\space}%
    \printfield{eid}}

    \begin{document}

    \cite{x}
    \parencite{y} 

    \end{document}

在文本中,当我使用时它看起来没问题cite,即它看起来像'......作者(年份)说......'或'......作者等人。(年份)说......'

但是,现在我想用以下格式在括号内引用:“...(作者等,1985)...”我能以某种方式做到这一点吗?

当我使用 cite 时,它​​看起来像'...(Author et al. (1985))...',而当我使用\parencite它时看起来像 (Author et al., [1985]) - 所以这里不需要方括号。

编辑:请关闭。请在此处跟进主题: 如何使用 biblatex 以芝加哥风格引用

我确实创建了一个新帐户,这很愚蠢。我以为我无法在这里使用我的其他 tex 帐户/一开始我无法发帖。抱歉。

相关内容