[Tex/LaTex] technical report citation in bibtex

bibtex

How can I remove the word (Technical report) from the output of bibtex when using Harvard style?

@techreport{doornik1994practical,
  title={A practical test for univariate and multivariate normality},
  author={Doornik, J.A. and Hansen, H.},
  year={1994},
  institution={Nuffield College, Oxford, UK, Discussion paper}
  type={~},
}

Best Answer

You can use a trick:

\begin{filecontents*}{\jobname.bib}
@techreport{doornik1994practical,
  title={A practical test for univariate and multivariate normality},
  author={Doornik, J.A. and Hansen, H.},
  year={1994},
  institution={Nuffield College, Oxford, UK, Discussion paper},
  type={\notype},
}
\end{filecontents*}
\documentclass{article}
\usepackage{harvard}
\newcommand\notype[1]{\unskip}

\begin{document}
\nocite{*}
\bibliographystyle{agsm}
\bibliography{\jobname}
\end{document}

enter image description here

On the other hand, I believe that “Discussion paper” is the type:

\begin{filecontents*}{\jobname.bib}
@techreport{doornik1994practical,
  title={A practical test for univariate and multivariate normality},
  author={Doornik, J.A. and Hansen, H.},
  year={1994},
  institution={Nuffield College, Oxford, UK},
  type={Discussion paper},
}
\end{filecontents*}
\documentclass{article}
\usepackage{harvard}

\begin{document}
\nocite{*}
\bibliographystyle{agsm}
\bibliography{\jobname}
\end{document}

enter image description here

Note that I used the filecontents* environment just to make the example self contained. Use your normal method with a separate bib file.