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'm having a problem with printing the bibliography at end of a book. The main .tex file is

\usepackage{amsmath, amsthm, amssymb}


% fancy headers and footers
\renewcommand{\headrulewidth}{0.1pt} % for upper line
\renewcommand{\footrulewidth}{0.1pt} % for lower line
 \fancyhead[LE,RO]{\itshape \nouppercase \rightmark}\fancyhead[LO,RE]           {\itshape \nouppercase \leftmark}





\def\FrameCommand{\fboxsep=\FrameSep \fcolorbox{black}}%
\color{black}\MakeFramed {\FrameRestore}}%






In a document forTest.tex put


\section{asdf }
As stated in \citep{ads}.

and the content of the refs.bib file that is in the same folder as the other files:

author = "adfsdf, k.",
title = "adf",
booktitle = "sdaf",
series = "adsf",
pages = "19",
publisher = "sda",
year = 2008

After I hit pdflatex, citation adf is undefined. Note that the bib file is very large, and I should not adapt that file. I wonder if there is some other way to include it.

share|improve this question
have you run bibtex? you need pdflatex bibtex pdflatex to sort out all the references –  David Carlisle Jun 11 '12 at 14:48
Many thanks. Note that by pdflatex only I managed to do some shorter documents, but that's different story, I guess. –  boy Jun 11 '12 at 14:55

1 Answer 1

On the first run of latex you would always expect cross references to be undefined.

If using bibtex you need to run (pdf)latex once (to write the list of needed citations to the aux file) then you need to run bibtex (to generate the bbl file that contains the LaTeX code for the bibliography) Then you need to run (pdf)latex twice more to resolve all the cross references to the generated bibliography.

share|improve this answer
Yes, thanks. Now it works perfectly. I still have some questions related to referencing, but that will not be posted here. –  boy Jun 11 '12 at 15:04

Your Answer


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.