÷ƒ’À;è TeX output 1997.02.18:1211‹ÿÿÿÿïheader=psfrag.pro Ú�Á� ý%~? ¼�Á� ýzd©�‘}i”óDÓítG®G®cmr17ºThe–7tóÖÆG®G®cmss17»PSfrag‘q:ºsystem,“v�Œqersion“3ŽŸ$lÏ�����’ƒ®FóX«Q cmr12¼Micš¬rhael–ê¨C.“Gran˜t“and“Da˜vid“CarlisleŽŽŸ��’�ó߆µT cmtt12Åpsfrag@rascals.stanford.eduŽŽŽŽŽŸ,{¿�’³(þ¼26›ê¨No•¬rv“em“b�SŽer˜1996ŽŸ4€A�óÂÖN ff cmbx12ÇCon•ŒÌten“tsޤŒÏ��óò"V ó3 cmbx10È1Ž‘lÏWhat–2�is“óñkAH ó3 cmssbx10ÉPSfrag�*ÔÈ?�’VSs1ŽŽ¡��2Ž‘lÏÉPSfrag‘]aÈnecessities�’OD*2ŽŽ© ™š��‘lÏóKñ`y ó3 cmr10¹2.1Ž‘)œ1Cho�MÞosing–¦fa“Pš²!ostScript“driv˜er‘L��‘¼É.ŽŽ–„=��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ�‘ªC2ŽŽ¡��È3Ž‘lÏInstalling‘_SÉPSfrag�’TjÖÈ3ŽŽ¡��4Ž‘lÏUsage�’�g'3ŽŽ¡��5Ž‘lÏCommands–2�and“En•¦tvironmen“ts�’öã4ŽŽ¦��‘lϹ5.1Ž‘)œ1Em�²!bšMÞedding–ÍTó!m#½R ó3 cmss10ÌPSfrag“¹op˜erations–¦fin�²!to“EPS“ les‘œ¸��‘¼É.ŽŽ–„=��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ�‘ªC5ŽŽ¡��È6Ž‘lÏP•¦tac“k‘ÿLèage‘2�Options�’S-¢7ŽŽ¡��7Ž‘lÏAn‘2�Example�’i»Ë7ŽŽ¦��‘lϹ7.1Ž‘)œ1Figure–¦fscaling“and“resizing‘ðÁ��‘¼É.ŽŽ–„=��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ“��‘¼É.ŽŽ�‘ªC8ŽŽ¡��È8Ž‘lÏKno�¦twn‘2�problems�’PñN9ŽŽ¡��9Ž‘lÏThe–2�ÉPSfrag‘]aÈmailing“list�’*|þ10ŽŽŸ(€A��Ç1Ž‘LËWhat–ffis“ó"ñkAHff cmssbx10ÍPSfrag�8RÇ?ŽŸq‹�¹Man•²!y›ndra“wing˜and˜graphing˜pac“k‘ÿdDages˜pro�MÞduce˜output˜in˜the˜Encapsulated˜P“ostScript˜(EPS)ަ�format,‘Ò�but––’few“can“easily“pro�MÞduce“the“equations“and“other“scienš²!ti c“text“of“whic˜h“L�Ÿýûó�‘üÙó|{Ycmr8½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“isަ�capable.‘ ßOn–Qtthe“other“hand,‘¼6manš²!y“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B Xbased“dra˜wing“pac˜k‘ÿdDages“are“not“as“expressiv˜e“orަ�easy-to-use–¦fas“the“manš²!y“adv‘ÿdDanced“dra˜wing“pac˜k‘ÿdDages“that“pro�MÞduce“EPS“output.ޤ™š�ÌPSfrag‘Ìѹpro�²!vides–¥ãthe“bšMÞest“of“b˜oth“wš²!orlds“b˜y“allo˜wing“the“user“to“precisely“o˜v˜erla˜y“Encapsulatedަ�P�²!ostScript–Bˆ(EPS)‘Bn les“with“arbitrary“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“constructions.‘¼“In“order“to“accomplish“this,‘V�the“userަ�places–’ûa“simple“text“\tag"“in“the“graphics“ le,›Îas“a“\p�MÞosition“mark�²!er"“of“sorts.‘£›Then,˜usingަ�simple–ðÜL�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“commands,›Cythe“user“instructs“ÌPSfrag‘ʹto“remo•²!v“e–ðÜthat“tag“from“the“ gure,˜andަ�replace–¦fit“with“a“prop�MÞerly“sized,“aligned,“and“rotated“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“equation.Ž¡�This–DÔvš²!ersion“of‘ÛÌPSfrag‘k¹is“signi can˜tly“easier“to“use“than“previous“v˜ersions,‘XXb�MÞecause“it“eliminatesަ�the–M¾prepro�MÞcessing“step“required“in“those“vš²!ersions.‘ÀPAs“a“result,‘_ythe“new–t¬ÌPSfrag“¹should–M¾also“pro˜v˜eަ�to–¦fbšMÞe“signi can�²!tly“more“p˜ortable,“reliable,“and“ exible.ŽŽŸ�’ß¿1ŽŽŒ‹* Ú�Á� ý%~? ¼�Á� ýN~?�¹V‘ÿeeteran–žŒÌPSfrag‘Åz¹users“need“to“kno�²!w“that“the“ó#ßê ó3 cmmi10Ê"ŽŽ‘3Iµ¹and˜the˜Ìgraphics˜¹pac“k‘ÿdDage.‘ Á|ÌPSfrag‘n‰¹curren“tly˜requires˜theŽ¡�‘`1995/12/01– Ovš²!ersion“or“later“of“these“pac˜k‘ÿdDages,‘b but“it“is“alw˜a˜ys“b�MÞest“to“ha˜v˜e“the“mostŽ¡�‘`recenš²!t– release.‘½ÌPSfrag‘2ô¹will“no˜w“w˜ork“with“the“old“Ìepsf‘ΰ¹macros,‘%nbut“the“Ìgraphics“¹pac˜k‘ÿdDageŽ¡�‘`is–¦fstill“used“in�²!ternally‘ÿe.ŽŸÈ@����‘lÐËŽŽŽ‘`¹A‘»¹compatible›¼D•²!VI-to-P“ostScript˜driv“er˜(see˜b�MÞelo“w).‘­Ìdvips˜¹is˜the˜primary˜c“hoice˜of˜theŽ¡�‘`ÌPSfrag‘ÍT¹dev�²!elop�MÞers,–¦fand“is“certainly“the“most“widely-used.ŽŸ<ß�The–¾Alatest“vš²!ersions“of�“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X‘¤v2�Ÿ¤zÊ"ŽŽ‘-xÀ¹,‘8the“Ìgraphics“¹pac˜k‘ÿdDage,–8ÌPSfrag¹,“and–¾AÌdvips“¹can“all“b�MÞe“found“onŽ¡�CT‘ÿeAN,–I-the“Comprehensivš²!e“T�‘þ,³Ÿ[wEŽ‘B X“Arc˜hiv˜e“Net˜w˜ork.‘¾ÊThe“CT‘ÿeAN‘Icites,›[Òand“their“mirrors,˜include:ŽŸ*!í���Ÿëaë��‘uÀmNameŽ�’Ì|IP‘¦faddressŽ�’#OJLo�MÞcationŽŽ‘oÀlŸzã‰ffåv🠅��‘Îftp.dante.deŽ�‘\»¤¹129.206.100.192Ž�’³ŽÞGerman�²!yŽŽ¤ ™™��‘Îftp.tex.ac.ukŽ�‘\»¤¹128.232.1.87Ž�’³ŽÞEnglandŽŽ¡��‘Îftp.cdrom.comŽ�‘\»¤¹165.113.58.253Ž�’³ŽÞUSAŽŽŽŽŽŸ4¤µ��ó)ÂÖN  cmbx12Ô2.1Ž‘ÀCho�`osing–€a“Pš ostScript“driv˜erŽŸÚ¥�ÌPSfrag‘™Ä¹relies–rÖon“some“sensitivš²!e“P˜ostScript“tric˜ks“to“accomplish“its“goals.‘C.Due“to“limited“andŽ¡�time–ÿýand“resources,‘!Ethe“authors“could“not“con rm“that“ÌPSfrag‘&ë¹wš²!orks“prop�MÞerly“on“ev˜ery“a˜v‘ÿdDailableŽ¡�P•²!ostScript›†Jdriv“er.‘}ˆW‘ÿee˜ha“v“e˜attempted˜to˜insure˜that˜it˜will˜ó*ý': ó3 cmti10Õeventual‘�Fly‘~K¹w“ork˜on˜ev“ery˜driv“erŽ¡�that–¦fis“fully“comaptible“with“the“Ìgraphics“¹pacš²!k‘ÿdDage“(Õi.e.¹,“one“for“whic˜h“a“Î.def“¹ le“is“pro˜vided.)ަ�The–¦fdrivš²!ers“whic˜h“ha˜v˜e“b�MÞeen“con rmed“to“w˜ork“with“ÌPSfrag‘ÍT¹are:ޤ#»���Ÿò.·��‘P!Driv�²!erŽ�’ÌãT‘ÿeested‘¦fb�²!yŽ�’æECompatibilit�²!yŽŽ‘J Ÿzã‰ff0LjŸ …��‘Thomas–¦fRokic�²!ki's“ÌdvipsŽ�’�öùthe‘¦fauthorsŽ�’ÄÎ%fully‘¦fcompatibleŽŽŸ ™™��‘Y&Y's‘¦fÌD�²!VIPSONEŽ�’�öùthe‘¦fauthorsŽ�’ÄÎ%ÕL‘ÿp¹evel–êê2“printers“only¹.ŽŽŽŽŽ¡�As–ãthe“table“shoš²!ws,‘}some“driv˜ers,‘}lik˜e“ÌD˜VIPSONE¹,“will“w˜ork“prop�MÞerly“with“ÌPSfrag‘Eѹbut“willޤ ™š�prošMÞduce– output“that“prin�²!ts“prop˜erly“only“on“new•²!er,‘5ÕL‘ÿp¹evel‘@&2‘¹P“ostScript› prin“ters.‘óÍIf˜y“ou˜try˜toŽ¡�prin•²!t›yÂsuc“h˜a˜do�MÞcumen“t˜on˜a˜Lev“el˜1˜prin“ter˜using˜one˜of˜these˜driv“ers,‘®˜the˜replacemen“ts˜willŽ¡�not–†™shoš²!w“up.‘~wHop�MÞefully‘ÿe,‘¾¦the“incidence“of“Lev˜el“1“prin˜ters“is“diminishing,‘¾¦esp�MÞecially“with“theŽ¡�emergence–¦fof“Levš²!el“3“P˜ostScript“on“the“horizon.ަ�Please–:òhelp“us“add“enš²!tries“to“this“compatibilit˜y“list!‘›�If‘ùÌPSfrag‘aà¹w˜orks“with“y˜our“driv˜er,‘`pleaseŽ¡�let–ºsus“knoš²!w,‘¿vso“w˜e“can“add“it“to“the“list.‘If‘”zÌPSfrag‘áa¹do�MÞes“Õnot‘Ä]¹w˜ork,‘¿vplease“submit“a“bug“rep�MÞort.Ž¡�Consult–§Êsection“9“for“conš²!tact“information.‘âIf“p�MÞossible,‘¨#test“y˜our“ÌPSfrag‘θ¹output“on“b�MÞoth“Lev˜el“1Ž¡�and–¦fLevš²!el“2“prin˜ters,“so“w˜e“can“mak˜e“a“distinction“here“if“necessary‘ÿe.ŽŸ¶‰ffµ/4Ÿ LÍ����‘ {ºŸü-=ó¹Aa¨cmr6¾1ŽŽŽ‘¦aó$o´‹Ç cmr9ÏCraig–Mno“longer“participates“in“the“dev•¾9elopmen“t›Mof‘µ¾ó'ÒoÇw cmss9ÒPSfrag� äÏ;‘úho“w“ev“er,‘Nheaps˜of˜praise˜ma“y˜still˜b�AÇe˜sen“t˜to˜himŽŸ �at‘Tó(ߤN cmtt9Ópsfrag@rascals.stanford.eduÏ!ŽŽŸ�’ß¿¹2ŽŽŒ‹ | Ú�Á� ý%~? ¼�Á� ýN~?��Ç3Ž‘LËInstalling‘ŸÿÍPSfragŽŸït�¹Installing–¦fthe“v‘ÿdDarious“ÌPSfrag‘ÍT¹ les“is“quite“simple:ŽŸÒJ����‘ b%1.ŽŽŽ‘`Run–¦fL�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“on“Îpsfrag.ins“¹to“extract“Îpsfrag.sty“¹and“Îpsfrag.pro¹.ޤ„����‘ b%2.ŽŽŽ‘`Install–w‰Îpsfrag.sty“¹in“a“standard“lo�MÞcation“for�“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X‘¤v2�Ÿ¤zÊ"ŽŽ‘-©‘¹macros.‘xéF‘ÿeor“Ìkpathsea¹-based“systemsŽ© ™š�‘`sucš²!h–¦fas“ÌteT‘ÿeeX¹,“this“path“is“determined“b˜y“the“ÎTEXINPUTS“¹v‘ÿdDariable.Ž¡����‘ b%3.ŽŽŽ‘`Install–üÎpsfrag.pro“¹wherevš²!er“y˜our“P˜ostScript“driv˜er“lo�MÞoks“for“header“ les.‘ßF‘ÿeor“Ìkpathsea¹-ަ�‘`based–±csystems,‘´"this“is“determined“b�²!y“the“ÎDVIPSHEADERS‘±`¹v‘ÿdDaraible.‘þÓF‘ÿeor“Ìdvips“¹in“particular,ަ�‘`the–ºÖmost“logical“cš²!hoice“w˜ould“b�MÞe“the“same“directory“in“whic˜h“Îtex.pro“¹and“Îspecial.proަ�‘`¹are‘¦flo�MÞcated.Ž¡����‘ b%4.ŽŽŽ‘`If–^|yš²!ou“ha˜v˜e“an“older“v˜ersion“of‘8ƒÌPSfrag¹,‘Œ�y˜ou“ma˜y“delete“the“follo˜wing“ les,‘Œ�if“they“exist:ަ�‘`Îps2frag.ps¹,›nÎps2frag–_þ¹or“Îps2psfrag“¹(the“pro�MÞcessing“scripts),˜and“Îepsf.sty“¹(the“one“pro-ަ�‘`vided–Ì«bš²!y‘ó™ÌPSfrag¹,‘Ö<Õnot‘Ö•¹the“Ìdvips“¹v˜ersion!).‘P«System“managers“ma˜y“wish“to“replace“Îps2fragަ�‘`¹with–¦fa“script“whic�²!h“noti es“users“of“the“upgrade.ŽŸ'ÀÖ��Ç4Ž‘LËUsageŽŸït�¹Here–¦fis“a“quic�²!k“summary“of“the“usage“of‘€mÌPSfrag�&î¹:ŽŸÒJ����‘lÐËŽŽŽ‘`¹Makš²!e–Õsure“that“y˜our“EPS‘Ô» gure“con˜tains“simple“\tag"“w˜ords“in“the“same“p�MÞositions“inަ�‘`whic•²!h›ƒ‡y“ou˜w“ould˜lik“e˜the˜L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X˜replacemen“ts.‘u@Some˜e ort˜has˜b�MÞeen˜made˜to˜allo“w˜forަ�‘`more–‚‹arbitrary“tag“text;‘ð�but“it“is“still“more“reliable“to“use“simple,–¹”short,“alphan�²!umericަ�‘`tags.Ž¡����‘lÐËŽŽŽ‘`¹If–ôyš²!ou“wish“to“use“Îepsf.sty“¹to“include“EPS‘Ò les,‘9>it“m˜ust“b�MÞe“loaded“with“the“Î\usepackageަ�‘`¹command›•Õb–ÿp¹efor“e‘Ú6Îpsfrag.sty¹.‘iOther˜pac•²!k‘ÿdDages˜that˜are˜based˜up�MÞon˜Îgraphics.sty¹,‘àsuc“hަ�‘`as–¦fÎgraphicx.sty“¹or“Îepsfig.sty¹,“can“bšMÞe“loaded“b˜efore“or“after“Îpsfrag.sty¹.Ž¡����‘lÐËŽŽŽ‘`¹Load–¦fÎpsfrag.sty“¹with“a“Î\usepackage“¹command.Ž¡����‘lÐËŽŽŽ‘`¹F‘ÿeor–®Ÿeacš²!h“tag“w˜ord“in“y˜our“EPS‘®[ le,‘ð­add“a“command“to“y˜our“y˜our“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“do�MÞcumen˜t“toަ�‘`sp�MÞecify–¦fhoš²!w“this“tag“is“to“replaced,“as“follo˜ws:Ž¡�‘3wÎ\psfrag{Õtag‘øÎ}[�ËhÕp‘ÿp¹osn‘× ËiŽ‘Ÿ¸Î][�ËhÕpsp‘ÿp¹osn‘× ËiŽ‘(²¦Î][�ËhÕsc‘ÿp¹ale‘Ò¡ËiŽ‘¹ØÎ][�ËhÕr‘ÿp¹ot‘ êËiŽ‘ØïÎ]{ÕL�Ÿýûó�‘ûønó+#Ñf�cmti8ÖAŽŽ‘©ìÕT�‘þ"RŸ[wEŽ‘)¡X‘êêtext‘ êÎ}Ž¡�‘`¹The–¿Ãtag“will“b�MÞe“replaced“bš²!y“the“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“text.‘)óCertain“complicated“v‘ÿdDalues“for“the“tag“w˜ordަ�‘`mighš²!t–¦fconfuse“T�‘þ,³Ÿ[wEŽ‘B X‘y�so“it's“b�MÞest“to“use“simple“alphan˜umeric“names.ŽŸØ��‘`Example:‘ÝÝin–¦fa“draš²!wing“program“lik˜e“Ìx g¹,“y˜ou“place“the“textŽ¡�‘3wÎxyŽ¡�‘`¹at–¦fa“particular“pšMÞoin�²!t.‘ÝÝT‘ÿeo“replace“this“with“Êx–nì¹+“Êy�d“¹,–¦fone“p˜ossible“macro“w�²!ould“b˜eŽ¡�‘3wÎ\psfrag{xy}{$x+y$}Ž¡�‘`¹All–7Î\psfrag“¹calls“that“precede“the“Î\includegraphics“¹(or“equiv‘ÿdDalen�²!t)“in“the“same“orަ�‘`surrounding› „en•²!vironmen“ts˜will˜b�MÞe˜utilized˜for˜a˜giv“en˜P“ostScript˜ le.‘ 8So,‘#Œy“ou˜can˜de neަ�‘`global–¦fÎ\psfrag¹s“as“w�²!ell“as“those“that“are“lo�MÞcal“to“a“ gure.Ž¡����‘lÐËŽŽŽ‘`¹Anš²!y–btext“that“is“not“men˜tioned“in“a“Î\psfrag“¹command“will“not“b�MÞe“replaced;‘?Õhence,ަ�‘`P�²!ostScript–¦fand“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“text“can“b�MÞe“freely“mixed.ŽŽŸ�’ß¿3ŽŽŒ‹> Ú�Á� ý%~? ¼�Á� ýN~?�¹When–�Óviewing“the“output“with“a“D•²!VI‘�—preview“er›�Ósuc“h˜as˜Ìdviwin˜¹or˜Ìxdvi¹,‘Ê-a˜v“ertical˜list˜of˜theޤ ™š�replacemenš²!ts–¤will“b�MÞe“placed“on“the“left“side“of“eac˜h“ gure.‘i—This“list“allo˜ws“y˜ou“to“c˜hec˜k“theŽ¡�tš²!yp�MÞesetting–'of“y˜our“replacemen˜ts;‘0it“disapp�MÞears“in“the“ nal“P˜ostScript“v˜ersion.‘ñ!Unfortunately‘ÿe,Ž¡�D•²!VI‘àdriv“ers–ûare“incapable“of“Õplacing‘ü¹the“ÌPSfrag‘5é¹replacemen�²!ts“on“top“of“the“ gure,‘) so“for“thatŽ¡�yš²!ou–¦fwill“need“to“prin˜t“it“out“or“use“a“P˜ostScript“preview˜er“lik˜e“GhostView.Ž©™š�This–ëfvš²!ersion“of‘ÅmÌPSfrag‘TÕshould‘ ¹run“prop�MÞerly“in“the“compatibilit˜y“mo�MÞde“of“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X2.09.‘ŸˆLet“us“kno˜wŽ¡�if–¦fy�²!ou“ nd“otherwise“(see“section“9).ŽŸ(€A��Ç5Ž‘LËCommands–ffand“En•ŒÌvironmen“tsŽŸ.S���‘äŸüŸñ€‰ff*UŸfd���Ìͤ™œ„ ff‘ÌΟüfdó,ßêõIt's“b�MÞest“if“yš²!ou“use“fon˜t“size“c˜hanges“in“the“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“textŽ¡�‘`rather–¦fthan“scale,“but“yš²!ou“can“use“the“scale“to“t˜w˜eak“its“size.‘ÝÝDefault“is“Î[1]¹.ŽŸ™š�‘yšÎ[�ËhÕr‘ÿp¹otn‘× ËiŽ‘ÎÎ]–¿Î¹Extra“rotation“of“the“text“around“its“reference“p�MÞoin�²!t,‘íìin“degrees.‘‘The“nominal“rotationŽ¡�‘`of–RUthe“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“text“matcš²!hes“that“of“the“P˜ostScript“text“it“replaces.‘á«The“total“rotation“isŽ¡�‘`this–¦fnominal“v‘ÿdDalue“plus“Î[�ËhÕr‘ÿp¹otn‘× ËiŽ‘ÎÎ]¹.‘ÝÝThe“default“is“Î[0]¹.ަ�Figure–rÖ1“proš²!vides“an“illustration“of“the“e ects“of“the“use“of“v‘ÿdDarious“argumen˜ts“ab�MÞo˜v˜e“(and“itŽ¡�happšMÞens–¨ìto“b˜e“a“go˜o˜d“exerciser“for“the“pac�²!k‘ÿdDage,‘é�to˜o).‘åoIf“yš²!ou're“viewing“the“D˜VI‘¨ª le“with“aŽŽŸ�’ß¿4ŽŽŒ‹-� Ú�Á� ý%~? ¼�Á� þo€ö�ŸÙ÷w��‘Qï-ïYps: currentpoint currentpoint translate 0.91138 0.91138 scale neg exch neg exch translate������‘ZU±ïWps: gsave currentpoint currentpoint translate 30 neg rotate neg exch neg exch translate��ïòps: /PSfrag where{pop(gA)[[0(br)1 0][1(b )2 0][2(bl)1 0][3(Bl)1 0][4(B )1 0][5(Br)1 0][6( r)1 0][7( )0.75 45][8( l)1.5 30][9(tl)1 0][10(Bl)1 0][11(l)1 0][12(t)1 -90][13(t )1 0][14(tr)1 180]]1 1 -1/Begin PSfrag}{userdict /PSfrag{pop}put}ifelseï:PSfile="testfig.eps" llx=0 lly=0 urx=261 ury=180 rwi=2610 ïps: /End PSfrag� ÿ(DFïps: /Hide PSfragŸ »´����ŸûÞö�‘žd�¹PSfrag‘¦freplacemen�²!tsŽ‘žd�Ÿº¥‰fea›pŽŽŽŽïps: /Unhide PSfrag¤ ™š��ïps: { �Ÿÿi��‘Ò°Î[br][br]ŽŽŽïps: } 0/Place PSfragŽŽ¡�Ÿÿi�ïps: { ���‘ƃ\[Br][b][2]ŽŽŽïps: } 1/Place PSfragŽŽ¡�Ÿû½à�ïps: { �ŸX‰��‘×ÂZ[r][bl]ŽŽŽïps: } 2/Place PSfragŽŽ¡�Ÿ÷{¿�ïps: { �Ÿšª��‘Ò°[tr][Bl]ŽŽŽïps: } 3/Place PSfragŽŽ¡��–îÁïps: { �Ÿÿi��“[b][B]ŽŽŽïps: } 4/Place PSfragŽŽ¡�Ÿÿi�–ëá-ïps: { ���“[B][Br]ŽŽŽïps: } 5/Place PSfragŽŽ¡�Ÿû½à�–ñ ×ïps: { �ŸX‰��“[][r]ŽŽŽïps: } 6/Place PSfragŽŽ¡�Ÿ÷{¿�–Ôâ…ïps: { �Ÿšª��“[t][][0.75][45]ŽŽŽïps: } 7/Place PSfragŽŽ¡��‘¤`ïps: { �Ÿÿi��[bl][l][1.5][30]ŽŽŽïps: } 8/Place PSfragŽŽ¡�Ÿÿi�‘Ò°ïps: { ���[Bl][tl]ŽŽŽïps: } 9/Place PSfragŽŽ¡��‘¿t¯ïps: { �ŸýC4��‘?þ¹(baseline)ŽŽŽïps: } 10/Place PSfragŽŽ¡��‘³Ÿ¬ïps: { �ŸýC4��‘?þ(cen�²!ter‘¦fline)ŽŽŽïps: } 11/Place PSfragŽŽ¡��‘³Ÿ¬ïps: { �ŸýC4��‘?þ(cen�²!ter‘¦fline)ŽŽŽïps: } 12/Place PSfragŽŽ¡�Ÿû½à�‘Ý‚ïps: { �ŸX‰��Î[l][t]ŽŽŽïps: } 13/Place PSfragŽŽ¡�Ÿ÷{¿�‘¤`ïps: { �Ÿšª��[tl][tr][1][180]ŽŽŽïps: } 14/Place PSfragŽŽŽŽŽ’ú�ï ps: currentpoint grestore movetoŽŽŽŽŽŽïeps: currentpoint currentpoint translate 1 0.91138 div 1 0.91138 div scale neg exch neg exch translateŽŽŸ#™š��‘8ñ¹Figure–¦f1:‘ÝÝAn“illustration“of“v‘ÿdDarious“options“for“the“Î\psfrag“¹command.ŽŽŽŸMí�preview•²!er›=9suc“h˜as˜Ìxdvi¹,‘RBy“ou˜should˜see˜the˜ÌPSfrag‘d'¹replacemen“ts˜lined˜up˜to˜the˜left˜of˜the˜ gure;ޤ ™š�and,‘ 0if–Õyš²!our“preview˜er“can“displa˜y“EPS‘¼ les,› 0a“large,˜rotated“ÎgA¹.“If“yš²!ou“ha˜v˜e“prin˜ted“this“out,Ž¡�or–ã_are“viewing“the“Pš²!ostScript“ le“with“a“view˜er“lik˜e“GhostView,‘ò�then“the“replacemen˜ts“shouldŽ¡�b•MÞe›¤˜prop“erly˜sup“erimp“osed˜on˜a˜graphical˜represen�²!tation˜of˜the˜b“ounding˜b“o•²!x,‘¤ôcen“ter˜lines,‘¤ôandŽ¡�baseline–¦fof“the“tag“ÎgA¹.“(This“graphical“b�MÞoš²!x“is“pro˜vided“only“in“debug“mo�MÞde.)ŽŸÀ��If–‹-a“replacemen�²!t“for“Î{Õtag‘øÎ}“¹already“exists,‘ÃÒthe“unstarred“command“Î\psfrag“¹will“replace“it“withoutŽ¡�wš²!arning.‘½xThe–E7starred“v˜ersion“Î\psfrag*¹,–X§ho˜w˜ev˜er,“will–E7Õadd‘fá¹the“new“replacemen˜t“to“a“list.‘½xUsingŽ¡�the–¡˜starred“command,‘ÕÁa“single“piece“of“Pš²!ostScript“text“could“trigger“sev˜eral“replacemen˜ts.‘†îI‘¡Vcan'tŽ¡�think–g·of“a“reason“whš²!y“most“users“w˜ould“use“the“starred“v˜ersion,‘˜ but“it“w˜as“used“in“Figure“1Ž¡�ab�MÞo•²!v“e.ŽŸ_ü���‘äŸüŸ÷€‰ff¢UŸfd���Ìͤ™œ„ ff‘ÌΟüfd×\begin{psfrags}‘UU\end{psfrags}‘ÌÍ¡„ ffŽŽŸ‰ff¢UŽŽŽŸ€µ�¹The–ˆ˜Îpsfrags“¹en•²!vironmen“t›ˆ˜ma“y˜b�MÞe˜used,–ŽŽif˜necessary‘ÿe,“to˜delimit˜the˜scop�MÞe˜of˜the˜Î\psfrag˜¹calls.Ž¡�As–Aywš²!e“said“b�MÞefore,‘U¨Î\psfrag“¹commands“retain“their“e ect“un˜til“the“most“immediate“surroundingŽ¡�en•²!vironmen“t–'ÿis“exited.›³»ÕA�¸\ny‘ ¹en•²!vironmen“t–'ÿwill“do:‘žªÎcenter¹,–AGÎfigure¹,“Õetc.¹.˜Therefore,“it–'ÿmaš²!y“nev˜erŽ¡�bšMÞe–Jnecessary“to“use“this“en•²!vironmen“t,‘#and–Jthe“en•²!vironmen“t–Jhas“no“other“e ect“on“the“do˜cumen�²!t.ŽŸ")��Ô5.1Ž‘ÀEmš b•`edding‘°ó.ñkAH cmssbx10ÙPSfrag‘®ïÔop“erations–€in˜to“EPS“ lesŽŸ,®���‘äŸüŸñ€‰fföd\Ÿfd���Ìͤ™œ„ ff‘ÌΟüfd×\tex[�¸hØp‘ÿ}'osn‘Äc¸iŽ‘÷�×][�¸hØpsp‘ÿ}'osn‘Äc¸iŽ‘%*À×][�¸hØsc‘ÿ}'ale‘À[¸iŽ‘ù6×][�¸hØr‘ÿ}'ot‘òظiŽ‘Ý}×]{ØL�Ÿýé›�‘üQíó/t}\Êcmti7ÚAŽŽ‘ÙØT�‘þKß'EŽ‘Í-X‘“çtext‘òØ×}‘ÌÍ¡„ ffŽŽŸ ���Ìͤ™œ„ ff‘ÌΟüfd\psfragscanon‘ ÿÿ\psfragscanoff‘Xqz¡„ ffŽŽŸ‰fföd\ŽŽŽŸh+�ÌPSfrag‘ Û¹3.0–æísuppšMÞorts“the“em�²!b˜edded“Î\tex“¹commands“found“in“previous“release“of‘ÀôÌPSfrag¹,‘÷but“itŽ¡�has–;ÀbšMÞeen“deprecated“somewhat“b˜ecause“of“its“reliance“on“a“pre-pro˜cessing“step.‘ºQUnlik�²!e“previousŽ¡�vš²!ersions–�/of‘j6ÌPSfrag¹,‘Ê supp�MÞort“for“the“Î\tex“¹command“m˜ust“bšMÞe“Õexplicitly‘Áþr–ÿp¹e“queste“d¹,‘Ê as‘�/describ˜edŽ¡�b�MÞelo�²!w.ŽŽŸ�’ß¿5ŽŽŒ‹@Ç Ú�Á� ý%~? ¼�Á� ýN~?�¹As–³Eyš²!ou“can“see,‘ö|the“syn˜tax“of“the“Î\tex“¹command“is“v˜ery“similar“to“the“Î\psfrag“¹command.ޤ ™š�Ho•²!w“ev“er,›·binstead–{¡of“adding“the“Î\tex“¹command“to“y�²!our“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“ le,˜the“Î\tex“¹command“is“Õemb–ÿp¹e“dde“dŽ¡�in–êêthe“EPS“ le“itself¹.‘ÝÝIn–¦fother“wš²!ords,“the“command“b�MÞecomes“its“o˜wn“replacemen˜t“tag.Ž©™š�F‘ÿeor–¦fexample,“yš²!ou“migh˜t“place“the“textޤ™š�‘`Î\tex[bl][bl]{$\alpha$}Ž¡�¹at–SÎa“particular“p�MÞoinš²!t“in“y˜our“P˜ostScript“ le“to“ha˜v˜e“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“replace“it“with“Ê � `¹.‘ÂUMan˜y–z¼ÌPSfrag“¹usersޤ ™š� nd–¦fthis“feature“useful“for“the“axis“lab�MÞels“and“titles“of“MA‘ÿeTLAB“graphs.ަ�The–zíadv‘ÿdDanš²!tage“to“this“approac˜h“is“that“c˜hanges“can“b�MÞe“made“to“the“EPS‘zâ le“without“ha˜ving“toŽ¡�mo�MÞdify–¿?an�²!y“Î\psfrag“¹commands“in“the“L�Ÿýûó�‘üÙ½AŽŽ›ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“ le.‘(g(It“is“still“necessary“to“Õr–ÿp¹e-c“ompile‘‘à¹the‘¿?L�Ÿýûó�‘üÙ½AŽŽ˜¹T�‘þ,³Ÿ[wEŽ‘B XŽ¡� le–¦fin“sucš²!h“cases,“ho˜w˜ev˜er.)ަ�There–¦fare“cautions“and“disadv‘ÿdDanš²!tages“to“this“approac˜h,“including:ŽŸ™š����‘lÐËŽŽŽ‘`¹Changing–Úuthe“lab�MÞels“created“bš²!y“Î\tex“¹commands“requires“editing“the“ gure;‘t|if“y˜ou“useŽ¡�‘`Î\psfrag–à"¹instead,‘î‘yš²!ou“need“only“to“edit“the“do�MÞcumen˜t,‘î‘whic˜h“migh˜t“b�MÞe“less“cum˜b�MÞersome.Ž¡�‘`(Y‘ÿeou–¦fm�²!ust“run“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“again“in“b�MÞoth“cases.)Ž©™š����‘lÐËŽŽŽ‘`¹Because–,’Î\tex“¹commands“are“long“strings,‘Dïthey“can“extend“past“the“other“graphics“in“y�²!ourŽ¡�‘`EPS›ºh le.‘óAs–ºma“result,‘¿othey“can“mo�MÞdify“the“EPS˜bšMÞounding“b˜oš²!x“in“an“undesired“w˜a˜y‘ÿe.‘óThisŽ¡�‘`problem–gÚcan“b�MÞe“mitigated“bš²!y“reducing“the“fon˜t“size“of“the“Î\tex“¹string,‘t]since“this“do�MÞes“notŽ¡�‘`a ect–¦fthe“size“of“its“ÌPSfrag‘ÍT¹replacemen�²!t.ަ����‘lÐËŽŽŽ‘`¹The–¦fÎ\tex“¹command“is“not“supp�MÞorted“in“compressed“P�²!ostScript“ les.ަ����‘lÐËŽŽŽ‘`¹The–ä T�‘þ,³Ÿ[wEŽ‘B X“engine“mš²!ust“scan“the“P˜ostScript“ le“for“these“strings,‘3swhic˜h“can“add“to“theŽ¡�‘`prošMÞcessing–•êtime“of“y�²!our“do˜cumen�²!t.‘Ø_(T‘ÿeo“b˜e“honest,‘™6wš²!e“ha˜v˜e“y˜et“to“encoun˜ter“a“case“whereŽ¡�‘`this–¦fis“a“signi can�²!t“concern.)ަ����‘lÐËŽŽŽ‘`ÕImp‘ÿp¹ortant!‘ ·Œ¹Whenevš²!er–zða“ le“is“scanned“b˜y‘¡ÞÌPSfrag¹,‘ðit“generates“a“ le“with“the“nameŽ¡�‘`Î\jobname.pfg¹,‘µ,where–xÝÎ\jobname“¹is“the“base“name“of“the“master“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“ le.‘yZIt“will“o•²!v“erwrite,Ž¡�‘`without–¦fwš²!arning,“an˜y“ le“with“that“name.Ž©™š�Since–ƒlit“wš²!as“imp�MÞossible“to“impro˜v˜e“the“Î\tex“¹command“in“the“same“w˜a˜y“as“the“Î\psfrag“¹command,Ž¡�this–Dëfeature“is“no“longer“enabled“automatically“except“in“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“2.09“compatibilit�²!y“mo�MÞde.‘¹mSo,Ž¡�for�‘¦fL�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X‘¤v2�Ÿ¤zÊ"ŽŽ‘0K¹do�MÞcumen•²!ts,›¦fy“ou˜m“ust˜activ‘ÿdDate˜it˜in˜one˜of˜t“w“o˜w“a“ys:ަ����‘lÐËŽŽŽ‘`¹T‘ÿeo–gãturn“on“scanning“for“a“single“ gure,‘ØAprecede“the“Î\epsfbox“¹or“Î\includegraphicsŽ¡�‘`¹command–uwith“a“call“to“the“command“Î\psfragon¹.‘­7Scanning“will“b�MÞe“turned“o “again“whenŽ¡�‘`the–î8surrounding“en•²!vironmen“t–î8is“exited;‘’!or,‘@,yš²!ou“can“turn“it“o “explicit˜y“with“a“call“toŽ¡�‘`Î\psfragscanoff¹.ŽŸ™š����‘lÐËŽŽŽ‘`¹T‘ÿeo–±dturn“on“scanning“for“the“enš²!tire“do�MÞcumen˜t,‘´$pass“the“option“Îscanall“¹to“Îpsfrag.sty“¹inŽ¡�‘`the–¦fÎ\usepackage“¹command.ަ�The–S=Î\tex“¹scanner“will“con•²!tin“ue–S=to“bšMÞe“supp˜orted“in“this“form.‘äaSo,‘~rif“y�²!ou“do“ nd“applicationsŽ¡�where–%y�²!ou“prefer“the“Î\tex“¹command,›DÆdo“not“hesitate“to“use“it!‘YøF‘ÿeor“b�MÞest“results,˜ho•²!w“ev“er,˜w“eŽ¡�recommend–¦fthat“yš²!ou“use“Î\psfrag“¹exclusiv˜ely“instead.ŽŽŸ�’ß¿6ŽŽŒ‹R# Ú�Á� ý%~? ¼�Á� ýN~?��Ç6Ž‘LËP•ŒÌac“k‘ÿ™age‘ffOptionsŽŸq‹�¹There– †are“only“four“pacš²!k‘ÿdDage“options“for“ÌPSfrag¹.‘Ì=An˜y“other“options“that“are“not“handled“b˜yޤ ™š�ÌPSfrag‘ÍT¹will–¦fb�MÞe“forw�²!arded“to“Îgraphics.sty¹.ŽŸ™š���Î209modeŽŽ‘-·@¹(�L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X‘¤v2�Ÿ¤zÊ"ŽŽ‘+ü}¹nativ�²!e–AþmošMÞde“only)“forces“ÌPSfrag‘hì¹to“op˜erate“exactly“as“if“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“2.09“compat-Ž¡�‘`ibilitš²!y–â‚mo�MÞde“w˜as“enabled.‘’2As“a“result,‘ñ‰Îbl“¹alignmen˜t“is“the“default,‘ñ‰and“Î\tex“¹scanning“isŽ¡�‘`enabled–‰for“all“EPS‘‰x les.‘Ô;This“option“is“useful“if“yš²!ou“are“trying“to“con˜v˜ert“old“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“2.09Ž¡�‘`do�MÞcumen�²!ts–¦fto�“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X‘¤v2�Ÿ¤zÊ"ŽŽ‘,`å¹.ŽŸš�‘`The– åL�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X2.09“vš²!ersion“of‘çìÌPSfrag‘4Ó¹generated“an“auxiliary“ le“for“eac˜h“EPS‘ ¾ gure“con˜tainingŽ¡�‘`imp�MÞortan•²!t›¦freplacemen“t˜information.‘ÝÝThese˜ les˜are˜no˜longer˜used˜and˜can˜b�MÞe˜deleted.Ž©™š���Î2emodeŽŽ‘'÷–¹(L�Ÿýûó�‘üÙ½AŽŽ›ÈG¹T�‘þ,³Ÿ[wEŽ‘B X–á¿2.09“compatibilit�²!y“mo�MÞde“only)“forces“ÌPSfrag‘­¹to“remain“in�“L�Ÿýûó�‘üÙ½AŽŽ˜¹T�‘þ,³Ÿ[wEŽ‘B X‘¤v2�Ÿ¤zÊ"ŽŽ‘0}ý¹mo�MÞde,‘ð•ev�²!enŽ¡�‘`in–õÆthe“presence“of“a“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“2.09“došMÞcumen�²!t;‘vthis“is“the“direct“opp˜osite“of“Î209mode¹.‘ËýWhenŽ¡�‘`enabled,–¦fthe“default“alignmenš²!t“is“ÎBl¹,“and“Î\tex“¹scanning“is“turned“o “b˜y“default.ަ���ÎscanallŽŽ‘-·@¹turns–L†on“Î\tex“¹scanning“bš²!y“default.‘¿èUse“this“option“if“most“y˜our“ gures“use“em˜b�MÞeddedŽ¡�‘`Î\tex‘¦f¹commands.ަ���ÎdebugŽŽ‘"7ì¹turns–­¸on“some“of“the“debugging“features“of“PSfrag.‘ óÒIt“inserts“extra“co�MÞde“in�²!to“theŽ¡�‘`Pš²!ostScript–˜H le“that“dra˜w“the“bšMÞounding“b˜oš²!xes“of“eac˜h“piece“of“text“that“is“replaced.‘³‚ItŽ¡�‘`is–¦fprobably“not“useful“to“an•²!y“one–¦fbut“the“dev�²!elop�MÞers“of‘€mÌPSfrag¹.ŽŸ(€A��Ç7Ž‘LËAn‘ffExampleŽŸq‹�¹In–©Pthe“folloš²!wing“example,‘ª w˜e“demonstrate“ho˜w“to“use“ÌPSfrag‘Ð>¹with“the“MA‘ÿeTLAB‘©Opac˜k‘ÿdDage.‘æ›TheŽ¡�folloš²!wing–,½MA‘ÿeTLAB‘,›commands“generate“a“plot“of“b�MÞoth“a“sine“w˜a˜v˜e“and“a“cosine“w˜a˜v˜e,‘NSplacesŽ¡�b�MÞoth–£òsimple“tags“and“Î\tex“¹replacemenš²!ts“in˜to“the“ gure,‘ãTand“sa˜v˜es“the“result“as“an“EPS‘£± leŽ¡�Îexample.eps¹.ŽŸ�‘ÿô×t–?ý=“0:.1:10;ޤ �‘ÿôplot(t,sin(t),t,cos(t));Ž¡�‘ÿôaxis('square');‘?ýgrid;Ž¡�‘ÿôtitle('\tex[B][B]{Plot–?ýof“$\sin(t)$“and“$\cos(t)$}');Ž¡�‘ÿôxlabel('\tex[t][t]{$t$}');Ž¡�‘ÿôylabel('\tex[B][B]{$\sin(t)$,‘?ý$\cos(t)$}');Ž¡�‘ÿôtext(t(30),sin(t(30)),'p1');Ž¡�‘ÿôtext(t(60),sin(t(60)),'p2');Ž¡�‘ÿôtext(t(90),sin(t(90)),'p2');Ž¡�‘ÿôtt=text(t(50),cos(t(50)),'p3');Ž¡�‘ÿôset(tt,'HorizontalAlignment','center','VerticalAlignment',...Ž¡�‘)ÿè'bottom','Rotation',atan2(-sin(t(50))*10,2)*180/pi);Ž¡�‘ÿôprint–?ý-deps“exampleŽŸ™š�¹(In–ŸÊMA‘ÿeTLAB,“the“'text'“command“defaults“to“a“left-cenš²!ter“alignmen˜t,‘"corresp�MÞonding“to“aޤ ™š�Î[�ËhÕpsp‘ÿp¹osn‘× ËiŽ‘(²¦Î]–¦f¹argumen�²!t“of“Î[l]¹.)ŽŸ™š�The–È'cošMÞde“b˜eloš²!w“includes“Îexample.eps“¹in˜to“the“curren˜t“do�MÞcumen˜t,‘Зresizing“it“to“a“width“of“3.5Ž¡�inc•²!hes.‘¡VSev“eral–ðÒÎ\psfrag“¹commands“are“used“to“replace“the“tags“Îp1¹,–#Îp2¹,“and–ðÒÎp3“¹in“the“ gure,‘#andŽ¡�the–íþcommand“Î\psfragscanon“¹command“is“used“to“notify–ìÌPSfrag“¹that–íþit“m�²!ust“scan“Îexample.epsŽ¡�¹for–¦fthe“Î\tex“¹tags.ŽŽŸ�’ß¿7ŽŽŒ‹a: Ú�Á� ý%~? ¼�Á� ýN~?�‘ÿô×\begin{figure}[tbh]ޤ �‘)ÿè\unitlength=1inŽ¡�‘)ÿè\begin{center}Ž¡�‘>ÿÜ\psfragscanonŽ¡�‘>ÿÜ\psfrag{p1}[l]{\begin{picture}(0,0)Ž¡�‘SÿÐ\put(0.15,‘?ý0.2){\makebox(0,0)[l]{$\sin(t)$}}Ž¡�‘SÿÐ\put(0.1,0.2){\vector(-1,-2){0.1}}Ž¡�‘SÿÐ\end{picture}}Ž¡�‘>ÿÜ\psfrag*{p1}[][l]{$\ast$}Ž¡�‘>ÿÜ\psfrag{p2}[][l]{$\ast$}Ž¡�‘>ÿÜ\psfrag{p3}{$\cos(t)$}Ž¡�‘>ÿÜ\includegraphics[width=3.5in]{example.eps}Ž¡�‘/?å\end{center}Ž¡�‘/?å\caption{A–?ý\textsf{psfrag}“example.}Ž¡�‘ÿô\end{figure}ŽŸï�¹Note–¦fthe“use“of“a“Îpicture“¹en•²!vironmen“t–¦fwithin“the“replacemen�²!t“for“Îp1¹.Ž 1ð½�ŸÚEU��‘dîòps: /PSfrag where{pop(p1)[[0(Bl)1 0][1(l)1 0]](p2)[[2(l)1 0]](p3)[[3(Bl)1 0]](\\tex[t][t]{$t$})[[4(t)1 0]](\\tex[B][B]{$\\sin\(t\)$, $\\cos\(t\)$})[[5(B)1 0]](\\tex[B][B]{Plot of $\\sin\(t\)$ and $\\cos\(t\)$})[[6(B)1 0]]6 0 -1/Begin PSfrag}{userdict /PSfrag{pop}put}ifelseï=PSfile="example.eps" llx=97 lly=197 urx=502 ury=604 rwi=2520 ïps: /End PSfrag�Ÿ•ïps: /Hide PSfragŸ »´����ŸûÞö�‘žd�PSfrag‘¦freplacemen�²!tsŽ‘žd�Ÿº¥‰fea›pŽŽŽŽïps: /Unhide PSfrag¤ ™š��ïps: { ��������ŸôH£��‘ × sinŽ‘HÃ(Êt¹)ŽŽŽ��‘:9Ÿû‹ÖóäO£ line10¬Ž�žÿ Ž�žÿ ŽŽŽŽŽŽŽŽïps: } 0/Place PSfragŽŽ¡�ŸýsÞ�–ýC3ïps: { �ŸŒ"��“ËŽŽŽïps: } 1/Place PSfragŽŽ¡�ŸýsÞ�–ýC3ïps: { �ŸŒ"��“ŽŽŽïps: } 2/Place PSfragŽŽ¡�ŸýC4�‘äÞHïps: { ����¹cosŽ‘©-(Êt¹)ŽŽŽïps: } 3/Place PSfragŽŽ¡�ŸùCÏ�–þÞïps: { �Ÿ¼1��“ÊtŽŽŽïps: } 4/Place PSfragŽŽ¡�ŸýC4�–â!{ïps: { ����“¹sinŽ‘ï“1(Êt¹),�‘¦fcosŽ‘O“(Êt¹)ŽŽŽïps: } 5/Place PSfragŽŽ¡�ŸýC4�–ÆÔñïps: { ���“Plot–¦fof�“sinŽ‘(Êt¹)“and�“cosŽ‘O“(Êt¹)ŽŽŽïps: } 6/Place PSfragŽŽŽŽŽŸ#™š��’žŒFigure–¦f2:‘ÝÝA“ÌPSfrag‘ÍT¹example.ŽŽŽŸÀ �The–¦fresult“of“these“t•²!w“o–¦fsteps“is“sho�²!wn“in“Figure“2.ŽŸ"µ ��Ô7.1Ž‘ÀFigure–€scaling“and“resizingŽŸA_�¹There–ãare“t•²!w“o›ãw“a“ys˜to˜resize˜EPS‘Ê gures˜with˜the˜Ìgraphics˜¹pac“k‘ÿdDage,‘Aand˜eac“h˜has˜as˜di eren“tޤ ™š�e ect–4/on“ÌPSfrag‘[¹replacemenš²!ts.‘‡8If“y˜ou“are“used“to“using‘[Îepsf.sty¹,‘W¡y˜ou“will“b�MÞe“accustomed“toŽ¡�only–¦fone“sucš²!h“b�MÞeha˜vior.ŽŸ.ú�If–Hyš²!ou“use“the“Î\scalebox“¹or“Î\resizebox“¹macros“of‘ßOÎgraphics.sty¹,‘%�then“the“ÌPSfrag‘,6¹replacmen˜tsŽ¡�Õwil‘�Fl‘øÞ¹scale–×4with“the“ gure.›pGThis“e ect“is“illustrated“in“3“b�MÞelo�²!w.˜Figure“3“uses“the“follo�²!wingŽ¡�command–¦fto“scale“the“ gure“to“3.5“inc�²!hes“in“width:ŽŸU�×\resizebox{3.5in}{!}{\includegraphics{example.eps}}ŽŽŸ�’ß¿¹8ŽŽŒ‹ nÝ Ú�Á� ý%~? ¼�Á� þgj­�ŸÚEU��‘dåïYps: currentpoint currentpoint translate 0.62222 0.62222 scale neg exch neg exch translate����òps: /PSfrag where{pop(p1)[[0(Bl)1 0][1(l)1 0]](p2)[[2(l)1 0]](p3)[[3(Bl)1 0]](\\tex[t][t]{$t$})[[4(t)1 0]](\\tex[B][B]{$\\sin\(t\)$, $\\cos\(t\)$})[[5(B)1 0]](\\tex[B][B]{Plot of $\\sin\(t\)$ and $\\cos\(t\)$})[[6(B)1 0]]6 0 -1/Begin PSfrag}{userdict /PSfrag{pop}put}ifelseï=PSfile="example.eps" llx=97 lly=197 urx=502 ury=604 rwi=4050 ïps: /End PSfrag�Ÿ•ïps: /Hide PSfragŸ »´����ŸûÞö�‘žd�¹PSfrag‘¦freplacemen�²!tsŽ‘žd�Ÿº¥‰fea›pŽŽŽŽïps: /Unhide PSfrag¤ ™š��ïps: { ��������ŸôH£��‘ × sinŽ‘HÃ(Êt¹)ŽŽŽ��‘:9Ÿû‹Ö¬Ž�žÿ Ž�žÿ ŽŽŽŽŽŽŽŽïps: } 0/Place PSfragŽŽ¡�ŸýsÞ�–ýC3ïps: { �ŸŒ"��“ËŽŽŽïps: } 1/Place PSfragŽŽ¡�ŸýsÞ�–ýC3ïps: { �ŸŒ"��“ŽŽŽïps: } 2/Place PSfragŽŽ¡�ŸýC4�‘äÞHïps: { ����¹cosŽ‘©-(Êt¹)ŽŽŽïps: } 3/Place PSfragŽŽ¡�ŸùCÏ�–þÞïps: { �Ÿ¼1��“ÊtŽŽŽïps: } 4/Place PSfragŽŽ¡�ŸýC4�–â!{ïps: { ����“¹sinŽ‘ï“1(Êt¹),�‘¦fcosŽ‘O“(Êt¹)ŽŽŽïps: } 5/Place PSfragŽŽ¡�ŸýC4�–ÆÔñïps: { ���“Plot–¦fof�“sinŽ‘(Êt¹)“and�“cosŽ‘O“(Êt¹)ŽŽŽïps: } 6/Place PSfragŽŽŽŽŽŽŽïeps: currentpoint currentpoint translate 1 0.62222 div 1 0.62222 div scale neg exch neg exch translateŽŽŸ#™š��‘äÕFigure–¦f3:‘ÝÝThe“same“ÌPSfrag‘ÍT¹example“as“Figure“2,“using“Î\resizebox“¹to“set“the“width.ŽŽŽŸ&e�This––®is“in“direct“conš²!trast“to“Figure“2,‘™Ówhic˜h“uses“the“Îwidth=“¹k˜eyw˜ord“from“the“Îgraphicx.sty¹,ޤ ™š�as‘¦ffollo�²!ws:ŽŸLÉ�×\includegraphics[width=3.5in]{\includegraphics{example.eps}}ŽŸæc�¹Figure–B2“also“re ects“the“b�MÞehaš²!vior“that“y˜ou“w˜ould“see“when“using“the“Îepsf.sty“¹macrosŽ¡�Î\epfxsize¹,–! Î\epsfysize¹,“Õetc¹.›j¢In–ÕRthese“cases,‘! the“ÌPSfrag‘ü@¹text“do�MÞes“not“scale“with“it.˜to“re-Ž¡�size–¦fthe“ gure.Ž©¬Ì�As–Y¡y�²!ou“can“see,‘hüthe“text“in“the“second“ gure“is“decidedly“smaller“than“the“ rst.‘ÄFThis“is“b�MÞecauseŽ¡�Î\resizebox–¨ü¹uses“Pš²!ostScript“tric˜ks“to“scale“Õal‘�Fl‘ʦ¹of“the“con˜ten˜ts“of“its“argumen˜t.‘‰dSince“the“Î\psfragŽ¡�¹commands–ø„are“not“actually“tš²!yp�MÞeset“un˜til“Õwithin‘Ï�¹the“Î\includegraphics“¹command,‘M they“areŽ¡�resized–¦fas“w�²!ell.ަ�The–‚€Îgraphicx.sty“¹k�²!ey-v‘ÿdDalue“pairs“Îwidth=¹,–¼áÎheight=¹,“and–‚€Îscale=“¹scale“the“ gure“without“scalingŽ¡�the–N´replacemenš²!t“text,‘xÈas“long“as“they“are“supplied“Õb–ÿp¹efor“e‘!U¹an–N´Îangle=“¹rotation“k˜ey‘ÿe.‘ÖÈOf“course,Ž¡�the–>Î\resizebox“¹and“Î\scalebox“¹macros“are“still“aš²!v‘ÿdDailable“in“Îgraphicx.sty¹,‘7àso“y˜ou“can“mix“andŽ¡�matc�²!h–¦fbšMÞoth“b˜ehaš²!viors“as“y˜ou“see“ t.‘ÝÝSee“the“Ìgraphics“¹do�MÞcumen˜tation“for“more“details.ަ�If–ã¶y�²!ou“are“still“unsure“abšMÞout“these“distinctions,‘ó then“try“b˜oth“metho˜ds“for“scaling“y�²!our“ guresŽ¡�un•²!til›¦fy“ou˜ nd˜a˜con“v“en“tion˜that˜w“orks˜b�MÞest˜for˜y“ou.ŽŸ'#Ï��Ç8Ž‘LËKno�ŒÌwn‘ffproblemsŽŸ„½�ÌPSfrag‘ÍT¹is‘¦fbug-free.ަ�W‘ÿeell,‘™xof––=course“wš²!e're“kidding.‘ØzIf“y˜ou“ nd“an˜y“problems,‘™xplease“con rm“they“are“not“men˜tionedŽ¡�bšMÞelo�²!w;–¦fand,“if“not,“rep˜ort“them“to“te“ÌPSfrag‘ÍT¹mailing“list“(see“b˜elo�²!w).ަ�The–7´Pš²!ostScript“text“m˜ust“b�MÞe“displa˜y˜ed“using“a“single“call“to“Îshow¹,–MØÎashow¹,“Îkshow¹,“Îwidthshow¹,“orŽ¡�Îawidthshow¹.‘cÍSome‘Ó programs,›Þ5ho•²!w“ev“er,˜place›Ó eac“h˜c“haracter˜individually‘ÿe,‘Þ5with˜individual˜callsŽŽŸ�’ß¿9ŽŽŒ‹ x˜ Ú�Á� ý%~? ¼�Á� ýN~?�¹to–2HÎshow¹.‘·(This“tecš²!hnique“is“incompatible“with“ÌPSfrag¹,‘I�and“alw˜a˜ys“will“b•MÞe.‘·(Exp“erience–2Hhas“sho˜wnޤ ™š�that–¦fthis“excludes“only“a“vš²!ery“small“n˜um˜b�MÞer“of“dra˜wing“pac˜k‘ÿdDages.Ž©™š�The–bcL�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“replacemenš²!ts“are“rendered“after“the“ gure“has“b�MÞeen“dra˜wn;‘ytherefore,‘oýe ects“suc˜h“asŽ¡�partial–¦fobscuring“are“not“p�MÞossible.ŽŸ(€A��Ç9Ž‘LËThe–ffÍPSfrag‘ž¸Çmailing“listŽŸq‹�¹There–Ñèis“a“Ma‘›»jorošMÞdomo“mailing“list“for“purp˜oses“of‘«ïÌPSfrag‘øÖ¹mainš²!tenance.‘`bIt“Õis‘ñnot‘ÛÒ¹in˜tended“toŽ¡�replace–ñäthis“manš²!ual“or“a“small“amoun˜t“of“educated“guessw˜ork.‘ÀWBut,‘Ãit“Õis‘×ü¹the“p�MÞerfect“place“forŽ¡�bug›ôrep�MÞorts,‘2×dev•²!elopmen“t˜ideas,‘2×and˜so˜forth.‘­·An“y“one˜who˜wishes˜to˜assist˜in˜ÌPSfrag�&î¹'s˜ev“olutionŽ¡�ma�²!y–¦fsubscrib�MÞe;“to“do“so,“just“send“mail“toޤ™š�‘`Îmajordomo@rascals.stanford.eduŽ¡�¹with–¦fthe“line“Îsubscribe‘¿ªpsfrag“¹in“the“Õb–ÿp¹o“dy‘žg¹of–¦fthe“text.ަ�Bug–¦fsupp�MÞorts,“ideas,“Õetc.‘Ýݹshould“go“toŽ¡�‘`Îpsfrag@rascals.stanford.edu¹.Ž¡�If–Nyš²!ou“ha˜v˜e“found“a“bug“to“rep�MÞort,‘]please“pro˜vide“us“with“the“necessary“ les“(a“L�Ÿýûó�‘üÙ½AŽŽ‘ÈG¹T�‘þ,³Ÿ[wEŽ‘B X“ le,ޤ ™š�the–þ3EPS‘ýÚ gures,‘T%Õetc.¹)“so“wš²!e“can“test“it“out“ourselv˜es!‘åCT‘ÿery“to“pro˜vide“us“with“the“shortestŽ¡�self-conš²!tained–¦fexample“that“demonstrates“y˜our“bug.‘ÝÝIf“this“is“not“p�MÞossible,“drop“us“a“line“ rst.ŽŽŸ�’ÝJ10ŽŽŒø…Ûƒ’À;èÚ�ÁÄ÷Ç ó/t}\Êcmti7ó.ñkAH cmssbx10ó-ý': cmti10ó,ßê ó3 cmmi10óñkAH ó3 cmssbx10óò"V ó3 cmbx10óÂÖN ff cmbx12ó߆µT cmtt12ó¹Aa¨cmr6ó|{Ycmr8óX«Q cmr12óÖÆG®G®cmss17óDÓítG®G®cmr17óKñ`y ó3 cmr10ó !",š cmsy10óäO£ line10ù‹âßßßß