![参考文献から (Tech.Rep.) を削除する](https://rvso.com/image/266429/%E5%8F%82%E8%80%83%E6%96%87%E7%8C%AE%E3%81%8B%E3%82%89%20(Tech.Rep.)%20%E3%82%92%E5%89%8A%E9%99%A4%E3%81%99%E3%82%8B.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}