从 biblatex 中的参考书目中删除“&”

从 biblatex 中的参考书目中删除“&”

我有以下文件:

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber, style=apa,natbib=true]{biblatex} 
\usepackage[english]{babel} 
\DeclareLanguageMapping{english}{english-apa}
\usepackage{hyperref}
\bibliography{\jobname.bib}
\ExecuteBibliographyOptions{doi=false,url=false, isbn=false}
\newbibmacro{string+doi}[1]{%
  \iffieldundef{doi}{#1}{\href{http://dx.doi.org/\thefield{doi}}{#1}}}
\DeclareFieldFormat{title}{\usebibmacro{string+doi}{\mkbibemph{#1}}}
\DeclareFieldFormat[article]{title}{\usebibmacro{string+doi}{#1}}
\DeclareFieldFormat{yearorunkyear}{%
  \ifthenelse{\iffieldequalstr{doubtfuldate}{true}}
    {\mkbibbrackets{ca\adddot\addspace#1}}
    {#1}}
\DeclareFieldFormat
  [article]
  {journaltitle}{{#1}}
\DeclareFieldFormat
  [article]
  {volume}{{(#1)}}

\begin{filecontents}{\jobname.bib}
@article{Yang2014,
annote = {The paper showed the importance of MIDAS or Mixed data sampling in studying the sentiment effect.},
author = {Yang, Chunpeng and Zhang, Rengui},
doi = {10.1080/00036846.2013.864041},
file = {:Users/Ahmed/Library/Application Support/Mendeley Desktop/Downloaded/Yang, Zhang - 2014 - Does mixed-frequency investor sentiment impact stock returns Based on the empirical study of MIDAS regression model.pdf:pdf},
issn = {0003-6846},
journal = {Applied Economics},
keywords = {M,investor sentiment,midas regression model,panel data model},
mendeley-tags = {M},
month = mar,
number = {9},
pages = {966--972},
title = {{Does mixed-frequency investor sentiment impact stock returns? Based on the empirical study of MIDAS regression model}},
url = {http://www.tandfonline.com/doi/abs/10.1080/00036846.2013.864041},
volume = {46},
year = {2014}
}
\end{filecontents}
\begin{document}
A reference to \cite{Yang2014}
\printbibliography
\end{document}

这给了我:

在此处输入图片描述

我只是想删除&作者姓名之间的内容,然后替换,

答案1

请注意,进行此更改后,您将失去 APA 合规性。biblatex-apa严格执行 APA 规则。如果您必须遵循 APA,请不要更改任何内容(除非您认为biblatex-apa不尊重 APA 样式,请务必通知作者);如果在许多情况下您不必这样做,最好使用更易于修改的样式(为了实施 APA 规则,需要biblatex-apa花费相当多的时间并使用大量代码,这有时会使其更难修改 - 但在本例中并非如此)。

只需选择

\AtBeginBibliography{\renewcommand*{\finalnamedelim}{\multinamedelim}}

我们需要\AtBeginBibliography在这里,因为也apa.bbx重新定义了\finalnamedelim\AtBeginBibliography

平均能量损失

\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[backend=biber, style=apa,natbib=true]{biblatex} 
\usepackage[english]{babel} 
\DeclareLanguageMapping{english}{english-apa}
\usepackage{hyperref}
\ExecuteBibliographyOptions{doi=false,url=false, isbn=false}
\newbibmacro{string+doi}[1]{%
  \iffieldundef{doi}{#1}{\href{http://dx.doi.org/\thefield{doi}}{#1}}}
\DeclareFieldFormat{title}{\usebibmacro{string+doi}{\mkbibemph{#1}}}
\DeclareFieldFormat[article]{title}{\usebibmacro{string+doi}{#1}}
\DeclareFieldFormat{yearorunkyear}{%
  \ifthenelse{\iffieldequalstr{doubtfuldate}{true}}
    {\mkbibbrackets{ca\adddot\addspace#1}}
    {#1}}
\DeclareFieldFormat
  [article]
  {journaltitle}{#1}
\DeclareFieldFormat
  [article]
  {volume}{\mkbibparens{#1}}

\begin{filecontents}{\jobname.bib}
@article{Yang2014,
annote = {The paper showed the importance of MIDAS or Mixed data sampling in studying the sentiment effect.},
author = {Yang, Chunpeng and Zhang, Rengui},
doi = {10.1080/00036846.2013.864041},
file = {:Users/Ahmed/Library/Application Support/Mendeley Desktop/Downloaded/Yang, Zhang - 2014 - Does mixed-frequency investor sentiment impact stock returns Based on the empirical study of MIDAS regression model.pdf:pdf},
issn = {0003-6846},
journal = {Applied Economics},
keywords = {M,investor sentiment,midas regression model,panel data model},
mendeley-tags = {M},
month = mar,
number = {9},
pages = {966--972},
title = {{Does mixed-frequency investor sentiment impact stock returns? Based on the empirical study of MIDAS regression model}},
url = {http://www.tandfonline.com/doi/abs/10.1080/00036846.2013.864041},
volume = {46},
year = {2014}
}
\end{filecontents}

\addbibresource{\jobname.bib}

\AtBeginBibliography{\renewcommand*{\finalnamedelim}{\multinamedelim}}


\begin{document}
A reference to \cite{Yang2014}
\printbibliography
\end{document}

相关内容