References to latex references

Source: Internet
Author: User

Original link: http://blog.csdn.net/chl033/article/details/5927207

Original link: http://blog.sina.com.cn/s/blog_8f8f6f6f01015sgb.html

First, use thebibliography Label

1. Basic Environment

\begin{thebibliography}{}
\bibitem[display symbol]{reference tag} book Title, Author
\end{thebibliography}

The number in the curly braces of \begin{thebibliography}{} indicates the maximum label value. \bibitem represents a documentary record. The [display symbol] indicates the label displayed in the reference area, which is not filled in, and is numbered by default using a digital 1,2,3. A reference label is a label that is referenced in the body. References and other references are somewhat different and need to be referenced using the \cite{reference tag.
2, the use ofThe default thebibliography automatically adds title reference, so you do not need to add it repeatedly; The default reference is one row in line spacing, which can sometimes seem too large. You can reduce line spacing by adding \addtolength{\itemsep}{-1.5ex} after \begin{thebibliography}{}. -1.5ex represents a 1.5ex reduction per line. In fact, careful observation can be found that thebibliography is actually an enumeration environment, so for itemize and enumerate, you can reduce the line spacing in the same way. The use of thebibliography is very cumbersome. The author and other information need to be filled in. Is there any better way? The answer is: yes. That's bibte.
Second, use BibTeX reference database

BibTeX is a format and a program used to coordinate the processing of latex reference documents.

BibTeX the use of a database to manage references. The BibTeX file has a suffix named. Bib. Let's take a look at an example

@article {name1,
Author = {Author, multiple authors with and join}
title = {Header},
Journal = {Periodical Name},
Volume = {Volume 20},
Number = {Page numbers},
Year = {years},
Abstract = {Abstract, this is mainly referred to the time of their own reference, this line is not necessary}
}

@book {name2,
Author = "Author",
Year= "Year 2008″,
Title= "title",
Publisher = "Publisher Name"
}

Description: The first line @article tells BibTeX 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 "Name1″" is the name that you apply this entry 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}

Place the above command behind the/begin{document in the LaTeX document. 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
There are four steps to compile your. tex file with Latex, which is to generate a. aux file, which tells BibTeX will use those apps. Compile the. bib file with BibTeX. 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. Finally compile your. tex file with LaTeX, and if all goes well, it's all normal.

Example: Save the example of the above BibTeX as Bibtex-example.bib.

/documentclass{article}
/USEPACKAGE{CJK}
/begin{document}
/begin{cjk}{utf8}{gkai}
% i use Latex under Linux, window user will change the previous line to/begin{cjk}{gbk}{kai}
Text/cite{name1}/cite{name2}
Chinese
Write the Reference in Latex into Chinese "references"
% if the document class is article or something, use/renewcommand/refname{reference}
% if the document class is book or something, use the/renewcommand/bibname{reference}
/renewcommand/refname{Reference}
/bibliographystyle{plain}
/bibliography{Bibtex-example.bib}
/END{CJK}
/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.




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.