20
\IEEEeqnarraydefcolsep{colsep_id}{def}
command.Thecolsep_idargumentcontainsthenumberof
thecolumnseparationgluespeci erwhichshouldconsistonlyofnumerals.Differentgluetypenamesmusthavedifferentnumericalvalues.(Don’tgettoocute—“007”isidenticalto“7”.)Userde nedcolumngluespeci erscanberede nedatwillwithoutwarningorerror.Thedefargumentcontainsthewidthofthegivengluetype.Widthsmaybespeci edasabsolutevaluesorreferencelengthcommands:
\IEEEeqnarraydefcolsep{9}{10pt}
\IEEEeqnarraydefcolsep{11}{2\tabcolsep}
Thegluetypewidthsarenotevaluatedwhende ned,butareevaluatedeachtimetheyareactuallyreferencedasIEEEeq-narraycolumnspeci ers.Thus,forthesecondde nitionintheexampleabove,if\tabcolsepweretoberevisedafterthegluetypewasde ned,therevisedvaluewouldbewhatisused.
Rubberlengthsareallowedtoo.Thefactthatthecenteringglue“+”isaknownvaluecanbeexploitedtoachievesomeinterestingeffects.Forexample,
\IEEEeqnarraydefcolsep{17}{200ptminus200pt}
willproduceacolumnseparationgluethatisalways1/5ofthewidthofthedistancefromtheequationsidestotheendsofthemaintextcolumns.And,ofcourse,“+”canbeusedasneededtoproducegroupsofequallyspacedequationsasinamsmath’s\align:
\begin{IEEEeqnarray}{Rl+Rl+Rl}
D.ASimpleExampleofUse
TheexampleinSectionIXcanbeimplementedusing\IEEEeqnarrayvia
\begin{IEEEeqnarray}{rCl}
Z&=&x_1+x_2+x_3+x_4+x_5+x_6\IEEEnonumber\\&&+\:a+b%
\end{IEEEeqnarray}
AsshowninTableIVthe“C”columntypeisacenteredmathmodecolumnwithemptyords(“{}”)oneitherside.So,thereisnoneedtoplaceemptyordsaroundtheequalsign.Aswith\eqnarray,the&separatethecolumncellsandarewheretheinter-columnseparationgluewillappear(whennonzero).Notethepresenceofthe%attheendofthesecondrow.T&EXdoesnotignorespacesthatoccurbeforecommandsorcolumndelimiters,butdoesignorethosethatoccurafter.
MostLATEXalignmentimplementationsshieldtheuserfromthisbehaviorbyremovingallspacingpreviousto&,\\and\end.TheIEEEeqnarrayfamilydoesnotdothis!So,itisimportanttopreventspaces(includingimpliedonesattheendoflines)fromoccurringbeforesuchcommandsunlesstheyarewanted.Suspectthisproblemifthereisanunexplainedoffsetwithinacolumn.Inthegivenexample,unwantedspacingisnotanissuebecauseendspacingisignoredinmathmodeanyway.However,itwouldbeanissueifthecolumnsusedtextmodeinstead.
Alternatively,onecoulduseatwocolumnform:
\begin{IEEEeqnarray}{Rl}
Z=&x_1+x_2+x_3+x_4+x_5+x_6\IEEEnonumber\\
JOURNALOFLATEXCLASSFILES,VOL.11,NO.4,DECEMBER2012
&+\:a+b%
\end{IEEEeqnarray}
E.EquationNumbering
Like\eqnarray,\IEEEeqnarray,hasa“starform,”\IEEEeqnarray*,whichdoesnotplaceequationnumbersattheendofeachrowbydefault.Thedefaultbehaviorofindividualrowscanbeoverriddenbyplacingthecommands\IEEEyesnumberor\IEEEnonumberasneededinthelastcolumn.\IEEEeqnarrayalsoprovides\IEEEyessubnumberand\IEEEnosubnumberwhichcanbeusedtoenableordisableasubequationnumberforthegivenrow.Tosupportthisfeature,IEEEtrande nesitsownIEEEsubequationcounter(resetwithchangestoequation)and\theIEEEsubequationcommand.15
Asofversion1.8ofIEEEtran,thestarforms\IEEEyesnumber*,\IEEEnonumber*,\IEEEyessubnumber*and\IEEEnosubnumber*areavailablewhichpersistacrossrowsuntilcountermandedbyanotherstarcommand.Thebehavioroflaterindividualrowscanbeselectivelyoverriddenwiththeuseofthenon-starformsasneeded.
Despitetherebeingfournumberingcommands,itisusefultorememberthatthereareonlythreeIEEEeqnarraynumberingmodes:
1)Displaynothinganddonotalterthecounters(\IEEEn
onumber);
2)Incrementtheequationcounteranddisplayanequationnumberwithoutasubequationpart(\IEEEyesnumber);3)Incrementthesubequationcounteranddisplayanequa-tionnumberwithasubequationnumber(\IEEEyessubnumber).
\IEEEnosubnumberisnotreallyneededandbehavesmuchlike\IEEEyesnumberexceptthattheformerdoesnotalsoenableequationnumberingifitisn’talreadyon(anddoesnotalterthenumberingpropertiesofthecurrentrowifequationnumberingisoff).
Generallyspeaking,onlyonenumberingcommandshouldbeusedperrow.Inparticular,mixingyesandnocommandsonasinglerowcouldresultinunintendedoperation.However,anotableexceptionistheveryuseful\IEEEyesnumber\IEEEyessubnumbercombinationwhichstartsanewsubequationsequence.Forexample,
\begin{IEEEeqnarray}{c}
x1\IEEEyesnumber\IEEEyessubnumber*\\x2\\
x3\IEEEyesnumber\IEEEyessubnumber\label{eqn:expl}\\x4\\
x5\IEEEyesnumber*\\x6
\end{IEEEeqnarray}
yields:
x1(8a)x2(8b)x3(9a)x4
(9b)
15What
isactuallydisplayedisthe\theIEEEsubequationdiscom-
mand.
(注:此处不能直接将 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页 免费...
热门文档