bibtex使用.docx
- 文档编号:9100364
- 上传时间:2023-02-03
- 格式:DOCX
- 页数:12
- 大小:20.48KB
bibtex使用.docx
《bibtex使用.docx》由会员分享,可在线阅读,更多相关《bibtex使用.docx(12页珍藏版)》请在冰豆网上搜索。
bibtex使用
BibTeXandbibliographystyles
Referencesandcitationsarebesthandledinaconsistentwaybyusing BibTeX.Inthismethod,yousupplyalltherelevantinformationaboutreferencesina``.bibfile''withoutregardtoorderingorstyle.(Seethesamplefile myrefs.bib,below.)ThenyouletBibTeXformatallcitationsandreferenceentriesaccordingtothechosenbibliographicstyle,andyoudon'thavetosweatallthefontandpunctuationandorderingdetailsyourself.
Thereference/bibliographysectionusuallyappearsattheendofanpublication.InyourLaTeXfile,thesetwocommandsinsertthereferencesection:
\bibliographystyle{xxx}
\bibliography{yyy}
The``xxx''isa style name-- plain or abbrv or siam or alpha oranyofdozensofotheravailablestyles,manylisted below.
The``yyy''isthenameofthebibfile(yyy.bib)containingthereferencedatabase.
Forexample,thecommand \bibliography{myrefs} wouldcallonfile``myrefs.bib''.
Belowfindthefollowing:
∙a sampleLaTeXfile whichusesthe \bibliography and \bibliographystyle commands
∙the bibfile(myrefs.bib) usedbytheLaTeXfile,
∙the sequenceofcommands forcompilingthebibliographyandtheLaTeXdocument
∙alistofsomepossible bibliographystyles
∙otherBibTeX reference/FAQ information;listsofentrytypesandfields
SampleLaTeXsourcecodefile
file``mydocument.tex'':
\documentclass[11pt]{article}
\author{JohnDoe}\title{SampleDocument}
\begin{document}
\maketitle
\section{Introduction}
AccordingtothehandbookofvanLeunen\cite{vanleunen},
thisparagraph---andcertainlythis
section---shouldbelongerthanonesentence.
\section{Morereferences}
Hereweseeifthereference\cite{Narendra_1990}
totheNarendraarticlecomesoutOK,inparticular,
withvolume,number\&pages.
ThenecessaryinformationforthosewhowoulduseBibTeX
isavailableinthe1988documentofProf.\Patashnik\cite{btxdoc}.
InterestedreaderswhocanreadFrenchmayalso
wanttoreadPoussin'sproof\cite{primes},though
ithasnothingatalltodowithBibTeX.
\section{Conclusion}
Thisistheconcludingparagraph.HereIciteanotherof
OrenPatashnik'sbooks\cite{btxhak}and,again,
vanLeunen'sandPoussin's\cite{vanleunen,primes}.
\bibliographystyle{plain}%(usesfile"plain.bst")
\bibliography{myrefs}%expectsfile"myrefs.bib"
\end{document}
SampleBibTeXdatabasefile
Youcanfind .bib entriesformajorpublicationswithasimpleGooglesearch.Linkstosomelargeonline .bib databases(foundwithGoogle,2004,keywords"bookarticleincollectionbibphysics",etc.)include physics
(1), physics
(2), math
(1), math
(2), math(3), programming
(1), programming
(2), TeX/Publishing.
Butitisn'thardtoenterthedatabaseinformationyourself.Useanytexteditor;chooseyourownkeywordforapublication,thenlistitsinformationfields key="info",onelineatatimeinanyorder.Notethissampledatabasefile``myrefs.bib'':
@string{jgr="J.~Geophys.~Res."}
@MISC{primes,
author="CharlesLouisXavierJosephdelaVall{\'e}ePoussin",
note="Astrongformoftheprimenumbertheorem,19thcentury",
year=1879
}
@INBOOK{chicago,
title="TheChicagoManualofStyle",
publisher="UniversityofChicagoPress",
edition="Thirteenth",
year=1982,
pages="400--401",
key="Chicago"
}
@BOOK{texbook,
author="DonaldE.Knuth",
title="The{{\TeX}book}",
publisher="Addison-Wesley",
year=1984
}
@BOOK{latexbook,
author="LeslieLamport",
title="{\LaTeX\rm:
}{A}DocumentPreparationSystem",
publisher="Addison-Wesley",
year=1986
}
@UNPUBLISHED{btxdoc,
author="OrenPatashnik",
title="{UsingBibTeX}",
note="DocumentationforgeneralBibTeXusers",
month=jan,
year=1988
}
@UNPUBLISHED{btxhak,
author="OrenPatashnik",
title="DesigningBibTeXStyles",
note="ThepartofBibTeX'sdocumentation
that'snotmeantforgeneralusers",
month=jan,
year=1988
}
@BOOK{strunk,
author="Strunk,Jr.,WilliamandE.B.White",
title="TheElementsofStyle",
publisher="Macmillan",
edition="Third",
year=1979
}
@book{vanleunen,
title="AHandbookforScholars",
author="Mary-ClairevanLeunen",
publisher="Knopf",
year="1979"
}
@ARTICLE{Zurek:
1993,
AUTHOR={Zurek,R.W.andMartin,L.J.},
TITLE={InterannualVariabilityofplanet-encirclingdustactivityon{M}ars},
YEAR={1993},
JOURNAL=jgr,
VOLUME={98},
NUMBER={E2},
PAGES={3247--3259}
}
@Article{Narendra_1990,
author={K.S.NarendraandK.Parthsarathy},
title={IdentificationandControlofDynamicalSystem
usingNeuralNetworks},
journal="IEENN",
year={1990},
volume={1},
number={1},
month={},
pages={4-27},
note={},
annote={}
}
Compilingthedocumentandbibliography
Tofullycompileandcross-linkreferencesonmustrepeatsomecommands:
step
#
tocreatefilemydocument.dvi:
tocreatefilemydocument.pdf:
resultofcommand:
1
latexmydocument
pdflatexmydocument
creates .aux filewhichincludeskeywordsofanycitations
2
bibtexmydocument
bibtexmydocument
usesthe .aux filetoextractcitedpublicationsfromthedatabaseinthe .bib file,formatsthemaccordingtotheindicatedstyle,andputstheresultsintoina .bbl file
3
latexmydocument
pdflatexmydocument
insertsappropriatereferenceindicatorsateachpointofcitation,accordingtotheindicatedbibliographystyle
4
latexmydocument
pdflatexmydocument
refinescitationreferencesandothercross-references,pageformattingandpagenumbers
Somebibliographystyles
ThePDFfile bibstyles.pdf illustrateshowthesebibliographicstylesrendercitationsandreferenceentries:
1:
ieeetr
2:
unsrt
3:
IEEE
4:
ama
5:
cj
6:
nar
7:
nature
8:
phjcp
9:
is-unsrt
10:
plain
11:
abbrv
12:
acm
13:
siam
14:
jbact
15:
amsplain
16:
finplain
17:
IEEEannot
18:
is-abbrv
19:
is-plain
20:
annotation
21:
plainyr
22:
decsci
23:
jtbnew
24:
neuron
25:
cell
26:
jas99
27:
abbrvnat
28:
ametsoc
29:
apalike
30:
jqt1999
31:
plainnat
32:
jtb
33:
humanbio
34:
these
35:
chicagoa
36:
development
37:
unsrtnat
38:
amsalpha
39:
alpha
40:
annotate
41:
is-alpha
42:
wmaainf
43:
alphanum
44:
apasoft
(Thewebpage http:
//www.cs.stir.ac.uk/~kjt/software/latex/showbst.html alsoillustratesseveralbibliographystylesforeasycomparison.)Ofthe44styleslistedabove,thefirst21insertjustanumberinbracketsatthepointofcitation[2],while#22-37usesomevariationofauthor/year[K.S.NarendaandK.Parthsarathy,1990],andtherestusesomeidiosyncraticreferencecode.Someofthestylesre-orderthereferencesinthebibliographyinalphabeticalorderofauthor,whileotherslistthemintheorderthattheyarefirstcited.
SeveralofthesestylesarepartofallLaTeXinstallations,andotherscanbedownloadedfrom http:
//www.tug.org/tex-archive/biblio/bibtex/contrib/.Eachisafilewiththesuffix .bst;forexample,touse abbrvnat style,youmusthavethefile abbrvnat.bst installedinyourLaTeXdirectory,orinyourcurrentworkingdirectory,oranywherewhereLaTeXcanfindit.
Thosedissatisfiedwiththe 100+stylesavailableonline candesigntheirown,iftheywish;seeOrenPatashnik's DesigningBibTeXStyles.
Otherreferenceinformation
(1) AnFAQregardingmultipleauthornames;Inabibfileyoulist all theauthors'namestogetherjoinedwithword``and'',e.g.,
author="JaneSmithandE.B.JohnsonandStrunk,Jr.,William",
BibTeXthendoestheappropriatethingstonamesandinitialsandpunctuation,accordingtothechosenbibliographicstyle.
(2) WhenusingBibTeX,theinteractionbetweennamesandaccentingissomewhattricky.Youshoulduse`G{\"o}del'or`G{\"{o}}del',andnot`{G{\"{o}}del}'or`{G\"{o}del}'.(Thanksto DanaJacobsen forthistip.)
(3) STANDARDENTRYTYPES:
@article
Anarticlefromajournalormagazine
@book
Abookwithanexplicitpublisher
@booklet
Aworkthatisprintedandbound,butwithoutanamedpublisherorsponsoringinstitution
@conference
Thesameas inproceedings
@inbook
Apartofabook,whichmaybeachapter(orsectionorwhatever)and/orarangeofpages
@incollection
Apartofabookhavingitsowntitle
@inproceedings
Anarticleinaconferenceproceedings
@manual
Technicaldocumentation
@mastersthesis
AMaster'sthesis
@misc
Usethistypewhennothingelsefits
@phdthesis
APhDthesis
@proceedings
Theproceedingsofaconference
@techreport
Areportpublishedbyaschoolorotherinstitution,usuallynumberedwithinaseries
@unpublished
Adocumenthavinganauthorandtitle,butnotformallypublished
@collection
Notastandardentrytype. Use proceedings instead.
@patent
Notastandardentrytype.
(4) STANDARDFIELDS
address
Usuallytheaddressofthe publisher orothertypeofinstitution.Formajorpublishinghouses,vanLeunenrecommendsomittingtheinformationentirely.Forsmallpublishers,ontheotherhand,youcanhelpthereaderbygivingthecompleteaddress.
annote
Anannotation.Itisnotusedbythestandardbibliographystyles,butmaybeusedbyothersthatproduceanannotatedbibliography.
author
Thename(s)oftheauthor(s),intheformatdescribedintheLaTeXbook.
booktitle
Titleofabook,partofwhichisbeingcited.SeetheLaTeXbookforhowtotypetitles.Forbookentries,usethe title fieldinstead.
chapter
Achapter(orsectionorwhatever)number.
crossref
Thedatabasekeyoftheentrybeingcrossreferenced.Anyfieldsthataremissingfromthecurrentrecordareinheritedfromthefieldbeingcrossreferenced.
edition
Theeditionofabook---forexample,``Second''.Thisshouldbeanordinal,andshouldhavethefirstlettercapitalized,asshownhere;thestandardsty
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- bibtex 使用
![提示](https://static.bdocx.com/images/bang_tan.gif)