我正在使用“jbact”书目样式,经过几次排版后,我的参考文献的标题没有显示出来。
我听说 jbact 样式有一行代码可以打开参考文献中的标题,但我无法找到如何精确地做到这一点。
我开始的代码行如下:
\documentclass[oneside]{book}
\begin{document}
\TOCadd{Bibliography}
\bibliographystyle{jbact}
\bibliography{BIB}
\end{document}
我的 bibtex 看起来像这样:
@article{Lemaitre1997,
author = {Lemaitre, B. and Reichhart, J.M. and Hoffmann, J.A.},
year = {1997},
title = {Drosophila host defense: Differential induction of antimicrobial peptide genes after infection by various classes of microorganisms},
journal = {Proceedings of the National Academy of Sciences of the United States of America},
volume = {94},
pages = {14614 - 14619}
}
@article{Montenegro2005,
author = {Montenegro, H. and Solferini, V.N. and Klaczko, L.B. and Hurst, G.D.D.},
year = {2005},
title = {Male-kiling Spiroplasma naturally infecting Drosophila melanogaster},
journal = {Insect Molecular Biology},
volume = {14},
number = {3},
pages = {281 - 287}
}
谢谢你!
答案1
\nocite{TitlesOn}
,如第 27 行所述jbact.bst
% TITLES can be turned on and off!
% Just nocite the reference TitlesOn in the paper (i.e. \nocite{TitlesOn})
% and have a bibliography article in your database with that cite key!
% Without titles is Journal of Molecular Biology;
% With titles is Journal of Theoretical Biology.
笔记:
.bib 文件中需要有相应的条目。
\documentclass[oneside]{book}
\usepackage{filecontents}
\begin{filecontents}{\jobname.bib}
@article{Montenegro2005,
author = {Montenegro, H. and Solferini, V.N. and Klaczko, L.B. and Hurst, G.D.D.},
year = {2005},
title = {Male-kiling Spiroplasma naturally infecting Drosophila melanogaster},
journal = {Insect Molecular Biology},
volume = {14},
number = {3},
pages = {281 - 287}
}
@article{TitlesOn,
author = "TitlesOn",
title = "TitlesOn",
journal = "TitlesOn",
volume = "TitlesOn",
comment = "If this is nocited, then titles will be turned on in JMB style",
year = "1900"}
\end{filecontents}
\begin{document}
\nocite{TitlesOn}
\cite{Montenegro2005}
\bibliographystyle{jbact}
\bibliography{\jobname}
\end{document}