我有一个与此类似的案例:
从 SIAM bibtex 样式中删除“Tech. Rep.”输出
但使用 apacite。当我按照上述主题中的建议操作时,结果是 (),但没有其中的单词,即从“.....(Tech.Rep.)...”到“...()...”。有没有办法去掉括号并将其全局应用于整个参考书目,而不是逐个条目?
\documentclass[12pt,twoside,a4paper]{book}
\usepackage[english]{babel}
\usepackage{apacite}
\begin{document}
\cite{iso3}
\bibliographystyle{apacite}
\bibliography{alternative}
\end{document}
@techreport{iso3,
Author = {ISO/IEC },
Date-Added = {2013-04-10 19:39:43 +0000},
Date-Modified = {2013-04-14 05:05:06 +0000},
Institution = { International Organization for Standardization, Geneva, Switzerland.},
Title = {{ISO}/{IEC} 9126-1:2001, {S}oftware engineering - {P}roduct quality, {P}art 1:{Q}uality model},
Year = {2001}}
答案1
您可以使用以下重新定义:
\documentclass[12pt,twoside,a4paper]{book}
\usepackage[english]{babel}
\usepackage{apacite}
\makeatletter
\renewcommand{\APACbVolEdTR}[2]{%
\ifx\@empty#1\@empty
\ifx\@empty#2\@empty
\else%
\unskip\hbox{}% (Technical Report No.\ <no>)
\fi%
\else%
({#1}% (2nd ed., Vol.~1
\ifx\@empty#2\@empty%
\else%
\unskip; {#2}% ; Technical Report No.\ <no>
\fi%
)% Final parenthesis.
\fi%
}
\makeatother
\usepackage{filecontents}
\begin{filecontents}{alternative.bib}
@techreport{iso3,
Author = {ISO/IEC },
Date-Added = {2013-04-10 19:39:43 +0000},
Date-Modified = {2013-04-14 05:05:06 +0000},
Institution = { International Organization for Standardization, Geneva, Switzerland.},
Title = {{ISO}/{IEC} 9126-1:2001, {S}oftware engineering - {P}roduct quality, {P}art 1:{Q}uality model},
Year = {2001}}
\end{filecontents}
\begin{document}
\cite{iso3}
\bibliographystyle{apacite}
\bibliography{alternative}
\end{document}