Bibtex in latex

Latex provide Bibtex for bilography purpose and for easy referencing. To use Bibtex in our document , we create one .bib file which is called database file. In .bib file, each @book, @standard entries have a key/label. Using this key or label we can reference it anywhere in our document. And there will be one .tex file. Which will import .bib file . After running .tex file, It will create .dvi output file.

Create sample.bib
@book{is4562000,
 title={Indian Standard Plain and reinforced concrete--code of
 practice (IS 456 : 2000)},
 author={Cement and Concrete Sectional Committee, CED 2},
 journal={New Delhi: },
 year={2000}
 publisher={Bureau of Indian Standards}
 }
 
 @book{aci1981aci,
 title={ACI Standard Building Code Requirements for Reinforced
 Concrete (ACI 318-77)},
 author={ACI Committee 318},
 series={ACI standard 318-77},
 url={https://books.google.co.in/books?id=amEOfgtA-DYC},
 year={1981},
 publisher={American Concrete Institute}

 @STANDARD {aci31877,
 title        = "ACI Standard Building Code Requirements for
 Reinforced Concrete (ACI 318-77)",
 organization = "American Concrete Institute",
 institution  = "American Concrete Institute",
 author       = "ACI Committee 318",
 language     = "English",
 number       = "ACI standard 318-77",
 year         = "1981"
 }

Create citedemo.tex

\documentclass[11pt]{article}
 \usepackage{cite}
 \begin{document}

 \title{Individual Spread Footing}
 \author{Manpreet Kaur}
 \maketitle 
 This is demo \cite{is4562000}
 \cite{aci1981aci}
 ~\cite{aci31877}
%-----------import sample.bib file------------%
 \bibliography{sample}{}
 \bibliographystyle{plain}
 \end{document}
Compile and run
$ latex citedemo
$ bibtex citedemo
$ latex citedemo

output:

bibtex

Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s