如何設定 Bibtex

如何設定 Bibtex

經過 4 個小時的尋找答案並盡我所能,我需要具體的幫助。我寫了一份報告,想包含一份參考書目。我仍然收到這些錯誤訊息:

  1. 空參考書目
  2. 存在未定義的引用
  3. 請在檔案上(重新)執行 BibTeX:(biblatex)「檔案名稱」(biblatex),然後重新執行 LaTeX。
  4. 第 3 頁的引文「範例引用」未定義*

我的程式碼如下所示:

    \documentclass[12pt, twoside]{report}
%Standard Packages
\usepackage[utf8]{inputenc}
\usepackage{caption}
\usepackage{graphicx}
\usepackage[english]{babel}
\usepackage{fancyhdr}
\usepackage{lmodern}
\usepackage{amsmath}
\usepackage{emptypage}
%\usepackage[round, authoryear]{natbib}
%\usepackage[nottoc]{tocbibind}
\usepackage{makeidx}
\usepackage{csquotes}
\usepackage{booktabs}
\usepackage{adjustbox}
\usepackage{comment}
\usepackage{color}
\graphicspath{{Pictures/}}
\usepackage[a4paper,width=150mm,top=25mm,bottom=25mm,bindingoffset=6mm]{geometry}

% zusätzliche Schriftzeichen der American Mathematical Society
\usepackage{amsfonts}
\usepackage{amsmath}

%Library
\usepackage[backend=bibtex,bibencoding=ascii,style=authoryear,sorting=none]{biblatex}
\addbibresource{bibfile.bib}

\begin{document}

%\bibliography{bibfile.bib}

\newpage
\thispagestyle{empty}
\include{01_abstract}

\setcounter{page}{1}
\pagenumbering{roman}
\include{02_dedication}

\include{03_declaration}

\include{04_acknowledges}
\newpage

\tableofcontents{}

\listoffigures{}
\listoftables{}
\newpage

\setcounter{page}{1}
\pagenumbering{arabic}

\Include{Chapter1}


\printbibliography

\end{document}

我還有我的參考文獻的一部分:

@book{Fluid Mechanics Seventh Edition,
    author    = {Frank M. White},
    title     = {Fluid Mechanics, Seventh Edition},
    year      = {2011,
    publisher = {McGraw-Hill}
}

當我使用快速建置來歸檔文件時:執行latex + Bibtex + 2x Latex + Viewpdf。我需要做什麼才能列印參考書目?非常感謝您的幫忙!

答案1

.bib 鍵不得包含空格,且 .bib 檔案中年份的左大括號後面沒有緊跟著右大括號。有了這個文件

@book{Fluid_Mechanics_Seventh_Edition,
   author    = {Frank M. White},
   title     = {Fluid Mechanics, Seventh Edition},
   year      = {2011},
   publisher = {McGraw-Hill}

}

和一個

\cite{Fluid_Mechanics_Seventh_Edition}

在你的 LaTeX 原始碼中,在我的盒子上一切正常。

相關內容