0% found this document useful (0 votes)
177 views3 pages

Citing and Referencing Using Bibtex

Bibtex is a tool for creating bibliographies in LaTeX documents. It allows references to be entered once in a Bibtex database file and then reused across multiple documents while maintaining a consistent citation and bibliography style. The Bibtex database file contains bibliographic information in a standardized format. In a LaTeX document, the \bibliography and \bibliographystyle commands are used to specify the Bibtex database file and bibliography style. Compiling involves running LaTeX, Bibtex, and LaTeX again to generate the formatted bibliography. Maintaining a master Bibtex database allows references to be consistently cited across documents.

Uploaded by

Vishnu Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
177 views3 pages

Citing and Referencing Using Bibtex

Bibtex is a tool for creating bibliographies in LaTeX documents. It allows references to be entered once in a Bibtex database file and then reused across multiple documents while maintaining a consistent citation and bibliography style. The Bibtex database file contains bibliographic information in a standardized format. In a LaTeX document, the \bibliography and \bibliographystyle commands are used to specify the Bibtex database file and bibliography style. Compiling involves running LaTeX, Bibtex, and LaTeX again to generate the formatted bibliography. Maintaining a master Bibtex database allows references to be consistently cited across documents.

Uploaded by

Vishnu Prasad
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 3

CitingandreferencingusingBibtex

BibtexisusedforcreatingabibliographyinanyofyourLaTeXdocuments.
WhyshouldyouuseBibtex?
AfterenteringabibliographicitemyoureusethesameentrysoBibtexmakesforgreatefficiency.
Onlyonebibliographicfileisrequired(butyoucanuseseveral).
Areferenceneedonlybeenteredonceinthisdatabase(andupdatedifnecessarylater)andcan
thenbereusedforanysubsequentpaper,bookchapterorbook(evenifitisforapublicationwitha
completelydifferentbibliographicstyle).
Thestyleofthebibliographyorreferencelistisdeterminedbyasimpleparameter.
Althoughtheintialsettingup,hopefullyforyourfirstpaper,takesmoreeffortthanotherLaTeX
biblographicmethods,therearedramaticsavingsafterwardsandfromthenonthetechniqueis
extremelysimple.
TomakethebestuseofBibtexfirstcompileaMasterBibliography.Youcanthenusethisforallfuture
LaTeXdocuments.
1. Createadatabasefile,say,(Master.bib)thatliststheitemsthatyouwanttoreferenceinBibtex
format.
2. SpecifythestyleandlocationofthebibliographyinyourLaTeXdocumentbyincludinginyour
LateXcodethecommand
\bibliographystyle{bibstyle}
wherebibstyleisdefinedbelow,anywhereinyourdocumentandthecommand
\bibliography{Master}

whereyouwantthebibliography/referencelisttoappear.
3. RunlatexandbibtexasdescribedunderCompilingbelow.

Example
HereistheLaTeXcodeforthetextinthelibrarypage
\documentclass{article}
\begin{document}
\bibliographystyle{plain}%Chooseabibliograhpicstyle
%
Note.ThisisthePostscriptversionwithplainbibliographicstyle.
MostoftheacademicstaffintheSchoolofComputerScienceandSoftwareEngineeringhave
publicationsintheirfieldofexpertiseorresearch.Themajorityofthepublicationsappear
injournalsorproceedingsofconferences.Articlesappearinginjournalsmaybewrittenbya
singleauthor~\cite{Meyer2000}.Wheretherearemultipleauthors,thecitationinthetext
usuallynamesonlythefirstauthor,forexampleKimMarriott'sarticleonlogic
programming~\cite{Codishetal2000}.ThesamefatebefallsHenryWu~\cite{Huetal2000}.Some
authorscontributeachaptertoeditedbooks~\cite{WallaceandKorb1999}.Others,forexample
ChristineMingins,jointlypublishabook~\cite{Jezequeletal2000}.DamianConwayisaworld
expertonPerl.Aswellashavingwrittenabookonthistopic~\cite{Conway2000},hehasalso
beenthesubjectofarticles~\cite{Johnston2000}.
%
\bibliography{Master}
\end{document}

ExampleoftheBibliographicDatabase
Master.bib
@ARTICLE{Meyer2000,
AUTHOR="BerndMeyer",
TITLE="Aconstraintbasedframeworkfordiagrammaticreasoning",
JOURNAL="AppliedArtificialIntelligence",
VOLUME="14",
ISSUE="4",
PAGES="327344",
YEAR=2000
}
@ARTICLE{Codishetal2000,
AUTHOR="M.CodishandK.MarriottandC.K.Taboch",
TITLE="Improvingprogramanalysesbystructureuntupling",
JOURNAL="JournalofLogicProgramming",
VOLUME=""43",
ISSUE="3",
PAGES="251263",
YEAR=2000
}
@inproceedings{Huetal2000,
author="J.Hu,andH.R.WuandA.JenningsandX.Wang",
title="Fastandrobustequalization:Acasestudy",
booktitle="ProceedingsoftheWorldMulticonferenceonSystemics,Cyberneticsand
Informatics,(SCI2000),Florida,USA,2326July2000",
publisher="InternationalInstituteofInformaticsandSystemics",
address="FL,USA",
pages="398403",
year="2000"
}
@Book{Conway2000,
author={DamianConway},
title={Object{O}riented{P}erl:{A}comprehensiveguidetoconceptsandprogramming
techniques},
publisher={ManningPublicationsCo.},
year={2000},
address={Connecticut,USA}
}

Noticethateacharticlehasakey(suchasConway2000)whichisusedtocitethearticle.
Bibliographicstylesthatcanbeusedinsteadofplainincludeabbrv,alpha,plain,unsrtandacm
fortheAssociationforComputingMachinery.Othersareavailable.
The~beforethe\citepreventsalinebreakbeforethe[1].

Compilingtheexample
Savetheabovetextintoafilecalledexample.tex
Nowusethefollowingcommands
1. latexexample
2. bibtexexample
3. latexexample
4. latexexample

5. dvipsexample
Note:AsusualinLaTeXyoudonotneedalltheserepetitionseverytimeandthatyouonlyneedtorun
Bibtexifthereferenceschange.
IfyoupreferyouroutputinPDFformatreplacethelasttwocommandsby
pdflatexexample

TheresultingpostscriptoutputlookssimilartotheVancouverstyleinthelibrarypage.
(SourcecodeforthePostscriptversion.)
HereistheresultingPDFoutputusingtheACMstyle.
(SourcecodeforthePDFversion.)

You might also like