使用 biblatex 时,换行符处的空格似乎不会被删除。
references.bib
MWE(与下面链接的文件一起使用):
\documentclass[a4paper,12pt]{article}
\usepackage{amsmath, amssymb}
\usepackage{csquotes}
\usepackage[backend=biber,style=authoryear-comp,citestyle=authoryear-comp,sorting=ynt,maxbibnames=99,maxcitenames=2, uniquelist=false, uniquename=false,backref=true,dashed=false,giveninits=true]{biblatex}
\addbibresource{references.bib} %Location of references.bib only for biblatex, Do not omit the .bib extension from the filename.
\renewcommand\nameyeardelim{, }
\DeclareNameAlias{sortname}{family-given}
\renewcommand*{\multinamedelim}{\addcomma\space}
\renewcommand*{\finalnamedelim}{ and }
\setlength{\bibitemsep}{\baselineskip}
\renewbibmacro{in:}{}
\DeclareCiteCommand{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand*{\cite}
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{citeyear}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand{\parencite}[\mkbibparens]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}\printtext[bibhyperref]{\usebibmacro{cite}}}
{\multicitedelim}
{\usebibmacro{postnote}}
\DeclareCiteCommand*{\parencite}[\mkbibparens]
{\usebibmacro{prenote}}
{\usebibmacro{citeindex}%
\printtext[bibhyperref]{\usebibmacro{citeyear}}}
{\multicitedelim}
{}%\usebibmacro{postnote}}
\begin{document}
\noindent
for $w\in\mathbb{R}^N$, $w\geq 0$ may be used in most conference schemes~\parencite{neal11,kucukelbir17,ranganath14}. If the number of nonzero entries $\|w\|_0$ of $w$ is small, this results in a significant reduction in computational burden.
\end{document}
输出(注意第一行末尾的额外空格;分号应该与行尾齐平。)