如何使用 apacite 包删除文章参考列表中引用之间的空格?

如何使用 apacite 包删除文章参考列表中引用之间的空格?

与 &inproceedings 不同,@article 引用后有一个额外的空格。我想消除额外的空格。当我使用 DOI 链接时也有一个额外的空格。我该如何删除这些额外的空格?

这是参考文献列表的图片。DOI 链接前和 @article 引用后有一个额外的空格 =

% These are the packages I have imported

\documentclass[pdflatex,sn-apa]{sn-jnl}
\jyear{2023}%
\theoremstyle{thmstyleone}%
\newtheorem{theorem}{Theorem}%  meant for continuous   numbers

\usepackage{caption}
\usepackage{subcaption}
\newtheorem{proposition}[theorem]{Proposition}% 

\usepackage{adjustbox}
\theoremstyle{thmstyletwo}%
\newtheorem{example}{Example}%
\newtheorem{remark}{Remark}%

\theoremstyle{thmstylethree}%
\newtheorem{definition}{Definition}%
\usepackage{mathptmx}
\raggedbottom
\usepackage{doi}

%The is code for listing the references 
@article{A2023a,
title={CBAa: Institution},
author={A, G},
Doi = {https://doi.org/10.3390/app12f06}, 
volume={09},
number={2},
pages={90},
year={2023},
}
@inproceedings{A2022,
title={ABC: Institution},
author={A, Ho},
booktitle={Conference on computer vision},
pages={5050--5060},
year={2022}
}
@article{A2023,
title={CBA: Institution},
author={A, K},
year={2023}
}

%This is the code I have used in the main.tex for 
%displaying the doi link. However, there is an extra 
%line of space before the link. 

\usepackage[natbibapa]{apacite}
\usepackage{hyperref}
\newcommand*{\doi}{}
\makeatletter
\newcommand{\doi@}[1]{\href{https://doi.org/#1}{#1}}
\DeclareRobustCommand{\doi}{\hyper@normalise\doi@}
\renewcommand\doiprefix{\ignorespaces}
\makeatother

%I have also tried to reduce the spacing in        
%sn- jnl.cls file by setting 0em in setlength. This 
%helped in reducing the space in inproceeding 
%journals but not for articles. There are       
%still extra spaces after the article references.

\if@APA@refstyle%
  \usepackage[natbibapa]{apacite}%
  \gdef\NumBib{NO}%
  \bibliographystyle{sn-apacite}%s
  \def\refdoi#1{\urlstyle{rm}\url{#1}}%
  \renewcommand{\doiprefix}{}%
  \AtBeginDocument{%
    \renewcommand{\BPBI}{.}% Period between initials - command from         apacite.sty
  }%
  \setlength{\bibsep}{0em}%
  \def\bibfont{\reset@font\fontfamily{\rmdefault}\normalsize\selectfont}%
\fi%

我正在尝试获取如下所示的参考列表。

在此处输入图片描述

(注:我使用的是 overleaf Latex)

我一直在努力删除空格。有人能帮我解决这个问题吗?我正试图将我的论文提交给 Springer 期刊之一。

相关内容