GeneralHow can I make reference list on TeXnicCenter

LaTeX specific issues not fitting into one of the other forums of this category.
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

How can I make reference list on TeXnicCenter

Post by gcheer3 »

Yesterday I first time made a slide presentation by using beamer. For the last page, I want to make a bibliography list for all the papers I used.

I searched online, seems like I can use BibTex. I am a little confused. Seems like there is a database. I can just use the database, I dont need to input the information (author, journal...) for each paper. Is that true? Or should I type all the informations by myself?

Where can I find the database if there is one.

I tried to use "begin{thebibliography} bibitem " to input by myself, it didnt look nice

Thank you

Recommended reading 2024:

LaTeXguide.org • LaTeX-Cookbook.net • TikZ.org

NEW: TikZ book now 40% off at Amazon.com for a short time.

gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: How can I make reference list on TeXnicCenter

Post by gcheer3 »

And I wrote the following , name it as 'sample'

"@book{goossens93,
author = "Michel Goossens and Frank Mittlebach and Alexander Samarin",
title = "The Latex Companion",
year = "1993",
publisher = "Addison-Wesley",
address = "Reading, Massachusetts"
}
"

But because I wrote above code in Notepad, it is a txt file, not a bib file. I dont know how to insert it in the Latex as follows

\bibliographystyle{plain}
\bibliography{sample}
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How can I make reference list on TeXnicCenter

Post by localghost »

gcheer3 wrote:[...] But because I wrote above code in Notepad, it is a txt file, not a bib file. I dont know how to insert it in the Latex as follows [...]
Just rename it from sample.txt to sample.bib and use it with the commands you already inserted in your source code.


Best regards
Thorsten¹
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: How can I make reference list on TeXnicCenter

Post by gcheer3 »

thank you.

I already download a bib file, I named it as mysampel

Now I have a new problem. I used as follows:

\begin{frame}
\bibliographystyle{plain}
\bibliography{mysampel}
\end{frame}

there is no error from TexnicCenter. But the pdf showed a blank page for this commend. there is nothing on that page.

the warnings are like this:

this is bibtex, version 0.99c (Miktex 2.7)
The top-level auxiliary file:\parctice.aux
The style fiel: plain.bst
I found no \citation commands while reading file \practice.aux

so what does it mean? how can I use citation commands
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: How can I make reference list on TeXnicCenter

Post by gcheer3 »

And I put the bib and tex in the sample folder
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How can I make reference list on TeXnicCenter

Post by localghost »

You have to compile at last twice after running BibTeX on your source to make the bibliography shown in your document. If that doesn't help, provide a minimal working example (MWE) to make clear what you want and what goes wrong.
gcheer3
Posts: 41
Joined: Wed Jun 25, 2008 4:39 pm

Re: How can I make reference list on TeXnicCenter

Post by gcheer3 »

Thank you,Thorsten.

What do you mean compile twice. Everytime I run a code. I go to the menu bar "build current file". Then I go to 'build---output', Then the pdf file is generated. So do you mean I have to 'build burrent file twice'? It still didnt work
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How can I make reference list on TeXnicCenter

Post by localghost »

Consider your document source file is called foo.tex and you are using the sample.bib file containing your bibliography data. The processing sequence to get a bibliography is as follows.

Code: Select all

latex foo.tex
bibtex foo.tex
latex foo.tex
latex foo.tex
The run with BibTeX will generate a file called foo.bbl, which contains all necessary data extracted from the .bib file to create the references. It is read by the compiler in the next processing steps.
tweeg
Posts: 22
Joined: Tue Jun 24, 2008 5:12 pm

How can I make reference list on TeXnicCenter

Post by tweeg »

If ur bibliography stays empty that might be cuz u dont use any citations like ur error says. U can solve this by usin the nocite command.

Code: Select all

\nocite{book1,book2,book3}
instead of book1 and book2 u use ur "cite-keys" seperated by comma's. In ur example: goossens93
User avatar
localghost
Site Moderator
Posts: 9202
Joined: Fri Feb 02, 2007 12:06 pm

How can I make reference list on TeXnicCenter

Post by localghost »

Code: Select all

This is bibtex, version 0.99c (Miktex 2.7)
The top-level auxiliary file:\parctice.aux
The style file: plain.bst
I found no \citation commands while reading file \practice.aux
I should have read this more carefully. In addition to tweeg I want to supplement that you can use the \nocite{*} command to make every entry of your database shown in your document.
Post Reply