[Tex/LaTex] How to use BibTex with TexWorks


I am trying to learn how to use bibtex. I found this article and created two files:

% Untitled.tex 


\title{BibTeX in action}
\author{Martin J. Osborne}


This document illustrates the use of BibTeX\@.  You may want to refer to
\cite{ahu61} or \cite{ab94} or \cite{m85}.  Or you may want to cite a
specific page in a reference, like this: see \citet[p.~199]{m85}.  Or
perhaps you want to cite more than one paper by Maskin: \cite{m85, m99}.
Or you want to make a parenthetical reference to one or more articles, in
which case the \verb+\citealt+ in the \texttt{te.bst} bibliography style
omits the parentheses around the year (\citealt{ahu61}).




% bibl.bib
       author={Arrow, Kenneth J. and Leonid Hurwicz and Hirofumi Uzawa},
       title={Constraint qualifications in maximization problems},
       journal={Naval Research Logistics Quarterly},
       year = 1961,
       pages = {175-191}

       author = {Charalambos D. Aliprantis and Kim C. Border},
       year = {1994},
       title = {Infinite Dimensional Analysis},
       publisher = {Springer},
       address = {Berlin}

       author={Maskin, Eric S.},
       title={The theory of implementation in {N}ash equilibrium: a survey},
       booktitle={Social Goals and Social Organization},
       editor={Leonid Hurwicz and David Schmeidler and Hugo Sonnenschein},
       publisher={Cambridge University Press},

Now the question arises what should I do with them?
I didn't find any manual for BibTex with TexWorks.

I compiling Untitled.tex into pdfLaTeX and see ? instead of citations.
I compiling bibl.bib into BibTeX and see error

I couldn't open file name `bibl.aux'.

Best Answer

Thanks to Joseph Wright I made it work this way:

  1. Compile with pdfLaTeX to get know which pieces you cite and store it in .aux file.
  2. Compile with BibTeX to create the .bbl file (which contains the formatted references) from information stored in the .aux and .bib files.
  3. Compile with pdfLaTex to incorporate the .bbl file in the typeset document (to include references list in the document).
  4. Compile with pdfLaTex to rid of ? marks and get citations in your text.