
Sou muito novo no LaTeX e estou tentando usar meu próprio estilo de citação que já criei. Agora eu queria saber como usar esse estilo. Encontrei uma solução usando o pacote natbib. Mas não funciona.
Tentei replicar um tutorial que mostra como funciona o natbib, mas não consegui replicá-lo. O código é o seguinte:
\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}
Quando compilo este documento com PDFLaTeX as citações são indefinidas. Quando eu uso PDFLaTeX -> BibTeX -> PDFLaTeX -> PDFLaTeX então ocorre o seguinte erro:
ERROR - Cannot find 'Test.bcf'! INFO - ERRORS: 1
O que eu tenho que fazer?