8
TABLEI
MATHSPACINGSUSEDBYLATE
XSizeWidth
Cmd.UsedforExamplesmall
1/6em\,symbolsabmedium2/9em\:binaryoperatorsa+blarge5/18em\;relationaloperators
a=bnegativesmall
1/6em
\!
misc.uses
ab
amsmathpackage[14].Amsmathisacomprehensiveworkwhichcontainsmanyhelpfultoolsbesidesenhancedmultilinealignmentenvironments.So,allauthorsshouldgiveseriousconsiderationtoitsuse—regardlessofwhattheyusetogen-eratealignedequations.Onethingtobeawareofisthat,upon
loading,amsmathwillcon gureLATEXtodisallowpagebreaks
withinmultilineequations(evenwithinnon-amsmathde nedenvironments).Thephilosophyhereisthatauthorshouldmanuallyinsertbreakswheredesiredsoastoensurethatbreaksoccuronlyatacceptablepoints.TorestoreIEEEtran’sabilitytoautomaticallybreakwithinmultilineequations,loadamsmathlike:
\usepackage[cmex10]{amsmath}\interdisplaylinepenalty=2500
Itisstronglyrecommendedthattheamsmathoptioncmex10beused.Withoutthisoption,currentversionsofamsmathmayemployfontsforsomeofthesmallersizes(suchascanoccurwithmathinfootnotes)thatareavailableonlyinbitmapform(formostTEXsystems).Thus,thecmex10optionwillensurethatitispossible(i.e.,necessary,butnotsuf cient)toproduceadocumentthatusesonlyType1fonts—asrequiredforIEEEXplorecompliance.
Anotherextremelypowerfulsetofalignmenttools,oneofwhichisatotallyrewritteneqnarrayenvironment,isprovidedbymathenv.stywhichispartofMarkWooding’sMDWTools[15].
Finally,IEEEtranprovidesafullyintegratedcustomIEEEe-qnarrayfamilyofcommands(seeAppendixF)thatarede-signedtohavealmostuniversalapplicabilityformanydifferenttypesofalignmentsituations.
Nevertheless,itisinstructivetoshowasimpleexampleusingthestandardeqnarrayinordertoexplainsomeof
the nepointsofmathspacingunderLATTableI,TEX.Asshownin
EXnormallydrawsfromfourdifferentspacingswhentypesettingmathematics.Inordertoproduceprecise(andcorrect)mathematicalalignments,itiscrucialtounderstandhowtocontrolsuchspacing.Consideramultilineequation
Z=x1+x2+x3+x4+x5+x6
+a+b(1)+a+b(2)+a+b(3)+a+b
(4)
(intypicalIEEEstyle)whichwasproducedby
\setlength{\arraycolsep}{0.0em}\begin{eqnarray}
Z&{}={}&x_1+x_2+x_3+x_4+x_5+x_6\nonumber\\
JOURNALOFLATEXCLASSFILES,VOL.11,NO.4,DECEMBER2012
&&+a+b\\&&+{}a+b\\&&{}+a+b\\&&{+}\:a+b\end{eqnarray}
\setlength{\arraycolsep}{5pt}
Linesonethroughfourshowsomepossiblewaysthe+a+blinecouldbeimplemented.6OnlynumberfouristhecorrectwayformostIEEEpurposes.InTbeinhibitedEX’smathmode,spacingaroundoperatorscanbyenclosingthemwithinbraces(e.g.,{=})orforcedbysurroundingthemwith“emptyords”(e.g.,{}={}).Itisimportanttounderstandthattheemptyordsdonothavewidththemselves.However,theirpresencecausesTwere“nexttoEXtoplacespacearoundtheoperatorsasiftheysomething.”Withthisinmind,the rststepintheexampleistoset\arraycolseptozerotopreventeqnarrayfromputtingintheunwanted,arti cial,inter-columnspacing.Placingemptyordsaroundtheequalsignthenforcesthecorrectnaturalspacing.Alternatively,\arraycolsepcouldhavebeensetto0.14emandtheemptyordsaroundtheequalsigneliminated.7Itisimportanttoremembertorestore\arraycolseptoitsdefaultvalueof5ptaftertheeqnarrayiscompleteasotherenvironments(suchasarray)dependonit.(Alternatively,thestructurecouldhavebeenenclosedinagroupofbracestokeepthechangelocal—whichhastheaddedadvantageofnotrequiringthattheuserrememberwhatthecorrectdefaultvalueis.)
The rstlineisincorrectbecauseaisbeingindicatedasapositivequantityratherthansomethingthatmustbeaddedtothepreviousline.(i.e.,the+isbeingtreatedasaunary,ratherthanabinary,operator.)Inlinetwo,addinganemptyordtotherightsideoftheplussigndoesnothing,excepttodemonstratethatemptyordshavezerowidth.Addinganemptyordtotheleftsideoftheplussign(linethree)doesengagebinaryspacing,butcausesanunwanted8rightshiftoftheline.Finally,manuallyaddingamediumspacetotherightsideonlyoftheplussigninlinefourdoesthetrick.Thesuppressionofautomaticspacingaroundtheplussign({+})isunneededinthiscase,butmayberequiredinotheralignmentenvironmentsthat“expand”suchoperatorsbydefault.
Anotherwayaroundthespacingproblemistouseonlytwoalignmentcolumns(asisdonebyamsmath.sty’s\align).e.g.,inthepreviousexample,“Z=”wouldbecontainedinthe rstcolumn.
A.CasesStructures
Incidentally,thenumcases(orsubnumcases)environ-mentsinDonaldArseneau’scases.stypackage[16]shouldbeusedwhen“cases”structuresinwhicheachbranchcanbereferencedwithadifferentequation(orsubequation)numberareneeded:
|x|=
x,forx≥0(5a)
x,forx<0(5b)
6In
thisexample,theequationnumberingsystemis(ab)usedtoidentify
lines.
7Thisassumesthat1eminthetextfonthasthesamewidthas1eminthemathfont.Forthestandardfonts,thisisindeedthecase.
8IEEEnormallywantsallofthelinesleftaligned,buttherearecaseswhensuchanindentionmaybedesirable.
(注:此处不能直接将 txt 文件的后缀直 接改成.bib,运行会报错) 在\end{document}语句之前加入 \bibliographystyle{IEEEtran} \bibliography{IEEEabrv,reference}...
最后,IEEEtran_HOWTO (in IEEEtrans template)也有很不错的 latex 用法介绍。 http://www.ieee.org/web/publications/authors/transjnl/index.html CTex 下载:http...
最后,IEEEtran_HOWTO (in IEEEtrans template)也有很不错的 latex 用法介绍。http://w ww.ieee.org/web/publications/authors/transjnl/index.html CTex 下载: ...
** %% %% File list of work: IEEEtran.cls, IEEEtran_HOWTO.pdf, bare_adv.tex, %% bare_conf.tex, bare_jrnl.tex, bare_jrnl_compsoc.tex, %% ...
19页 免费喜欢此文档的还喜欢 IEEEtran_bst_HOWTO会议模... 10页 免费 FSE2001 12页 5财富值 Process migration and tr... 暂无评价 15页 免费...
19页 免费喜欢此文档的还喜欢 IEEEtran_bst_HOWTO会议模... 10页 免费 FSE2001 12页 5财富值 Process migration and tr... 暂无评价 15页 免费...
热门文档