Citing and Referencing Using Bibtex
Citing and Referencing Using Bibtex
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.)