New Bib File
Create a new blank document, change the suffix name to bib, such as Acl.bib
Add the article entry you want to quote, such as the following article:
@article {lafferty2001conditional,
title={conditional random fields:probabilistic models for segmenting and Labeling sequence Data},
Author={lafferty, John and McCallum, Andrew and Pereira, Fernando CN},
year={2001}
}
Copy the contents of the above to your. bib file. If you have more than one reference entry, the other row continues to replicate. methods to get the preceding reference format
The above article is the paper on CRF, if you want to find a reference entry that can be put directly into the. bib file, simply place the title of the article on Google Scholar and then click on the cite below the entry, then select BibTeX. using in the. tex file
One of the most simplified. Tex files is the following:
\documentclass{article}
\begin{document}
We cite \cite{lafferty2001conditional}.
\bibliographystyle{plain}
\bibliography{acl}
\end{document}
That is, you just need to write the following two lines in the document (before \begin, \end):
\bibliographystyle{plain}
\bibliography{acl}
Where \bibliographystyle{plain} Specifies how the reference is rendered, and the common preset style options are PLAIN,UNSRT,ALPHA,ABBRV, and you can try your own results.
Of course, if you use a template with its own reference style (extension is. BST), such as ACL.BST, then change to \bibliographystyle{acl}. Note that writing Acl.bst may cause an error. In addition, if you refer to the other. BST file, you may also need to refer to the template corresponding to the. sty file
The \bibliography{acl} command is used to specify the. bib file that you generated earlier. Also, don't write Acl.bib.
When referencing an entry in the text, use \cite{lafferty2001conditional}, where the lafferty2001conditional in the curly braces is the first line of the entry in the. bib file. The build PDF is compiled with a latex. tex file compiled with a BibTeX. bib file compiles the. tex file with Latex, and this time the reference is already included in the document, but the reference number may not be correct at this point. Finally compile the. tex file with LaTeX, and if all goes well, that's all things are normal.
If you use an editor like TeXShop, the general idea is to first select Latex to run it again, then choose BibTeX to run it again, and then switch latex to run both sides. Attention Matters
Entries in the article that are not \cite{} will not appear in the final reference list of the articles.