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 using Inlage to write my thesis. I made a .bib file and I want to use it to obtain my bibliography. I have one .tex file where I include all the others.

\documentclass[dvips,letterpaper,12pt, openright]{report}
\usepackage{thesis}

\begin{document}

\pagenumbering{arabic}
\include{Chap1}
\include{Chap2}

\end{document}

What do I have to do in order to use the same bib file for all chapters? And which command do I need to use?

share|improve this question
    
Do you want a bibliography to appear at the end of each chapter, or just one bibliography to appear at the end of the thesis? –  chrisaycock Jan 28 '13 at 16:50
    
I want the bibliography at the end of the thesis, and how can i use the cite in the other chapters. –  v1sc3rr4k Jan 28 '13 at 16:52
add comment

migrated from stackoverflow.com Jan 28 '13 at 19:06

This question came from our site for professional and enthusiast programmers.

2 Answers

You should just put

\bibliographystyle{plain} %whatever style you prefer
\bibliography{./bibliography_file}% Produces the bibliography via BibTeX.

before

\end{document}

in the main file. The bibliography filename goes without the .bib extension. You refer to an entry with the \cite command:

\cite{myentry}.

The Include statements in latex just load the source in your main document during processing. Run bibtex after latex and then latex again, twice.

share|improve this answer
add comment

Because the contents of your chapters will be included in the one LaTeX file you're typesetting, those chapters can reference entries in your BibTeX file the usual way:

some amazing discovery~\cite{myentry}.

And at the end of your thesis file, just include these lines above your \end{document}:

\bibliographystyle{plain}
\bibliography{mybibfile}
share|improve this answer
    
The label name is correct and also the file bib name but i have this: Package natbib Warning: Citation `Coh' on page 1 undefined –  v1sc3rr4k Jan 28 '13 at 17:02
1  
You have to run pdflatex, bibtex, pdflatex and pdflatex on yourfile.tex in this order. –  Harish Kumar Jan 28 '13 at 23:46
add comment

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.