bibtex 错误 Texshop

bibtex 错误 Texshop

我的主文件中有以下文件:

\documentclass[11pt]{scrartcl}
\usepackage{geometry}                  
\geometry{a4paper}                    
\usepackage{wutzi}


\DeclareGraphicsRule{.tif}{png}{.png}{`convert #1 `dirname #1`/`basename #1 .tif`.png}

\makeindex
\begin{document}
\hypersetup{colorlinks=false,
citecolor=Violet,
linkcolor=Red,
urlcolor=Blue}
\title{Vorlage}
\author{Wutzi}
\date{\today}   
\maketitle

\begin{center}\\ \\ \\ \\ \\
{\Huge \color{red} \textbf{ DON'T PANIC}}
\end{center}

\newpage
\tableofcontents
\newpage  

\cite{tipler}

\bibliographystyle{jurabib}

\begin{thebibliography}
\bibliography{bib}
\end{thebibliography}
\end{document}  

软件包 wutzi 如下所示:

\ProvidesPackage{wutzi}
\usepackage{graphicx}
\usepackage{amssymb}
\usepackage{epstopdf}
\usepackage[latin1]{inputenc}
\usepackage[ngerman]{babel}
\usepackage[T1]{fontenc}
\usepackage{ulem}
\usepackage{enumitem}
\usepackage{stmaryrd}
\usepackage{makeidx}
\makeindex
\usepackage{amsmath}
\numberwithin{equation}{section}
\usepackage{hyperref}
\usepackage{underlin}
\usepackage{wasysym}
\pagestyle{headings}
\usepackage{color}
\usepackage{fancyhdr}
\pagestyle{fancy}
\usepackage{ifsym}
\usepackage[round]{natbib}
\renewcommand{\baselinestretch}{1.5}

%convenience  Definitions   %%%%%%%%
\renewcommand{\L}{\mathcal L}%%%%%%
\renewcommand{\R}{\mathbb R}%%%%%%
\renewcommand{\C}{\mathbb C}%%%%%%
\renewcommand{\H}{\mathcal H}%%%%%%
\renewcommand{\N}{\mathbb N}
\renewcommand{\grad}{\operatorname{grad}}%%%%%%
\renewcommand{\div}{\operatorname{div}}%%%%%%%%
\renewcommand{\rot}{\operatorname{rot}}%%%%%%%%
\renewcommand{\phi}{\varphi}%%%%%%%%%%%%%
\renewcommand{\<}{\langle}%%%%%%%%%%%%%%
\renewcommand{\>}{\rangle}%%%%%%%%%%%%%%
\renewcommand{\rho}{\varrho}%%%%%%%%%%%%%
\renewcommand{\lag}[2]{\frac{\partial #1}{\partial {#2}_j} - \frac{d}{dt}\frac{\partial #1}{\partial \dot {#2}_j}}%%%%%%%%%%%%%
\renewcommand{\done}{\begin{flushright}$\square$ \end{flushright}}
\renewcommand{\scalar}[2]{\< {#1},{#2}\>}
\renewcommand{\Int}[2]{\int\limits_{#1}^{#2}}
\renewcommand{\DGL}{Differentialgleichung }
\renewcommand{\epsilon}{\varepsilon}
\renewcommand{\LT}{Legendre-Transformation }
\renewcommand{\brac}[2]{#1^{(#2)}}
\renewcommand{\HJG}{Hamilton-Jacobi-Gleichung }
\renewcommand{\d}{\operatorname{d}}
\makeatletter
\newcommand{\rmnum}[1]{\romannumeral #1}
\newcommand{\Rmnum}[1]{\expandafter\@slowromancap\romannumeral #1@}
\makeatother
%%%%%%%%%%%%%%%%%%%%%%%%%%%%

这是 bib.bib 文件:

@book{Landau,
Author = {E.M. Lifschitz, Lew Davidowitsch Landau},
Date-Added = {2011-06-07 22:38:33 +0200},
Date-Modified = {2011-06-07 22:40:47 +0200},
Keywords = {Landau Theorie},
Publisher = {NAUKA Verlag},
Read = {1},
Title = {Lehrbuch der theoretischen Physik},
Year = {1988}}

@book{metzler,
Author = {J.Grehn, J.Krause(Hrsg.)},
Date-Added = {2011-06-07 22:37:04 +0200},
Date-Modified = {2011-06-07 22:38:10 +0200},
Keywords = {metzler Physik},
Publisher = {Metzler},
Title = {Physik},
Year = {1998}}

@book{LineareAlgebra,
Author = {Albrecht Beutelspacher},
Date-Added = {2011-06-07 22:34:00 +0200},
Date-Modified = {2011-06-07 22:36:53 +0200},
Keywords = {Lineare Algebra},
Publisher = {Vieweg+Teuber},
Read = {1},
Title = {Lineare Algebra},
Year = {2003}}

@book{tipler,
Author = {Paul A. Tipler},
Date-Added = {2011-06-07 22:31:58 +0200},
Date-Modified = {2011-06-07 22:33:44 +0200},
Keywords = {Tipler Physik},
Publisher = {Spektrum Akademischer Verlag},
Read = {1},
Title = {Physik},
Volume = {1.Auflage},
Year = {2000}}

最后是 aux 文件:

\relax 
\catcode`"\active
\providecommand\HyperFirstAtBeginDocument{\AtBeginDocument}
\HyperFirstAtBeginDocument{\ifx\hyper@anchor\@undefined
\global\let\oldcontentsline\contentsline
\gdef\contentsline#1#2#3#4{\oldcontentsline{#1}{#2}{#3}}
\global\let\oldnewlabel\newlabel
\gdef\newlabel#1#2{\newlabelxx{#1}#2}
\gdef\newlabelxx#1#2#3#4#5#6{\oldnewlabel{#1}{{#2}{#3}}}
\AtEndDocument{\ifx\hyper@anchor\@undefined
\let\contentsline\oldcontentsline
\let\newlabel\oldnewlabel
\fi}    
\fi}
\global\let\hyper@last\relax 
\gdef\HyperFirstAtBeginDocument#1{#1}
\providecommand\HyField@AuxAddToFields[1]{}
\select@language{ngerman}
\@writefile{toc}{\select@language{ngerman}}
\@writefile{lof}{\select@language{ngerman}}
\@writefile{lot}{\select@language{ngerman}}
\citation{tipler}
\bibstyle{jurabib}

当我运行 bibtex 时 - 在我运行 pdftex 至少两次之后 - 我收到一个错误:

This is BibTeX, Version 0.99d (TeX Live 2010)
The top-level auxiliary file: Vorlage.aux
The style file: jurabib.bst
I found no \bibdata command---while reading file Vorlage.aux
Warning--I didn't find a database entry for "tipler"
(There was 1 error message)

如果我检查辅助文件,我可以看到没有 \bibdata 命令,但为什么以及如何让它出现在那里。我做错了什么吗?我正在使用 Texshop 和 Bibdesk 来创建我的文件。Mactex 2010(Texlive)中的 Texdistribution。

答案1

你有两个问题。第一,正如 Ian 指出的,你不应该使用

 \begin{thebibliography}
   ...
 \end{thebibliography}

当您使用 BiBTeX 时。但这并不能直接解决您的问题。您正在尝试使用jurabib书目样式和natbib包。这根本行不通,因为该jurabib样式只适用于jurabib包裹。

但是,如果您正在寻找作者/年份引用,那么该jurabib样式无论如何都不是正确的样式,您应该尝试其中一种标准natbib样式,例如plainnat或(或您所在领域的各种期刊的kluwer众多文件之一)。.bst

因此,

\bibliographystyle{jurabib}

你应该使用

\bibliographystyle{plainnat}

如果你真的需要该包实现的那种人文风格引用jurabib,我强烈建议你考虑使用biblatex而不是jurabib,后者已不再开发。

答案2

删除\begin{thebibliography}\end{thebibliography}。它们是在您自己构建参考书目环境时使用的,而不是在使用 时使​​用的BiBTeX

相关内容