由于某种原因,我无法进行任何引用,甚至无法编写参考书目。当我在 Kile 中编译时,我收到“[BibTeX] 已完成,退出代码为 2”消息。然而,我的参考书目似乎一切正常。
这是我在文档中所做的:
\documentclass[12pt,oneside]{article}
\pagestyle{plain}
\usepackage[sort,round]{natbib} %package for bibliography
\bibliographystyle{authordate1}%unsrtnat sets as sorted by order of appearance
\begin{document}
\section{This is a section}
Citation: \nocite{*}
Citation with something: \citep{CHANCE1952}
\section{Bibliography}
\bibliography{/home/my/path/to/library/test}
\end{document}
输出
这是我的图书馆所拥有的(是的,只有一个参考用于测试目的)
@article{CHANCE1952,
author = {Chance, B. and Greenstein, D. S. and Roughton, F. J.},
title = {The mechanism of catalase action. I. Steady-state analysis},
journal = {Arch Biochem Biophys},
volume = {37},
number = {2},
pages = {301-21},
note = {CHANCE, B
GREENSTEIN, D S
ROUGHTON, F J W
Not Available
Arch Biochem Biophys. 1952 Jun;37(2):301-21.},
keywords = {*Oxidoreductases
Testis/*anatomy & histology},
year = {1952}
}
我正在编译PDFLatex > Bibtex >pdflatex > pdflatex >viewpdf
。有人能帮我吗?
先感谢您!
编辑:这是 Bibtex 文件输出的一部分.blg
...
The top-level auxiliary file: test.aux
I couldn't open style file authordate1.bst
---line 2 of file test.aux
: \bibstyle{authordate1
: }
I'm skipping whatever remains of this command
I found no style file---while reading file test.aux
You've used 1 entry,
...
答案1
bibtex 日志显示您缺少文档指定的 bibtex 样式。
在 TL2013 中如果我运行命令
kpsewhich authordate1.bst
然后它显示样式位于
/usr/local/texlive/2013/texmf-dist/bibtex/bst/beebe/authordate1.bst
您可以从 ctan 获取该文件,但它应该更容易通过您的 tex 发行版所使用的包系统进行安装。
答案2
检查你的参考书目的路径(\bibliography{/home/my/path/to/library/test}
),如果我没有记错的话,该路径是相对于你的主要 latex 文件的。
当我把所有内容放在一个文件中时,它似乎有效:
\begin{filecontents}{bib.bib}
@article{CHANCE1952,
author = {Chance, B. and Greenstein, D. S. and Roughton, F. J.},
title = {The mechanism of catalase action. I. Steady-state analysis},
journal = {Arch Biochem Biophys},
volume = {37},
number = {2},
pages = {301-21},
note = {CHANCE, B
GREENSTEIN, D S
ROUGHTON, F J W
Not Available
Arch Biochem Biophys. 1952 Jun;37(2):301-21.},
keywords = {*Oxidoreductases
Testis/*anatomy & histology},
year = {1952}
}
\end{filecontents}
\documentclass[12pt,oneside]{article}
\pagestyle{plain}
\usepackage[sort,round]{natbib} %package for bibliography
\bibliographystyle{authordate1}%unsrtnat sets as sorted by order of appearance
\begin{document}
\section{This is a section}
Citation: \nocite{*}
Citation with something: \citep{CHANCE1952}
\section{Bibliography}
\bibliography{bib}
\end{document}
答案3
我认为 kile 正在将 biber 的版本号打印为退出代码。此外,blg 文件中的日志未显示任何错误。