使用哈佛风格时,如何从 bibtex 输出中删除单词(技术报告)?
@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={~},
}
答案1
你可以使用一个技巧:
\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}
另一方面,我认为“讨论文件”是方式:
\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}
请注意,我使用filecontents*
环境只是为了使示例自成一体。请使用单独的 bib 文件使用常规方法。