; TeX output 1996.04.04:0931so߆TG cmtt12mciteDtGGcmr17:uMultiple7tCitationsonOneKeyXQ cmr12ThorstenOhl2K cmsy8iTVecrhnischeHoSchschuleDarmstadtScrhlogartenstr.89lD-64289DarmstadtGermanry] .April4,1996.!Kt : cmbx9Abstractэ[o cmr9ThisL5Aacmr6A TuAEXc.25" cmmi9"*)pac9k|rageprovidessuppAortforcollapsingmultiplecita- NtionsTin9toone,ascustumoaryinphysicsjournals.!č5Nff cmbx12Contents5 "V cmbx101DIn9troQduction152DImplemen9tation3 DK`y cmr102.1[CollectingUUInformation........................3D2.2[ProGducingUUtheOutputT........................55ADDriv9erTFile 65BDCop9ying751MLIntros3duction5ImagineNgwewanttorefertothestandardmoGdel[1]ofparticlephysics.oxInstead 5ofUUthestandardB!- cmcsc10iDb32TU>ExX[2]format>q[1]NSheldonGlashow.!Partialsymmetriesofweakinteractions.!"': cmti10Nucl. Phys.,N22:579,UU1961.>q[2]NAbGdusnSalam..W*eakandelectromagneticinteractions.InW.Svqartholm,Neditor,`Elementary4ParticleThe}'ory,page"367,StoGckholm,1968.F AlmquistNandUUWiksell.>q[3]NStevenUUW*einbGerg.qAmodelofleptons.qPhys.R}'ev.Lett.,UU19:1264,1967.5fffv @ -:q% cmsy6L|{Ycmr8e-mail: Cscmtt8Thorsten.Ohl@Physik.TH-Darmstadt.de1*so5itUUiscustomaryinphysicsjournalstocollapsesuchreferencesintoone>q[1]NSheldon8Glashow,qNucl.Phys.22(1961)579;AbGdusSalam,qin:W.Svqartholm N(ed.),Elementary2ParticleThe}'ory,p.367,StoGckholm,1968;StevenW*ein-NbGerg,UUPhys.Rev.Lett.19(1967)1264.5TheslighttypGographyicalchangesareeasilytakencareofbychangingthe5BiDb32TU>ExX1style,8i.e.1byusing#ExX1to5collapseUUtheentries.qmcitetakescareofthat.DThispackqageoverloadstheL5ffٓRcmr7A͉TU>'ExX[3]\citecommand.!Allkeysstarting`$ߤN cmtt9\cite5witha*(whichshouldbGesucientlyunlikelyinaBiDb32TU>ExXkey)willbGeadded5tothepreviousitem.$F*orexamplethefollowingreference[4,3,1]wascreated5byUU\cite{texbook,latex,*latex-companion,Glashow,*Salam,*Weinberg}.J5%N cmbx12HackingtheBS1ibTESXStyleuT5WiththestandardBiDb32TU>ExX~styles,$itisalmostimpGossibletoprovidepropGer5punctuationI(i.e.\;"bGetweenIcollapseditems).ʢInprincipleonecouldplay5trickswithanactive\.",fbuttherearetoGomanyspGecialcasesinreallife5BiDb32TU>ExXcentriesthatcangowrong.|F*ortunately,4 itisfairlyeasytocustomize5BiDb32TU>ExXUUstylesforourpurpGoses.DAlmostUUallBiDb32TU>ExXstylesknownto(wo)mankindcontainafunction9FUNCTION{fin.entry} 9{add.period$C,write$C,newline$9}5removingUtheadd.period$andescapingthenewline$with\relaxwilltake 5care]oftheparagraphbreaksandallowmcitetoprovidethepropGerpunctuation:9FUNCTION{fin.entry}9{write$C,"\relax"write$C,newline$C,"\relax"write$9}5Note+that%wouldbGealmostasgoodas\relaxbutthelatteralsoworksifthe 5\catcodeUUof%hasbGeenchanged.DInythefunctionbegin.bib,¢the\begin{thebibliography}shouldbGere-5placed8by\begin{mcbibliography}.Similary*,qinend.bibthe\end{thebibliography}5byc\end{mcbibliography}. Themcbibliographyenvironmentwillinform5mciteUUthatithastoprovidethepunctuation.J5BugsandDe cienciesuT5TheUUfollowingbugsandde cienciesareknown:A81.Nmciteonlyworkswithunsortedbibliographystyles.dWithoutmoGdi ca-NtionstoBiDb32TU>ExX,itseemsimpGossibletosupportsortedbibliographystyles.^ԍA82.Nmcite'sUU\citeislessforgivingabGoutbogusspaces.qThiscanbe xed.2 so52MLImplementation5It'sisgoGodpracticetoidentifythisversionofthispackqage.,kW*edothisby 5parsingٷanRCS٘IdstringandstoringtheresultintheconventionalTU>'ExXcontrol5sequences: 8s1? cmsy9h&ow cmss9pack9age#g i 8s2?)(tho)PRELIMINARYTESTRELEASE}519?\wlog{Englishdocumentation\@spaces<\docdate>(tho)}ʍ52.1SCollectingInformationuT520?\def\@enamedef#1{\expandafter\edef\csname#1\endcsname}Iۍ521?\def\mc@single#1{\global\@enamedef{mc*sg*#1}{}}522?\def\mc@head#1#2{\global\@enamedef{mc*hd*#1}{#2}}523?\def\mc@tail#1#2{\global\@enamedef{mc*tl*#1}{#2}}524?\def\mc@ifsingle#1#2#3{\@ifundefined{mc*sg*#1}{#3}{#2}}525?\def\mc@ifhead#1#2#3{\@ifundefined{mc*hd*#1}{#3}{#2}}526?\def\mc@iftail#1#2#3{\@ifundefined{mc*tl*#1}{#3}{#2}}527?\def\mc@thehead#1{\@nameuse{mc*tl*#1}}528?\def\mc@thetail#1{\@nameuse{mc*hd*#1}}ɍ\mcite5W*e8areoverloading8theoriginal\citecommandsuchthat\cite{latex,*latex-companion,texbook} 5willUUgive\[3,4UV]". 529?\let\orig@cite\cite530?\def\mcite{%531I\@ifnextchar[%532R {\PackageWarning{mcite}%533`{optionalargumentto\protect\cite\spacenotsupported}%534WJ\@tempswatrue535WJ\expandafter\mc@citex\mc@gobbleopt}%536R {\@tempswatrue537WJ\mc@cite}}5GobbleUUupalloptionalarguments 538?\def\mc@gobbleopt[#1]{}3Tso|\cite5IfҀwepGostponeҀtheoverloadingof\citeuntilthe\begin{document},wecan 5coGexistxwithcite.sty.^}Ifweweretodoitnow,' wewouldhavetodemandthat5cite.styUUisloadedb}'eforemcite.sty.539?\AtBeginDocument{\let\cite\mcite}y\mc@cite5FirstUUofall:qexpandtheargument:540?\def\mc@cite#1{% 541I\edef\mc@temp{#1}%542I\expandafter\mc@cite@\expandafter{\mc@temp}}5HereUUwedotheactual\preproGcessing"ofthe\citekeys.543?\def\mc@cite@#1{%544I\mc@firsttrue545I\@for\mc@@@:=#1\do{%5ItUUthekeystartswitha*,markitastail.qOtherwisemarkitashead.546R \expandafter\mc@ifstar\mc@@@\sentinel%547\8{\ifmc@first548j0\PackageWarning{mcite}%549s+{tail`\mc@key'appearsasfirstitemin\protect\cite}%550j0\mc@dohead551`\else552j0\mc@dotail553`\fi}%554\8{\mc@dohead}%5W*riteaa\citationcommandtothe.aux leinanycase.Thisgivessome 5duplicationUUbutkeepsthingsinorder.555R \if@filesw556\8\immediate\write\@auxout{\string\citation{\mc@key}}%557R \fi}%558I\expandafter\orig@cite\expandafter{\mc@list}}559?\def\mc@dohead{%560I\mc@iftail{\mc@key}%561R {\PackageWarning{mcite}%562`{head`\mc@key'alreadyusedastailof`\mc@thehead{\mc@key}'}}%563R {}%564I\mc@head{\mc@key}{}%565I\edef\mc@curhead{\mc@key}%566I\ifmc@first567R \mc@firstfalse568R \edef\mc@list{\mc@key}%569I\else570R \edef\mc@list{\mc@list,\mc@key}%571I\fi}572?\def\mc@dotail{%573I\mc@ifhead{\mc@key}%574R {\PackageWarning{mcite}%575`{tail`\mc@key'alreadyusedashead}}%576R {}%577I\mc@tail{\mc@key}{\mc@curhead}}578?\def\mc@ifstar#1#2\sentinel#3#4{%579I\ifx*#1%4!so580R \def\mc@key{#2}% 581R #3%582I\else583R \def\mc@key{#1#2}%584R #4%585I\fi}586?\newif\ifmc@first652.2SPro`ducingtheOutputuT5TheFsimplestapproachistojustdropthe\@bibitemifwe'reproGcessingacon- 5tinuationUU(itisjustan\itemwithassoGciated.aux leaction):587?\let\orig@bibitem\@bibitem588?\def\@bibitem#1{%5IfUUtheBiDb32TU>ExXstylesuppGortsmcite,wehavetoprovidepunctuationourselves.589I\ifmc@bstsupport590R \mc@iftail{#1}%591\8{;\space\ignorespaces}%592\8{\ifmc@first\else.\fi\orig@bibitem{#1}}593R \mc@firstfalse594I\else595R \mc@iftail{#1}%596\8{\ignorespaces}%597\8{\orig@bibitem{#1}}%598I\fi}%599?\newif\ifmc@bstsupport1100?\mc@bstsupportfalse5W*eUUcan'thandle\bibitemswithanoptionalargument;telltheuser.1101?\def\@lbibitem[#1]#2{%1102I\PackageError{mcite}%1103R {Youcan'tusetheoptionalargumentof\protect\bibitem}%1104R {Hey,*I*havetofoolaroundwiththelabels!}%1105I\@bibitem{#2}}5The#mcbibliographyenvironment#instructsmcitetoprovideitsownpunctua- 5tion.1106?\def\mcbibliography{%1107I\mc@bstsupporttrue1108I\mc@firsttrue1109I\thebibliography}1110?\def\endmcbibliography{%1111I.%1112I\endthebibliography}DThat'sUUit!1113?h=pack9age#g i!č5References5[1]D;Sheldon}Glashow.IPartialsymmetriesofweakinteractions.INucl.Phys., D;22:579,UU1961.5*soD;AbGdus9Salam.W*eakandelectromagneticinteractions.InW.Svqartholm, D;editor,]3ElementaryVParticleThe}'ory,page(m367,StoGckholm,1968.AlmquistD;andUUWiksell.D;StevenUUW*einbGerg.nAmodelofleptons.nPhys.R}'ev.Lett.,UU19:1264,1967.g^5[2]D;OrenzPatashnik. pBiDb32TU>ExXing.DoGcumentationzforgeneralBiDb32TU>ExXusers,D;8UUF*ebruary1988.D;OreniPatashnik.DesigningBiDb32TU>ExXistyles.ThepartofBiDb32TU>ExX'sdoGcumen-D;tationUUthat'snotmeantforgeneralusers,8F*ebruary1988.g^5[3]D;Lesliel!LampGort.L雍Q,t}\cmti7ATKß'E-X:ÈADo}'cumentPreparationSystem.Addison-W*esley,D;ReadingUU(Mass.),2ndedition,1994.D;MichelGoGosens,NF*rankMittelbach,NandAlexanderSamarin. $6TheL雍QATKß'E-XD;Comp}'anion.nAddison-W*esley,UUReading(Mass.),1994.g^5[4]D;DonaldUUE.Knuth.nTheTKß'E-Xb}'ook.Addison-W*esley,UUReading(Mass.),1986. 5Index5ThenitalicnumbGersndenotethepageswherethecorrespondingentryisdescribed,5numbGers-underlinedpointtothede nition,5allothersindicatetheplaceswhere5itUUisused.5A9tBeginDoAcument=X\subitem*+\AtBeginDocument+,395bibitem=X\subitem*+\bibitem+,103 *5bibliograph9ystyle=X\subitem*+\bibliographystyle+,1405bitem=X\subitem*+\bitem+,1225citation=X\subitem*+\citation+,565cite=X\subitem*+\cite+,\usage{2},29,33,\main{39},495do=X\subitem*+\do+,455DoNotIndex=X\subitem*+\DoNotIndex+,125--1385edef=X\subitem*+\edef+,20,41,65,68,705endmcbibliograph9y=X\subitem*+\endmcbibliography+,1105endR9CS=X\subitem*+\endRCS+,4,6,8,10,155endthebibliograph9y=X\subitem*+\endthebibliography+,1125 lerevision=X\subitem*+\filerevision+,125global=X\subitem*+\global+,21--235 lesw=X\subitemfilesw+,555bstsuppAort=X\subitembstsupport+,89,995 rst=X\subitemfirst+,47,66,86,92UUignorespaces=X\subitem*+\ignorespaces+,91,96 UUimmediate=X\subitem*+\immediate+,56UUmak9eatletter=X\subitem*+\makeatletter+,121UUmak9eatother=X\subitem*+\makeatother+,123UUbstsuppAortfalse=X\subitembstsupportfalse+,100UUbstsuppAorttrue=X\subitembstsupporttrue+,107UUcite=X\subitemcite+,37,\main{40}UUcitex=X\subitemcitex+,35UUcurhead=X\subitemcurhead+,65,77UUdohead=X\subitemdohead+,50,54,59UUdotail=X\subitemdotail+,52,72UU rstfalse=X\subitemfirstfalse+,67,93UU rsttrue=X\subitemfirsttrue+,44,108UUgobbleopt=X\subitemgobbleopt+,35,38UUhead=X\subitemhead+,22,64UUifhead=X\subitemifhead+,25,73UUifsingle=X\subitemifsingle+,24UUifstar=X\subitemifstar+,46,78UUiftail=X\subitemiftail+,26,60,90,95UUk9ey=X\subitemkey+,49,56,60,62,64,65,68,70,73,75,77,80,83UUlist=X\subitemlist+,58,68,70UUsingle=X\subitemsingle+,21UUtail=X\subitemtail+,23,77!temp=X\subitemtemp+,41,42 #O!thehead=X\subitemthehead+,27,62!thetail=X\subitemthetail+,28!mcbibliograph9y=X\subitem*+\mcbibliography+,106!MCITE=X\subitem*+\MCITE+,124!mcite=X\subitem*+\mcite+,\main{29},39i!bibitem=X\subitembibitem+,87,92,97!cite=X\subitemcite+,29,58!P9ack|rageError=X\subitem*+\PackageError+,102!P9ack|rageW:arning=X\subitem*+\PackageWarning+,32,48,61,74!protect=X\subitem*+\protect+,33,49,103!Pro9videsPack|rage=X\subitem*+\ProvidesPackage+,16!R9CS=X\subitem*+\RCS+,4,15!sen9tinel=X\subitem*+\sentinel+,46,78!string=X\subitem*+\string+,56!thebibliograph9y=X\subitem*+\thebibliography+,109!t9ypAeout=X\subitem*+\typeout+,17!write=X\subitem*+\write+,56!P 5AQnDriverffFile5InUUgeneralwewillofcourseformatthisdoGcumentationwithitself.62so1114?hdriveroi 1115?\documentclass[a4paper]{article}1116?\usepackage{doc}1117?\usepackage{mcite}1118?\EnableCrossrefs1119?\RecordChanges1120?\CodelineIndex1121?\makeatletter1122?\def\bitem#1{\item[\@biblabel{#1}]}1123?\makeatother1124?\def\MCITE/{\texttt{mcite}}1125?\DoNotIndex{\\,\advance,\baselineskip,\batchmode,\begin,\catcode,\char}1126?\DoNotIndex{\CodelineIndex,\csname,\def,\divide,\docdate,\DocInput}1127?\DoNotIndex{\documentclass,\else,\emph,\EnableCrossrefs,\end,\endcsname}1128?\DoNotIndex{\errmessage,\errorstopmode,\expandafter,\fbox,\fi,\filedate}1129?\DoNotIndex{\filename,\fileversion,\font,\fontencoding,\fontfamily}1130?\DoNotIndex{\fontseries,\fontshape,\fontsize,\gdef,\goodbreak,\hfil}1131?\DoNotIndex{\hoffset,\hskip,\ifcase,\ifx,\InputIfFileExists,\item,\let}1132?\DoNotIndex{\line,\LoadClass,\makebox,\mbox,\multiply,\NeedsTeXFormat}1133?\DoNotIndex{\newdimen,\newenvironment,\newif,\nobreak,\normalfont}1134?\DoNotIndex{\normalsize,\nullfont,\or,\oval,\pagestyle,\par,\parbox}1135?\DoNotIndex{\parindent,\parskip,\PassOptionsToClass,\ProcessOptions}1136?\DoNotIndex{\ProvidesClass,\put,\quad,\raisebox,\RecordChanges,\relax,\rule}1137?\DoNotIndex{\selectfont,\space,\ss,\texttt,\textwidth,\the,\thispagestyle}1138?\DoNotIndex{\topmargin,\usepackage,\voffset,\vskip,\vspace,\wlog}1139?\begin{document}1140I\bibliographystyle{unsrt}%%%{physics}1141I\DocInput{mcite.dtx}1142?\end{document}1143?h=driveroi!č5BPvCopying5mciteisfreesoftware;0youcanredistributeitand/ormoGdifyitundertheterms 5ofMtheGNUMGeneralPublicLicenseaspublishedbytheF*reeSoftwareF*ounda-5tion;UUeitherversion2,or(atyouroption)anylaterversion.DmciteisdistributedinthehopGethatitwillbeuseful,Tbutwithout rany5warr}'anty};/}withouteventheimpliedwarrantyofmer}'chantabilityor tness_fora5p}'articularpurpose.qSeeUUtheGNUGeneralPublicLicenseformoredetails.DY*oushouldhavereceivedacopyoftheGNUGeneralPublicLicensealong5withthisprogram;ifnot,!writetotheF*reeSoftwareFoundation,!Inc.,675Mass5Ave,UUCambridge,MA02139,USA.7F; ,t}\cmti7)