LaTeX-Old-Version/C2/Bibliography/English

From Script | Spoken-Tutorial
Jump to: navigation, search

Welcome to this brief tutorial on creating references using LaTeX and BibTeX. What you first need to do is to create a database of references as in this file ref.bib. Let’s go down this file and lets go back to the top. Each of these references begins with a unique key word. For example, the key word for this reference is KMM07. In the LaTeX file, let me open the LaTeX file, at the place where you want to use a reference give the command cite key word. For example cite key word, cite keyword, Look at this, cite KMM07, the first reference we saw in ref.bib. The next thing you have to do is to include the name of the file that has the references in the source file. Here I have included it towards the end of this document – bibliography ref. Recall that the references are in the file ref.bib. Finally you have to say what bibliography style is to be used. That is included at the top of this source file. This command bibliography style plain. Suppose that we use plain style here, the following sequences of commands is to be executed to create the references in the plain style.

First compile the source file using pdf LaTeX references. Execute the command ‘BibTeX references’. Third one compile the source file, twice more, using pdf LaTeX references. Once. Twice. The references are now created, let’s go and see. The second page, here is the text, here is the list of references. Let’s just go down. The plain style lists the references in alphabetical order and with numbering. These numbers are used in the main text as well. The referencing style u-n-s-r-t is identical to the plain style but for one difference. Put u-n-s-r-t here. References are listed in the order they are invoked first. Let us change the plain to u-n-s-r-t, like the way we have done, and then repeat the process of LaTeXing and BibTeXing. Which is, first, LaTeX the source file using pdf LaTeX, then BibTeX the source file, and then LaTeX the source file twice more. First time, second time. Note what has happened now. You can see that this has generated the references in the order they are cited in the paper. For example, this first reference is cited first here. Reference two has been cited ‘2’ because it has been cited here. It has been listed as second in this list. Let’s just go down this list. Okay. Lets come back. To produce the references in the way the computer scientists use, change the style to alpha. Let’s change this to alpha. Save and then repeat the LaTeXing and BibTeXing procedure. Which is, pdf LaTeX source file, BibTeX references, pdf LaTeX references once, twice. Note that.

Now, we obtain this style of referencing, let’s just go down this and see. Okay. There are many other styles of referencing. I have now downloaded two files: Harvard.sty and ifac.bst. Make the following changes. First, include Harvard in the use packages command. Like I do now and then change the style to ifac. Save the file. Now let’s do the LaTeXing and BibTeXing procedure once again. Latex, BibTeX, LaTeX once, LaTeX twice. We get the reference list as this pdf file. Let’s just go down once. It is alphabetically arranged, but there are no serial numbers compared to the plain style. The referencing is by author name and year author name and year. In this style, there is a special command called cite-as-noun. That helps, put the name of the person cited in running text and not within brackets. Note that here we have used only side and we have got all the references within brackets only. Suppose for example, look at this second paragraph, the textbook by cite KMM07, the textbook by, the whole thing comes within the brackets. Suppose, I change this to cite-as-noun. Save it and compile it. As a result, now, this Moudgalya has come outside the bracket in running text. If you need some other referencing style, search the web. There are good chances that someone has already written the required sty and bst files.

This brings us to the end of this tutorial. Thank you for joining. This is Kannan Moudgalya signing off. Good-bye.

Contributors and Content Editors

Nancyvarkey