我对 LaTeX 还很陌生,我正在尝试使用自己已经创建的引用样式。现在我想知道如何使用这种样式。我找到了使用包 natbib 的解决方案。但它不起作用。
我尝试复制一个展示 natbib 如何工作的教程,但无法复制它。代码如下:
\documentclass{article}
\usepackage[utf8]{inputenc}
\usepackage[english]{babel}
%Includes "References" in the table of contents
\usepackage[nottoc]{tocbibind}
%Import the natbib package and sets a bibliography style
\usepackage[square,numbers]{natbib}
\bibliographystyle{abbrvnat}
\begin{document}
\section{First Section}
This document is an example of \texttt{natbib} package using in bibliography management. Three items are cited: \textit{The \LaTeX\ Companion} book \cite{latexcompanion}, the Einstein journal paper \citet{einstein}, and the Donald Knuth's website \cite{knuthwebsite}. The \LaTeX\ related items are \cite{latexcompanion,knuthwebsite}.
\medskip
%Imports the bibliography file "sample.bib"
\bibliography{Lit}
\end{document}
当我使用 PDFLaTeX 编译此文档时,引用不确定。当我使用 PDFLaTeX -> BibTeX -> PDFLaTeX -> PDFLaTeX 时,它会引发以下错误:
ERROR - Cannot find 'Test.bcf'! INFO - ERRORS: 1
我需要做什么?