
У меня есть следующий файл:
\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}