资源描述:
《A BibTeX Guide via Examples》由会员上传分享,免费在线阅读,更多相关内容在教育资源-天天文库。
1、ABibTEXGuideviaExamplesKi-JooKimVersion0.2April6,2004AbstractThisdocumentdescribeshowtomodifycitationandbibliographystylesinthebodytext,howtocreateabibliographystylefile,andhowtomodifythebibliographystylefile.1IntroductionTherearetwomethodsforaddingbibliographyattheendofyourLATE
2、Xdocuments.Thefirstmethodistousethebibliographyenvironmentasshownbelow:begin{thebibliography}{99}bibitem{knuth84}Knuth,D.E.emph{TheTEXbook},Addison-Wesley,Reading,Massachusetts,secondedition,1984,end{thebibliography}Referenceentriesareaddedusingbibitem{key}andarecalledvia
3、cite{key}inthebodytext.Youcanchangethebibliographystylebyformattingthebibitementry.Eventhoughthisisaconvenientwaytohandlebibliography,therearetwomainproblems.Youhavetoformateachbibliographyitemandhavetoreformatitwhenyouarerequiredtochangethebibliographystyle.Thus,thismethodisg
4、oodforshortLATEXdocuments.ThesecondmethodistouseBibTEX.Inthiscaseyouneedtwofiles:bibliographystylefile(bstfile)andbibliographydatabasefile(bibfile).InyourLATEXsourcefile,youhavetoaddthefollowingtwolinesforbibliography:bibliographystyle{unsrt}%Bibliographystylefile,unsrt.bstbibliog
5、raphy{moga}%Bibliographydatabasefile,moga.bibWhenyoutypebibtexatthecommandprompt,thebibfileisformattedinaccordancewiththepredefinedrulesinthebstfile.TheresultingfileisabblfilethatisreferencedbyyourLATEXsourcefile.Sothegeneralcompilesequenceis:latex→bibtex→latex.Onceyouhaveacorrectbs
6、tfile,thismethodisgoodforwritinglongdocumentssuchasjournalpapers,reports,books,andyourdissertation.Youcanfindlotsofbibliographystylefilesinthe/texmf/bibtex/bstdirectoryandseetheBibTEXStyleExamples.Ifyouarelucky,youmayfindthebibliographystylefilefromyouruniversityorthepublisher.Nowt
7、heproblemishowtocrteate/modifyabstfileifyoucannotfindarightoneandarestrictlyrequiredtofollowthecitationandbibliographystylesbythepublisher.Forexample:•Howcanwechange[1]inthebodycitationto(1),(Kim,2000),Kim(2000),1,orwhateverthepublisherwants?⇒Citationstyle.•Howcanwechange[1,2,3,
8、4,12,14,13,7]inthebodycitationto[1-4,7,12-14]?⇒Citationstyle.