Latex references BibTeX use of reference documents __ Other

Source: Internet
Author: User
Tags documentation unique id
Quote from--http://www.cnblogs.com/parrynee/archive/2010/03/02/1676369.html
This article assumes that you already have the basics of latex and BibTeX.

When you use Latex to write documents, you may use BibTeX in managing references,
Perhaps you will be too troublesome to choose to use
\BEGIN{THEBIBLIOGRAPHY}{10}
\bibitem xxxx
\bibitem xxxx
\end{thebibliography}
The way to process the reference, and then \cite{} to refer to it.

But what I'm going to say is, if you only occasionally use the reference (once management, once used), then do not need to use BibTeX to manage the reference, if often used, or choose to use BibTeX to manage your reference more (once management, lifelong use)

BibTeX is what, these are not much introduced, a lot of lnote, such as documents are introduced, this article only describes how to use BibTeX.
--------------------
When used, two files are generally exposed ,. Bib and. BST two files,. Bib is your reference data file. . BST is generally provided by periodicals or magazines, and BST sets the way in which references appear at the end of the article, such as setting up sorting methods andThe name of the author is abbreviated or not abbreviated, the title should not be capitalized, these trivial things, these do not have to worry too much. We can maintain bib files.

Let's see what the. bib file looks like:

@ARTICLE {dbhat,
Author = {D. Bhat and S. Nayar},
title = {Ordinal Measures for image correspondence},
Journal = {IEEE transactions on pattern analysis and Machine Intelligence},
Year = {1998},
Volume = {20 (4)},
Pages = {415-423},
Owner = {FLYSKYMLF},
timestamp = {02}
}

@CONFERENCE {Hampapur,
Author = {Hampapur, A. and Bolle, R.},
title = {Comparison of sequence matching techniques for video copy detection},
BookTitle = {in conference on Storage and retrieval for Media Databases},
Year = {2002},
Pages = {194-201},
Owner = {FLYSKYMLF},
timestamp = {15}
}

It is probably all made up of such a label, each representing a document, all written in this way.
@ARTICLE @CONFERENCE These specify the type of literature, ARTICLE is a periodical article, conference is a meeting article that can be distinguished from the name. Types have the following (from http://amath.colorado.edu/documentation/LaTeX/reference/faq/bibstyles.html):
@articleAn article from a journal or magazine
@bookBook A and an explicit publisher @bookletA work that is printed and bound, but without a named publisher or sponsoring institution
@conferenceThe same as inproceedings @inbookA part of the book, which May is a chapter (or section or whatever) and/or a range of pages @incollectionA part of the book has its own title @inproceedingsAn article in a conference proceedings @manualTechnical documentation @mastersthesisA Master ' s thesis @miscUse this type when nothing else fits @phdthesisA PhD Thesis @proceedingsThe proceedings of a conference @techreportA published by a school or institution, usually numbered within a series @unpublishedA document has a author and title, but not formally published @collection Not a standard entry type.Use Proceedingsinstead. @patent Not a standard entry type.Not translated, very simple text.
----
The text immediately following the @article{is the tag ID of the document, which needs to be unique in a bib file because we need to use this ID to refer to \cite{} in Tex, and of course we need a unique value (and don't be afraid, if you write it again, BibTeX will not be passed to you at compile time, you can modify it again.
Then the label of the following is also very simple, author is the author Ah, title is titled Ah, this does not say, we will see the affirmation is clear.

PS: Intuitive GUI interface can be managed, recommend the use of Jabref to manage, I used this, very convenient, very fast.
Jabref Cross-platform, eager Java development of an dongdong, but also free. Ubuntu Direct sudo apt-get install jabref can, the other version of Linux's own processing, I have no use, win under the version, installed on the line.

After you have written these, save them, and then add the following two lines to your Tex document:
\BIBLIOGRAPHYSTYLE{BST filename, note do not suffix}
\bibliography{bib file name}
The add position is after the text of the article, before \end{document},

When referenced in the body, the \cite{id} method is used to refer to the ID as the unique ID mentioned above.PS: If there is no BST file, then you need to use the default to provide several BST templates:---(source: http://zzg34b.w3.c361.com/package/reference.htm) plain, in alphabetical order , the comparison order for the author, the year and the title unsrt, the style with the plain, just according to the order of the reference sequence Alpha, with the author's first letter + year after the two digits as the label, sorted alphabetically abbrv, similar to plain, the month of the whole spell to abbreviation, more compact IEEETR, International Institute of Electrical and Electronic Engineers Journal style ACM, American Computer Society journal Style Siam, journal style of the American Society of Industrial and Applied Mathematics Apalike, Journal of the American Psychological Association there are many, not listed here, there are all types. It is generally simple to use plain or alpha, ieeetr these are for specific meetings to use. Above also said, some periodicals and the like will also provide their own BST file, to the relevant web site to download. 


After both Tex and bib are set up, they can be compiled and compiled in 4 steps: 1.
Latex Xx.tex compiles the Tex file and generates AUX files without errors, aux files contain information that references them.
                 2. BibTeX Xx.aux detects the relevant literature in the bib file according to the information recorded in the Aux file, and detects any errors in the related writing in bib.
                 Mistakes will prompt, the above said that the modification of the time to detect at this time. No error will generate BBL file, you can open the BBL file to see it, BBL inside is actually the first of this article is the direct use of \begin{thebibliography}
                            {Ten} \bibitem xxxx \bibitem xxxx
\end{thebibliography} in this situation.
3. Latex Xx.tex compiles again and compiles the references into the document.

4. Latex Xx.tex three times compiled, compile the cross-reference correctly. Finished, you can turn on DVI to see the effect. ~
~ If it's too much trouble, you can write a script or execute multiple commands at once. I usually put all of the written line to use: Latex My.tex; BibTeX My.aux; Latex My.tex; Latex My.tex; Dvipdf;
Acroread my.pdf; Ps:shell script I used not familiar, not shortcoming ^_^ if in the thesis writing, the General Direct first view of DVI can be (the dvipdf removed, replaced by Xdvi My.dvi) finally regenerated into PDF because dvipdf need a little time (especially when using Chinese, relatively slow, May be the problem of font embedding, not very clear, because dvipdf compile all English paper is still relatively fast.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.