標題未出現在參考文獻部分

標題未出現在參考文獻部分

我正在使用“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}

在此輸入影像描述

相關內容