÷ƒ’À;è TeX output 1996.03.06:1223‹ÿÿÿÿ ª� ýs o� ýÞ�‘g6÷óDÓítG®G®cmr17¹Impro•Œqv“ed–7treference“formatting“for“L�Ÿüdú�‘úKGóX«Q cmr12ºAŽŽ‘¹”¹T�‘ý[™Ÿ¸-EŽ‘;gX2eŽŸ�����’ÏÔºKevin–ê¨S.“RulandŽŽŽŽŽŸˆ‹�’ÕòiMarc�¬rh–ê¨6,“1996ŽŸ%�‘XóKñ`y cmr10²This–ï9pacš¸ãk‘ÿqÇage“has“b�Geen“completely“reimplemen˜ted“(since“v1.1).‘O¾Please“note“theޤ �‘Iuser–# levš¸ãel“commands“ha˜v˜e“c˜hanged“syn˜tax.‘ÚäThis“w˜as“done“b�Gecause“most“of“theŽ¡�‘Ipac•¸ãk‘ÿqÇages›µ‹pro“viding˜h“yp�Gertext/www˜functionalit“y˜(suc“h˜as,–͘óßêŸ'EŽ‘ãxX2e“lab�Gel{referenceŽ¡�‘Imec•¸ãhanism.‘qÇIt›UUallo“ws˜the˜author˜to˜\preformat"˜all˜t“yp•Ges˜of˜lab“els.Ž¡�‘XA‘f­long–g6standing“problem“with“L�Ÿýó5�‘üff±AŽŽ‘͉²T�‘þU>Ÿ'EŽ‘ãxX“Å\ref“²command“is“that“it“only“pro-Ž¡�‘Ivides–…ua“raš¸ãw“n˜um˜bšGer.‘ 'The“author“is“resp˜onsible“for“prop˜erly“formatting“theŽ¡�‘In•¸ãum“b�Ger›«1correctly–ÿ*ª.‘ s[F“or˜example,‘@§in˜order˜to˜correctly˜format˜a˜reference˜toŽ¡�‘Ian–)»equation,‘žÔthe“author“m�¸ãust“use“Å\textup{(\ref{eq:1})}².‘ îøOr“similarly“forŽ¡�‘Ia–Cî gure,‘¿“ÅFigure~(\ref{fig:2})².‘ =’This“w•¸ãa“y–Cîthe“\format"“of“the“reference“isŽ¡�‘Ihard– &cošGded“in�¸ãto“the“pap˜er.‘ �:If“the“author“decides“to“c�¸ãhange“ gure“referencesŽ¡�‘Ito–/ÅFigure~\ref{fig:2}²,‘etshe“mš¸ãust“searc˜h“and“replace“all“the“strings“in“the“texŽ¡�‘Isource.Ž¡�‘XAMSL�Ÿýó5�‘üff±AŽŽ‘͉²T�‘þU>Ÿ'EŽ‘ãxX–:‰has“partially“addressed“this“problem“bš¸ãy“pro˜viding“the“pac˜k‘ÿqÇageŽ¡�‘IÅupref–À²and“command“Å\eqref“²in“Åamsmath².‘±ÌThis“is“a“partial“solution“for“equationŽ¡�‘In•¸ãum“bšGers–UUand“forces“equation“n•¸ãum“b˜ers–UUin“uprighš¸ãt“st˜yle.Ž¡�‘XThis–©:pacš¸ãk‘ÿqÇage“pro˜vides“a“more“comprehensiv˜e“solution“b˜y“allo˜wing“the“authorŽ¡�‘Ito–‚Õde ne“v‘ÿqÇarious“formats“for“the“labšGels.‘úGF‘ÿ*ªor“example,‘Ž5to“lab˜el“a“table“the“authorŽ¡�‘Iw�¸ãould–¦†use“Å\label{tab:1}².‘eYT‘ÿ*ªo“access“the“formatted“reference“the“author“usesŽ¡�‘IÅ\prettyref{tab:1}².‘qÇÅ\pageref{tab:1}–UU²and“Å\ref{tab:1}“²w�¸ãork“as“usual.Ž¡�‘XÅ\prettyref–¾²is“robust“enough“to“b�Ge“used“within“Å\caption“²and“in“ÅtheoremŽ¡�‘I²optional‘UUarguemen�¸ãts.Ž¡�‘XLabšGels–4¾in“the“do˜cumenš¸ãt“m˜ust“b�Ge“of“the“form“Åformat:name“²where“the“stringŽ¡�‘IÅformat–4ž²is“used“to“determine“the“format.‘£Do“not“use“the“cš¸ãharacter“Å:“²an˜ywhereŽ¡�‘Iwithin– Ithe“labšGel“except“to“sep˜erate“Åformat“²from“Åname².‘R¢Åformat:name“²m�¸ãust“b˜eŽ¡�‘Iunique–UUfor“it“is“used“as“the“lab�Gel.ŽŸ��‘Lüs±1Ž‘Sª®óߤN cmtt9Æ\ProvidesPackage{prettyref}[1995/03/10‘¹–v2.0]ŽŸ�‘X²The–UUcommand“Å\newrefformat“²de nes“formats“for“prett�¸ãy“references.Ž����‘“bÆ\newrefformatŽŽŽŽ¡�‘X²Usage:‘qÇÅ\newrefformat{NAME}{FORMAT}Ž¡�‘X²The–UUÅNAME“²arguemenš¸ãt“is“the“name“of“the“refernece“t˜yp�Ge.Ž¡�‘XThe–.�ÅFORMAT‘.W²argumenš¸ãt“is“in˜terpreted“as“the“replacemen˜t“text“for“an“in˜ternalŽ¡�‘It•¸ãw“o-argumen“t–¢ function.‘X)The“Å#1“²will“b�Ge“replaced“with“the“coun�¸ãt“and“Å#2“²with“theŽ¡�‘Ipage‘UUn•¸ãum“b�Ger.ŽŸ��‘Lüs±2Ž‘Sª®Æ\def\newrefformat#1#2{%ŽŸ ��‘Lüs±3Ž‘]ÚÆ\@namedef{pr@#1}##1##2{#2}}ŽŽŸ�’ø²1ŽŽŒ‹* ª� ýs o� ý´�‘X²These–Î5de ne“the“default“formats“for“table,–é;eq,“lemma,“thm,“section,“and‘Î5 gure.Ž© �‘IThey–UUalso“demonstrate“the“useage“of“Å\newrefformat².ŽŸ��‘Lüs±4Ž‘Sª®Æ\newrefformat{eq}{\textup{(#1)}}ޤ ��‘Lüs±5Ž‘Sª®Æ\newrefformat{lem}{Lemma‘¹–#1}Ž¡��‘Lüs±6Ž‘Sª®Æ\newrefformat{thm}{Theorem‘¹–#1}Ž¡��‘Lüs±7Ž‘Sª®Æ\newrefformat{cha}{Chapter‘¹–#1}Ž¡��‘Lüs±8Ž‘Sª®Æ\newrefformat{sec}{Section‘¹–#1}Ž¡��‘Lüs±9Ž‘Sª®Æ\newrefformat{tab}{Table–¹–#1“on“page“#2}Ž¡��‘I±10Ž‘Sª®Æ\newrefformat{fig}{Figure–¹–#1“on“page“#2}ŽŸ�‘X²The–ÖQcš¸ãharacter“Å:“²is“used“as“a“sep�Gerator.‘GqIt“m˜ust“bšGe“app˜ended“to“the“lab˜el“stringŽ����‘À$Æ\prettyrefŽŽŽŽ¦�‘I²to–UUterminate“the“Åname“²p�Gortion.ޤ��‘I±11Ž‘Sª®Æ\def\prettyref#1{\@prettyref#1:}ŽŸ�‘X²The–§ïinš¸ãternal“macro“Å\@prettyref“²do�Ges“all“the“w˜ork.‘i”It“tak˜es“t˜w˜o“arguemen˜tsŽ����‘ ŽÆ\@prettyrefŽŽŽŽ¦�‘I²delimited–ÿ˜bš¸ãy“Å:².‘p‘The“ rst“arguemen˜t“is“the“format“name.‘p‘If“the“format“has“notަ�‘Ib�Geen–.de ned,›Cåa“w�¸ãarning“is“issued“and“Å\ref“²is“used.‘®SOtherwise,˜the“reference“isަ�‘Iformatted.‘\zÅ\@prettyref–m²uses“the“L�Ÿýó5�‘üff±AŽŽ‘͉²T�‘þU>Ÿ'EŽ‘ãxX“macros“Å\ref“²and“Å\pageref“²to“access“theަ�‘IÅ\newlabel–;A²data“structure.‘#ŒHop�Gefully“this“makš¸ães“the“pac˜k‘ÿqÇage“robust“enough“toަ�‘Iuse–UUwith“v‘ÿqÇarious“other“pacakges.Ž¡��‘I±12Ž‘Sª®Æ\def\@prettyref#1:#2:{%ޤ ��‘I±13Ž‘]ÚÆ\expandafter\ifx\csname‘¹–pr@#1\endcsname\relax%Ž¡��‘I±14Ž‘f‘Æ\PackageWarning{prettyref}{Reference–¹–format“#1\space“undefined}%Ž¡��‘I±15Ž‘f‘Æ\ref{#1:#2}%Ž¡��‘I±16Ž‘]ÚÆ\else%Ž¡��‘I±17Ž‘f‘Æ\csname‘¹–pr@#1\endcsname{\ref{#1:#2}}{\pageref{#1:#2}}%Ž¡��‘I±18Ž‘]ÚÆ\fi%Ž¡��‘I±19Ž‘Sª®Æ}ŽŽŸ�’ø²2ŽŽŒø_ƒ’À;説óߤN cmtt9óßê