Cómo compilar un documento con natbib

Cómo compilar un documento con natbib

Soy muy nuevo en LaTeX y estoy intentando usar mi propio estilo de cita que ya creé. Ahora me preguntaba cómo usar este estilo. Encontré una solución usando el paquete natbib. Pero no funciona.

Intenté replicar un tutorial que muestra cómo funciona natbib, pero no pude replicarlo. El código es el siguiente:

\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}

Cuando compilo este documento con PDFLaTeX, las citas no están definidas. Cuando uso PDFLaTeX -> BibTeX -> PDFLaTeX -> PDFLaTeX, arroja el siguiente error:

ERROR - Cannot find 'Test.bcf'! INFO - ERRORS: 1

¿Que tengo que hacer?

información relacionada