Take the 2-minute tour ×
TeX - LaTeX Stack Exchange is a question and answer site for users of TeX, LaTeX, ConTeXt, and related typesetting systems. It's 100% free, no registration required.

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

% Untitled.tex 
\documentclass[12pt]{article}
\usepackage{natbib}

\begin{document}

\title{BibTeX in action}
\author{Martin J. Osborne}
\date{2008-1-13}

\maketitle

\section{Introduction}
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}).

\bibliographystyle{te}

\bibliography{bibl}

\end{document}

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

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

@incollection{m85,
       author={Maskin, Eric S.},
       year={1985},
       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},
       pages={173-204},
       publisher={Cambridge University Press},
       addess={Cambridge}
     }

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'.
share|improve this question
3  
Are you running BibTeX on the .tex file or the .bib one. You should not be doing latter. –  Joseph Wright Nov 29 '13 at 8:22
    
@JosephWright, I did:) Thank you. –  klm123 Nov 29 '13 at 9:22
    
You should also take a look at the modern package biblatex in conjunction with the bibliography processor biber. This gives you full utf8 support. –  Johannes_B Nov 29 '13 at 9:26
    
@Johannes_B, do I have biblatex in texworks? I see only bibtex compilation. –  klm123 Nov 29 '13 at 9:33
    
Biblatex is a package, see the link above. Biber is the modern BibTeX equivalent, but you have to add it manually. See add biber to Texworks as a starting point. –  Johannes_B Nov 29 '13 at 9:37

1 Answer 1

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.
share|improve this answer
    
The bib file is your database, it is not generated by BibTeX. BibTeX generates the bbl, which is read by LaTeX. –  Johannes_B Nov 29 '13 at 9:24
    
@Johannes_B, thanks, my bad. –  klm123 Nov 29 '13 at 9:31

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.