书目问题

书目问题

bib我在使用文件时遇到问题,tex这是代码:

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath}
\usepackage{amsfonts}
\usepackage{amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage[margin=2.5cm]{geometry}
\usepackage{natbib}
\begin{document}
.
.
.
\bibliographystyle{abbrv}
\bibliography{mybib} % Path to your References.bib file
\end{document}

这是 bib 文件:

@Article{ROCForMedical,
author = {"Rajeev Kumar and Abhaya Indrayan"},
title = {"Receiver Operating Characteristic (ROC) Curve for Medical Researchers"},
journal = {"INDIAN PEDIATRICS"},
year = {"2011"},
OPTvolume = {"48"},
OPTpages = {"277-287"},
OPTmonth = {"April"}
}

@Article{Fisher36,
author = {Fisher, R. A.},
title = {The use of multiple measurements in taxonomic problem},
journal = {Ann Eugen},
year = {1936},
OPTnumber = {7},
OPTpages = {179-188}
}
@Book{introR,
author = {Gareth James and Daniela Witten and Trevor Hastie and Robert Tibshirani},
title = {An Introduction to Statistical Learning with Applications in R},
publisher = {Springer},
year = {2013}
}
.
.
.
@Book{MDA,
author = {William Cooley and Paul Lohnes},
title = {Multivariate Data Analysis},
publisher = {John Wiley \& Sons, LTD},
year = {1971}
}

因此,问题是,当我编译它时,PDF 如下所示:

在此处输入图片描述

那么,你能帮助我吗?

答案1

(评论太长,因此作为答案发布)

您遇到的不良格式似乎不是由您迄今为止发布的代码引起的,如下面的代码所示。由于无法访问完整文档,我担心推测哪些设置已被修改以生成不良格式是没有用的。您可能需要查看文档中的某些代码(或文档加载的包中的代码)是否修改了低级环境的设置list,LaTeX 会使用该低级环境来创建格式化的参考书目。

当然,您不应该习惯性地用双引号和花括号将每个字段括起来。使用一种或另一种类型的分隔符,但并非两者兼而有之。(仅当您需要 (a) 通知 BibTeX 某个作者应被视为“公司作者”或 (b) 在所谓的句子样式有效的情况下防止 BibTeX 将某些单词或字母小写时才使用“内部”分隔符。)另外,您还应该从各个字段中删除“OPT”前缀。

在此处输入图片描述

\RequirePackage{filecontents}
\begin{filecontents}{mybib.bib}
@Article{ROCForMedical,
author  = "Rajeev Kumar and Abhaya Indrayan",
title   = "Receiver Operating Characteristic ({ROC}) Curve for Medical Researchers",
journal = "Indian Pediatrics",
year    = "2011",
volume  = "48",
pages   = "277-287",
month   = "April",
}
@Article{Fisher36,
author  = {Fisher, Ronald A.},
title   = {The use of multiple measurements in taxonomic problem},
journal = {Ann. Eugen},
year    = {1936},
number  = {7},
pages   = {179-188}
}
@Book{introR,
author    = {Gareth James and Daniela Witten and Trevor Hastie and Robert Tibshirani},
title     = {An Introduction to Statistical Learning with Applications in~R},
publisher = {Springer},
year      = {2013}
}
@Book{MDA,
author    = {William Cooley and Paul Lohnes},
title     = {Multivariate Data Analysis},
publisher = {John Wiley \& Sons, Ltd.},
year      = {1971}
}
\end{filecontents}

\documentclass[12pt,a4paper]{report}
\usepackage[utf8]{inputenc}
\usepackage{amsmath,amsfonts,amssymb}
\usepackage{makeidx}
\usepackage{graphicx}
\usepackage[margin=2.5cm]{geometry}
\usepackage{natbib}
\bibliographystyle{abbrv}

\begin{document}
\nocite{*}
\bibliography{mybib}
\end{document}

相关内容