抑制初始内联引用 biblatex

抑制初始内联引用 biblatex

我正在尝试隐藏内联引文中的首字母。我使用的是 biblatex。我搜索了其他帖子,发现该设置对其他人uniquename=false有用uniquelist=false。但是,设置这些选项对我来说不起作用。我怎样才能让我的引文显示如下:

“一些文本(Anderson 1999)和更多文本(Armenta2008)”。

我的bib文件如下:

@ARTICLE{AnderssonS1999,
  author = {{Andersson, S.}},
  title = {Morphology of UV reflectance in a whistling-thrush: implications
    for the study of structural colour signalling in birds},
  journal = {Journal of Avian Biology},
  year = {1999},
  volume = {30:},
  pages = {193-204}
}

@ARTICLE{armenta2008,
  author = {{Armenta, J.K., Dunn, P.O. \& Whittingham, L.A.}},
  title = {{Effects of specimen age on plumage color}},
  journal = {The Auk},
  year = {2008},
  volume = {125:},
  pages = {803--808},
  file = {:Users/rossahmed/Library/Application Support/Mendeley Desktop/Downloaded/Armenta, Dunn, Whittin\textit{g\textit{}}ham - 2008 - Effects of specimen age on plumage color.pdf:pdf},
  publisher = {BioOne},
  url = {http://www.bioone.org/doi/abs/10.1525/auk.2008.07006}
}

我的.tex 文件如下:

\documentclass{article}
\usepackage[firstinits=true,style=authoryear-comp,natbib=true,doi=false,isbn=false,url=false,uniquename=false,uniquelist=false,sorting=none]{biblatex}



\addbibresource{test.bib}
\DeclareFieldFormat
  [article,inbook,incollection,inproceedings,patent,thesis,unpublished]
  {title}{#1\iSDot}

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

\renewcommand*{\nameyeardelim}{\addspace} % remove comma inline citations


\makeatletter
\ifcsundef{abx@macro@\detokenize{date+extrayear}}{%
  }{%
  \renewbibmacro*{date+extrayear}{%
    \iffieldundef{year}{%
      }{%
      \addperiod\space
      \printtext{\printdateextra}%
    }%
  }%
}
\makeatother


\DeclareFieldFormat[article]{pages}{#1}
\DeclareNameFormat[article,periodical,book,electronic]{author}{\mkbibbold{#1}}


\begin{document}

\title{}
\author{}
\date{date}
\maketitle

some text \parencite{AnderssonS1999} and more text \parencite{armenta2008}

\printbibliography

\end{document} 

答案1

示例条目中的作者列表bib用括号 ( ) 括起来{...}。此外,作者姓名未用 分隔and。这会阻止 BibTeX/biber 正确解析姓名。请参阅biblatex-examples.bib文档中的 以了解正确的bib文件格式。

@ARTICLE{AnderssonS1999,
  author = {Andersson, S.},
  ...
  volume = {30},
  ...
}

@ARTICLE{armenta2008,
  author = {Armenta, J.K. and Dunn, P.O. and Whittingham, L.A.},
  ...
  volume = {125},
  ...
}

条目bib应仅提供数据。大多数格式、分隔符和标点符号应使用 biblatex 处理。

相关内容