; TeX output 1997.02.14:1503soPDtGGcmr17The7tpacqkage߆TG cmtt12easyeqnXQ cmr12EnricoBertolazzi LabSoratoriodiMatematicaApplicatacDipartimenrtodiIngegneriaCivileedAmbientaleUnivrersit adegliStudidiTVrento0Mesiano,TVrenrto,Italy߆T cmtt12bertolaz@ing.unitn.its8!Jt : cmbx9Abstractэ[o cmr9Thepac9k|rageߤN cmtt9easyeqnintroAducessomeequationenvironmentsthatsim- Nplifymwritingofequations.#zItusesasyn9taxsimilartothearrayenviron-Nmen9t&tode nethecolumnalignment.P@A&pack|rageoptioncasesonlythoseNequationsTthatw9erej cmti9labeledN cmmi10x-wfe (֍:y^=z3W(1)䍍<$-x-wfe (֍:y^=zMЍ IUUwillreferonlyto(1)or,intheoldstyle,1.JvZffffffKLB2soDNoteB`thatthecommand\eqlabelisusedinsteadof\labelandthereference 5is doneby\eqrefor\refeq.XThecommand\refeqproGducesthesameoutput5asUU\ref,while\eqrefuses(?)fortheoutput.DRemark::=DueAtothealgorithm,yinordertoobtaintherightcrossreference,5youineedtorecompilethe le3times.Theuse\labelisnotpGermittedinside5EQxPenvironmentsandifyouuse\refforreferencingequationstheresultsare5unpredictable.!č53MLUseffofEQSenvironment5TheUUfollowingcommands:N׍;ߟUVffKLBdUTdUTffUVG \begin{EQS}[rcll]\nabla\cdot(\rho\nabla?u)&=&f\qquad)&\mbox{on?$\Omega$}\\u&=&u_{0}&\mbox{on?$A\subset\partial\Omega$}\\(\rho\nabla?u)\cdotn&=&u_{1})&\mbox{on?$B\subset\partial\Omega$} \end{EQS}JvdUTffffffKLBDproGducesAX-;ߟffKLBKKff!c5 !", cmsy10r8(ru)t=< f4onUU mut=< uٓRcmr704onUUA@8 f9(ru)8nt=< u14onUUBG@8 JvKffffffKLBDNotethatbGetween[...]youcanspecifythecolumnalignmentinthesame 5wayBasinthearrayϲorBtabularenvironment.TheBpGermittedalignmentarelfor5leftUUalignment,rforrightalignmentandcforcentering.!č54MLTheff\yesnumbercommand5IfyouwanttonumbGeranequationwithoutreferenceit,Hjusethe\yesnumber5commandUUasthisexampleshows:6׍;ߟUVffKLB4UT4UTffUVG \begin{EQ}\yesnumber\nabla\cdot(\rho\nabla?u)=0 \end{EQ}Jv4UTffffffKLB3 ˠsoDproGduces0-;ߟ@ffKLB((ff@@9r8(ru)=03W(2)Jv(ffffffKLBB8)55MLTheff\eqlabelcommand5It6 ispGossibletousecustomlabelby\eqlabelcommand.Thesyntaxisthe 5followingO?\eqlabel`[*]'{labelname}O?orO?\eqlabel`(*)'{labelname}5whereL5`[*]'isanoptionalargument.VhIf`[*]'isde ned,equationdisplays5`*'+insteadof`("equation?number")'.UTheequationcounterisnotadvqanced5andy`labelname'willreferto`*'.VIfweuse`[*]'theresultissimilarbutthe5equationnumbGerissubstitutedby`(*)'insteadof`*'.__LoGokatthisexample:Nm;ߟꪉffKLBe*e*ff꫍q \begin{EQA}[c]\nabla\cdot(\rho\nabla?u)=0.\eqlabel(eq.1){eq:custom:a}?\\\nabla\cdot(\rho\nabla?u)=0.\eqlabel[eq.2]{eq:custom:b} \end{EQA} I?willreferto\eqref{eq:custom:a}and\eqref{eq:custom:b}Jve*ffffffKLBNmDproGducesB-;ߟffKLBMMff9r8(ru)=0'8W(eq.1)9r8(ru)=0.ueq.2 IUUwillreferto(eq.1)and(eq.2)JvMffffffKLB4so56MLUseffofEQAenvironment5TheUUfollowingcommands:fm;ߟꪉffKLB**ff꫍q \begin{EQA}[rcll] \nabla\!\cdot\!(\rho\nabla?u)&=&f\qquad)&\mbox{on?$\Omega$}\yesnumber?\\u&=&u_{0}&\mbox{on?$A\subset\partial\Omega$}>\eqlabel{eq:3}?\\(\rho\nabla?u)\!\cdot\!n&=&u_{1}.&\mbox{on?$B\subset\partial\Omega$}>\eqlabel($*$){eq:4} \end{EQA} it?isreferencedonly\eqref{eq:4}!!Jv*ffffffKLBfmDproGduceL-;ߟ@ffKLB``ff@@eݸr8(ru)C=afIonUU 3W(3)ŵuC=au0IonUUA@8 g(ru)8nC=au1IonUUBG@8 3W() itUUisreferencedonlyx()!!Jv`ffffffKLBDNoteUthatonlythereferencedlinesorthelineswith\yesnumberarenum- 5bGered.!č57MLUseffof eqnandleqnooption5Y*oucanuse eqnto uxlefttheequationsorleqnotonumbGerequationsonthe5left.qIfUUforexamplewehaveusedGQ;ߟffKLBVǍVff㍑\documentclass{article}..\usepackage[fleqn,leqno]{easyeqn}..JvVffffffKLB5soDtheUUe ectwiththisexample:`m;ߟꪉffKLB**ff꫍q \begin{EQA}[rcll] \nabla\cdot(\rho\nabla?u)&=&f\qquad)&\mbox{on?$\Omega$}\yesnumber\\u&=&u_{0}&\mbox{on?$A\subset\partial\Omega$})\yesnumber\\(\rho\nabla?u)\!\cdot\!n&=&u_{1})&\mbox{on?$B\subset\partial\Omega$}3\eqlabel{eq:5} \end{EQA} it?isreferencedonly\eqref{eq:5}!!Jv*ffffffKLB`mDisUUthefollowingL-;ߟ@ffKLB``ff@@#r8(ru)O=YVֵfuOonUU (4)G:uO=YVֵu0uOonUUA@8 (5)((ru)8nO=YVֵu1uOonUUBG@8 (6) itUUisreferencedonlyx(6)!!Jv`ffffffKLBDThe'~samee ectcanbGeobtainedeverywhereusingthecommands 5\equationleft{~and\numberleftbGeforede ningtheequation.AT*orestorethe5defaultUUuse\equationcenterand\numberrightaftertheequation.!č58MLCosmetingffchanges5ItٖispGossibletomodifyalittletheappearanceoftheequations.HTherearethree5parameterUUthatitispGossibletochange5leftTinden9tnWhen5theequationsare uxedleft,o,theleftindent(defaultN\leftmargini)UUcanbGechangedbythecommandb\eqleftmargin{new?indent}bfor?exampleb\eqleftmargin{1cm}5equationTspacingThe@spacingaroundaformula,x7(default7pt)canbGechangedNbyUUthecommand6" sob\eqspacing{new?spacing} bfor?exampleb\eqspacing{4pt}_5columnTspacing5ThespacingbGetweencolumninmulticolumnequations(de-NfaultUU4pt)canbGechangedbythecommandb\eqcolumnsep{new?spacing}bfor?exampleb\eqcolumnsep{10pt}5ro9wTspacinguCӲThespacingbGetweenrowsinmultipleequations(default7pt)NcanUUbGechangedbythecommandb\eqrowsep{new?spacing}bfor?exampleb\eqrowsep{10pt}DforUUexampleUO;ߟUVffKLB|UT|UTffUVG \eqrowsep{20pt} \eqcolumnsep{10pt} \begin{EQS}[rcll]\nabla\cdot(\rho\nabla?u)&=&f\qquad)&\mbox{on?$\Omega$}\\u&=&u_{0}&\mbox{on?$A\subset\partial\Omega$}\\(\rho\nabla?u)\cdotn&=&u_{1})&\mbox{on?$B\subset\partial\Omega$} \end{EQS}Jv|UTffffffKLBDproGducesJ;ߟffKLBeeff.W5r8(ru)t=< f4onUU |mut=< u04onUUA@8 Z9(ru)8nt=< u14onUUBG@8 JveffffffKLB7)0;&kAHff cmssbx10%': cmti10$m#R cmss10#߆Tff cmtt12"kAH cmssbx10! cmmi10K`y cmr10ٓRcmr7.