Latexlatex Small White Primer (2)--how to use. bib file to automatically generate papers reference

Source: Internet
Author: User
Tags format definition gz file

Written in front:

In the postgraduate stage of academic children's shoes are likely to come into contact with latex This paper format editing tools, usually in the paper submission, most journals and meetings will give a latex template, request your paper latex edited into the. pdf version. Here latex small White can not refer to the readers, but to myself. began to use Latex, team inside the only will latex of the sister has graduated say goodbye, and I even how to compile the run will not. But the paper to vote, had to "spot", adhering to the "where not to check where" spirit, completed several papers from Word to latex transplant, now can be "swish" to complete a format modification. So, record the process of get to some of the latex commonly used skills, want to give a little bit of help to latex shoes. The little woman talents, if there is a wrong place to write, just hit me. Email:merrytangmengyun@gmail.com


How to use. bib file to generate paper automatically reference

The latex template given by a general journal or Conference will have its own reference style, so you can use the. bib file to automatically generate the reference style under the template. The following three papers are cited as examples of how to generate the. bib file and then automatically generate reference using the. bib file.

Citation papers:


1. Generate. bib Files

(1) Create a. txt file;

(2) Open Google Academic, search you want to quote the literature;

For example, the first document "Captcha:using hard AI problems for security" search results are as follows, click "Reference";

Come up with such an interface, click on "BibTeX";

Finally come out the following code, copy it to the. txt file.

(3) Repeat the above action until the above code in all references is copied to the. txt file, and the resulting. txt file looks like this:

(4) Save the. txt file as a. bib file.


2.Latex Reference

For example, the reference style in the Latex template that I use is defined in the Ieeetran.cls in the template folder (the. cls file is the Latex format definition file), The. bib file that I generated is named Ref.bib, also in the template folder, and you need to refer to the following two lines of code in the body of the code:

\bibliographystyle{ieeetran}%ieeetran define filename for given template format
\bibliography{ref}%ref to. bib File name


3. Compile and generate reference

(1) Click "LaTex" compile, the template folder will generate *.aux files, *.dvi files, *.log files and *.gz files;

(2) Click "BibTeX" to compile, the template file will generate *.BLG files and *.bbl files;

(3) Click "LaTex" to compile, obtain new *.aux file, *.dvi file, *.log file and *.gz file;

(4) Click "Latex" again to compile, you can view the build result.

The reference I finally generated are as follows:


4. The text of the paper cited

References in the paper are generally referred to as: \cite{tags, here if you want to reference, is the \cite{.bib file in the first line of curly braces}. For example, to refer to reference [1], the code is: \cite{von2003captcha}.


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.