![从参考书目中删除(技术代表)](https://linux22.com/image/266429/%E4%BB%8E%E5%8F%82%E8%80%83%E4%B9%A6%E7%9B%AE%E4%B8%AD%E5%88%A0%E9%99%A4%EF%BC%88%E6%8A%80%E6%9C%AF%E4%BB%A3%E8%A1%A8%EF%BC%89.png)
我有一个与此类似的案例:
从 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}