删除 apacite 中数字周围的括号

删除 apacite 中数字周围的括号

我需要删除参考书目中数字(否)周围的括号。我正在使用apacite

我的设置:

\usepackage{apacite}
...
\bibliographystyle{apacite}
\bibliography{biblio}

当前版本:

Xu, Z., and Xia, M. (2012). Hesitant fuzzy entropy and cross-entropy and their 
use in multiattribute decision-making. International Journal of Intelligent 
Systems, Vol. 27(No. 9), pp. 799–822.

所需版本:

Xu, Z., and Xia, M. (2012). Hesitant fuzzy entropy and cross-entropy and their 
use in multiattribute decision-making. International Journal of Intelligent 
Systems, Vol. 27, No. 9, pp. 799–822.

有没有什么办法可以将我的参考文献格式化成这样?

答案1

我无法得到“Vol.”和“No.”,除非我将它们硬连线到和volume字段中number,但这是错误的。

以下是对相关宏的更改,添加了“Vol.”(卷)和“No.”(编号),同时删除了括号。

\begin{filecontents*}{\jobname.bib}
@article{xu-xia-2012,
  author={Xu, Z. and Xia, M.},
  year={2012},
  title={Hesitant fuzzy entropy and cross-entropy and 
    their use in multiattribute decision-making},
  journal={International Journal of Intelligent Systems},
  volume=27,
  number=9,
  pages={799–822},
}
\end{filecontents*}

\documentclass{article}
\usepackage{apacite}

\makeatletter
\renewcommand{\APACjournalVolNumPages}[4]{%
  \Bem{#1}%
  \ifx\@empty#2\@empty
  \else
    \unskip, \Bem{Vol.~#2}% <--- added Vol.
  \fi
  \ifx\@empty#3\@empty
  \else
    %\unskip({#3})% <--- original
    \unskip, {No.~#3}% <--- changed
  \fi
  \ifx\@empty#4\@empty
  \else
    \unskip, {#4}%
  \fi
}
\makeatother

\begin{document}

\cite{xu-xia-2012}

\bibliographystyle{apacite}
\bibliography{\jobname}

\end{document}

在此处输入图片描述

如果你想把“&”改成“and”(这是一件好事),还要添加

\AtBeginDocument{\renewcommand{\BBAA}{and}}

刚过\makeatletter

在此处输入图片描述

相关内容