Latex generation of reference documents
BibTeX is a way of using the database to manage the reference procedure, which is used to coordinate latex reference processing.
The BibTeX file has a suffix named. Bib. Let's take a look at an example:
@article {GETTYS90,
Author = {Jim Gettys and Phil Karlton and Scott McGregor},
title = {The {X} Window System, Version 11},
Journal = {Software Practice and experience},
Volume = {20},
Number = {S2},
Year = {1990},
Abstract = {A Technical Overview of the X11 functionality. This is a update of the X10 TOG paper by Scheifler \& Gettys.}
}
Description
The first line @article tells BibTeX that this is an article type reference. There are other formats, such as article, book, booklet, Conference, Inbook, Incollection, inproceedings, Manual, Misc, Mastersthesis, phdthesis , Proceedings, Techreport, unpublished and so on.
The next "Gettys90" is the name of the item that you refer to in the body.
The other is the specific contents of the reference document.
Using BibTeX in Latex
To use the BibTeX database in LaTeX, you must first do the following three things:
1 set the type of reference (bibliography style). The standard is plain:
\bibliographystyle{plain}
Other types include unsrt– basically the same as the plain type, except that the reference entries are numbered in the order of reference, rather than according to the author's alphabetical order.
alpha– is similar to the plain type, when the reference entries are numbered based on the author's name and the Order of the published year.
abbrv– abbreviated format.
2) tag reference (make citations). Insert the latex command when you want to use a reference in the document
\cite{reference article name}
"Reference article name" is the name that follows the @article definition.
3) Tell LaTeX to generate a list of references. Enter before the end of the LaTeX
\bibliography{bibfile}
Here Bibfile is your BibTeX database file bibfile.bib.
Run BibTeX is divided into the following four steps
1. Compile your. tex file with Latex, which is to generate a. aux file, which tells BibTeX will use those references.
2. Compile the. bib file with BibTeX.
3. Compile your. tex file again with Latex, which already contains references in the document, but the reference number may not be correct at this time.
4. Finally compile your. tex file with LaTeX, and if all goes well, it's everything is normal.
Example: Save the example of the above BibTeX as Bibfile.bib.
\documentclass{article}
\begin{document}
We cite \cite{name1} and \cite{name2}.
\bibliography{bibfile}
\bibliographystyle{plain}
\end{document}
Save the above contents as Bibtex-example.tex.
Latex compile once, BibTeX compile once, and then compile with latex two times is done!
Get bib File
The Springer document format can be changed to BibTeX using the following URLs:
http://www.it.usyd.edu.au/~niu/cgi-bin/springer.cgi
About document types: (excerpt from Texguru's latex2e user manual)
@article an article in a journal or magazine.
No less domain author, title, Journal, year.
Can omit domain volume, number, pages, month, note.
@article {name,
Author = {A and B},
title = {Title},
Journal = {journal name},
Volume = {42},
Number = {1},
Year = {2008},
ISSN = {0110-0101},
Pages = {1--8},
doi = {http://doi.xxx.org},
Publisher = {ACM},
Address = {New York, NY, USA},
};
@book entry for a book with a certain publishing house.
No less domain author or editor, title, publisher, year.
can omit domain volume or number, series, address, edition, month, note.
The @booklet entry is a printed work with a cover, but no name of a publishing house or sponsoring agency.
No less domain title.
Can omit domain author, howpublished, address, month, year, note.
The @conference is the same as the @inproceedings below.
@inbook entry as part of a book (chapter, section, or some page).
No less domain author or editor, title, chapter and/or pages, Publisher,year.
can omit domain volume or number, series, type, address, edition, Month,note.
@incollection item is part of a book that has its own title.
No less domain author, title, BookTitle, publisher, year.
Can omit domain editor, volume or Number,series, type, chapter, pages,address, edition, month, note.
@inproceedings entry is an article in the conference paper.
No less domain author, title, BookTitle, year.
Can omit domain editor, volume or number, series, pages, address, month,
Organization, Publisher, note.
@InProceedings {b07name,
Author = {A and B},
title = {Title},
BookTitle = {Proceedings of the Conference},
Address = {Sydney, Australia},
month = Nov,
Year = 2008,
Pages = {1-2},
Affiliation = {uni-name, Country},
URL = {http://url/}
};
@manual entries are technical documents.
No less domain title.
You can omit domain author, organization, address, edition, month, year, and note.
@mastersthesis entry for Master's thesis.
No less domain author, title, school, year.
You can omit field type, address, month, and note.
@misc entry is not part of any other type of work.
Do not have a few fields.
Can omit domain author, title, howpublished, month, year, note.
@misc {name,
Author = "A",
title = "title",
howpublished = "Website",
Year = {2008},
Note = {\url{https://www.mysite.org}}
};
@phdthesis entry for doctoral dissertation.
No less domain author, title, school, year.
You can omit field type, address, month, and note.
@proceedings entries are conference proceedings.
No less domain title, year.
can omit domain Editor,volume or number, series, address, month,
Organization, Publisher, note.
@techreport a report printed by a school or other research institution.
No less domain author, title, institution, year.
You can omit field type, number, address, month, and note.
@techreport {name,
Author = {A and B}
title = {Title},
Institution = {Institution rpt No.}
Year = {2008}
};
@unpublished entry for unpublished works with authors and titles.
No less domain author, title, note.
Can omit domain month, year.
You can also have an ellipsis domain key and crossref in each entry
Unable to generate reference reason
Editing and use of references is really a headache, if careless negligence, the document list more written, the results of the text is not cited, such a mistake is intolerable. And in the process of writing, they often confused format, meetings, books, URLs and other formats, more cumbersome. Fortunately, many of the periodical meetings will provide templates. I'm using the Ctex editing tool here, here is a special introduction to the use of bib file to write references, the advantage is that you can write a lot of references in the bib file, and then a convenient reference, if you use a document, then it will be shown in the text, and vice versa, it appears in the bib, It will not appear in the article. and editing references in this way, the order of references is arranged alphabetically and eliminates the hassle of collating references. 1. Because the template is different, so the format written in the text is not the same. As IEEE needs: \bibliographystyle{ieeetran} \bibliography{ieeeabrv,bare_conf} The first line represents the use of the BST file, this does not care about it. The first argument in the second line represents the bib file used, and the second parameter is the bib file you wrote yourself.
If the other template: \bibliographystyle{ownbib} Only this sentence can be, the parameter is their own bib file name.
2. The compilation process is first latex and then bib the final latex so that it is compiled, and BBL and aux files 3 are generated as well. Bib documents are usually written in several formats, such as meetings, books, papers, etc. Generally, the website will provide the reference format of the paper, export citation-> Select bib format-> download. Then use Notepad to open, all the found are glued to a notepad, and then the suffix to bib. Summarize the usual formats: @INPROCEEDINGS {8, Author={carbunar, B. and Grama, A. and Vitek, J.}, Booktitle={parallel and distributed System S, 2004. Icpads 2004. Proceedings. Tenth International Conference on}, title={distributed and dynamic Voronoi overlays for coverage detection and distributed Hash tables in Ad-hoc networks}, year={2004}, Month={july}, volume={}, number={}, pages={549-556}, keywords={Voronoi Diagram ad hoc network; Ad-hoc wireless network; Coverage detection; Coverage-boundary detection; Distributed Voronoi overlays; Distributed algorithm; Distributed hash table; Dynamic Voronoi overlays; ad hoc networks; Computational geometry; Distributed algorithms; File organisation}, doi={10.1109/icpads.2004.1316137}, issn={1521-9097}, @INPROCEEDINGS is a format type. The first argument that follows is the one you referenced in the textLabel. For example, in the text/cite{8}. The other formats are: @ARTICLE @book
Finally, note that bib files, BST files and their own papers to be in a folder directory or give a clear path bib file is not necessary and the article in a folder, tell the path on the line, for example
\bibliography{e:/xxx/bib_name}. (Thanks for Zhao Huanhua's supplement)
Again recommend Zhao Huanhua a Bowen, very good hope can be helpful to everybody writing. http://bbs.sciencenet.cn/home.php?mod=space&uid=117412&do=blog&id=288385 find a description of a very clear URL http:// www.csse.monash.edu.au/documents/bibtex/