; TeX output 1997.02.18:1211header=psfrag.proځ%~?zd}iDtGGcmr17The7tGGcmss17PSfragq:system,vqersion3$lύFXQ cmr12MicrhaelC.GrantandDavidCarlisle߆T cmtt12psfrag@rascals.stanford.edu,{(26NorvembSer19964ANff cmbx12Contentsύ"V 3 cmbx101lWhat2iskAH 3 cmssbx10PSfrag*?VSs12lPSfrag]anecessitiesOD*2 lK`y 3 cmr102.1)1ChoMosingfaP!ostScriptdriverL.=............................C23lInstalling_SPSfragTj34lUsageg'35lCommands2andEntvironments4lϹ5.1)1Em!bMeddingT!m#R 3 cmss10PSfragoperationsfin!toEPS les.=....................C56lPtackLage2OptionsS-77lAn2Examplei7lϹ7.1)1Figurefscalingandresizing.=..............................C88lKnotwn2problemsPN99lThe2PSfrag]amailinglist*|10(A1LWhatffis"kAHff cmssbx10PSfrag8R?qMan!yndrawingandgraphingpackdDagesproMduceoutputintheEncapsulatedPostScript(EPS)format,ҝbutfewcaneasilyproMducetheequationsandotherscien!ti ctextofwhichL|{Ycmr8AGT,[wEB Xiscapable. OnQttheotherhand,6man!yLٽAGT,[wEB XbaseddrawingpackdDagesarenotasexpressiveoreasy-to-usefastheman!yadvdDanceddrawingpackdDagesthatproMduceEPSoutput.PSfragѹpro!videsthebMestofbothw!orldsbyallowingtheusertopreciselyoverlayEncapsulatedP!ostScriptB(EPS)Bn leswitharbitraryLٽAGT,[wEB Xconstructions.Inordertoaccomplishthis,Vtheuserplacesasimpletext\tag"inthegraphics le,asa\pMositionmark!er"ofsorts.Then,usingsimpleLٽAGT,[wEB Xcommands,CytheuserinstructsPSfragʹtoremo!vethattagfromthe gure,andreplacefitwithapropMerlysized,aligned,androtatedLٽAGT,[wEB Xequation.ThisDv!ersionofPSfragk¹issigni cantlyeasiertousethanpreviousversions,XXbMecauseiteliminatestheMpreproMcessingsteprequiredinthosev!ersions.PAsaresult,_ythenewtPSfragshouldMalsoprovetofbMesigni can!tlymoreportable,reliable,and exible.߿1*ځ%~?N~?VeeteranPSfragzusersneedtokno!wthatthe# 3 cmmi10"3IandthegraphicspackdDage. |PSfragncurrentlyrequiresthe`1995/12/01 Ov!ersionorlaterofthesepackdDages,b butitisalwaysbMesttohavethemost`recen!t release.PSfrag2willnowworkwiththeoldepsfΰmacros,%nbutthegraphicspackdDage`isfstillusedin!ternallye.@l`AcompatibleD!VI-to-PostScriptdriver(seebMelow).dvipsistheprimarychoiceofthe`PSfragTdev!elopMers,fandiscertainlythemostwidely-used.<ߍTheAlatestv!ersionsofLٽAGT,[wEB Xv2z"-x,8thegraphicspackdDage,8PSfrag,andAdvipscanallbMefoundonCTeAN,I-theComprehensiv!eT,[wEB XArchiveNetwork.TheCTeANIcites,[andtheirmirrors,include:*!퍍a덍umName|IPfaddress#OJLoMcationolzffv ftp.dante.de\129.206.100.192German!y ftp.tex.ac.uk\128.232.1.87Englandftp.cdrom.com\165.113.58.253USA4)N cmbx122.1Cho`osingaPostScriptdriverڥPSfragĹreliesronsomesensitiv!ePostScripttrickstoaccomplishitsgoals.C.Duetolimitedandtimeandresources,!Etheauthorscouldnotcon rmthatPSfrag&w!orkspropMerlyoneveryavdDailableP!ostScriptJdriver.}Weehaveattemptedtoinsurethatitwill*': 3 cmti10eventualFly~Kworkoneverydriverthatfisfullycomaptiblewiththegraphicspac!kdDage(i.e.,oneforwhicha.def leisprovided.)Thefdriv!erswhichhavebMeencon rmedtoworkwithPSfragTare:#.P!Driv!erTeestedfb!yECompatibilit!yJ zff0Lj ThomasfRokic!ki'sdvipsùthefauthors%fullyfcompatible Y&Y'sfD!VIPSONEùthefauthors%Lpevel2printersonly.Asthetablesho!ws,}somedrivers,}likeDVIPSONE,willworkpropMerlywithPSfragEѹbutwill proMduce outputthatprin!tsproperlyonlyonnew!er,5Lpevel@&2PostScript printers.Ifyoutrytoprin!tysuchadoMcumentonaLevel1printerusingoneofthesedrivers,thereplacementswillnotsho!wup.~wHopMefullye,theincidenceofLevel1printersisdiminishing,espMeciallywiththeemergencefofLev!el3PostScriptonthehorizon.Please:helpusadden!triestothiscompatibilitylist!IfPSfragaworkswithyourdriver,`pleaseletsuskno!w,vsowecanaddittothelist.IfzPSfragadoMesnot]work,vpleasesubmitabugrepMort.Consultsection9forcon!tactinformation.IfpMossible,#testyourPSfragθoutputonbMothLevel1andfLev!el2printers,sowecanmakeadistinctionhereifnecessarye.ff/4 L͍ {-=Aacmr61a$o cmr9CraigMnolongerparticipatesinthedev9elopmentMof'ow cmss9PSfrag ;however,NheapsofpraisemaystillbAesenttohim atT(ߤN cmtt9psfrag@rascals.stanford.edu!߿2 |ځ%~?N~?3LInstallingPSfragtInstallingfthevdDariousPSfragT lesisquitesimple:J b%1.`RunfLٽAGT,[wEB Xonpsfrag.instoextractpsfrag.styandpsfrag.pro. b%2.`Installwpsfrag.styinastandardloMcationforLٽAGT,[wEB Xv2z"-macros.xFeorkpathsea-basedsystems `suc!hfasteTeeX,thispathisdeterminedbytheTEXINPUTSvdDariable. b%3.`Installpsfrag.prowherev!eryourPostScriptdriverloMoksforheader les.Feorkpathsea-`basedcsystems,"thisisdeterminedb!ytheDVIPSHEADERS`vdDaraible.Feordvipsinparticular,`themostlogicalc!hoicewouldbMethesamedirectoryinwhichtex.proandspecial.pro`arefloMcated. b%4.`If^|y!ouhaveanolderversionof8PSfrag,youmaydeletethefollowing les,iftheyexist:`ps2frag.ps,nps2frag_orps2psfrag(theproMcessingscripts),andepsf.sty(theonepro-`vided̫b!yPSfrag,itmustbMeloadedwiththe\usepackage`commandbpefore6psfrag.sty.iOtherpac!kdDagesthatarebasedupMongraphics.sty,such`asfgraphicx.styorepsfig.sty,canbMeloadedbeforeorafterpsfrag.sty.l`Loadfpsfrag.stywitha\usepackagecommand.l`Feoreac!htagwordinyourEPS[ le,addacommandtoyouryourLٽAGT,[wEB XdoMcumentto`spMecifyfho!wthistagistoreplaced,asfollows:3w\psfrag{tag}[hpposn i][hpspposn i(][hscpaleҡi][hrpot i]{Ln+#fcmti8AT"R[wE)Xtext }`ThetagwillbMereplacedb!ytheLٽAGT,[wEB Xtext.)CertaincomplicatedvdDaluesforthetagword`migh!tfconfuseT,[wEB Xysoit'sbMesttousesimplealphanumericnames.؏`Example:infadra!wingprogramlikex g,youplacethetext3wxy`atfaparticularpMoin!t.Teoreplacethiswithxn+yd,fonepossiblemacrow!ouldbe3w\psfrag{xy}{$x+y$}`All7\psfragcallsthatprecedethe\includegraphics(orequivdDalen!t)inthesameor`surrounding en!vironmentswillbMeutilizedforagivenPostScript le. 8So,#youcande ne`globalf\psfragsasw!ellasthosethatareloMcaltoa gure.l`An!ybtextthatisnotmentionedina\psfragcommandwillnotbMereplaced;?hence,`P!ostScriptfandLٽAGT,[wEB XtextcanbMefreelymixed.߿3>ځ%~?N~?WhenviewingtheoutputwithaD!VIpreviewersuchasdviwinorxdvi,-averticallistofthe replacemen!tswillbMeplacedontheleftsideofeach gure.iThislistallowsyoutocheckthet!ypMesetting'ofyourreplacements;0itdisappMearsinthe nalPostScriptversion.!Unfortunatelye,D!VIdriversareincapableofplacingthePSfrag5replacemen!tsontopofthe gure,) soforthaty!oufwillneedtoprintitoutoruseaPostScriptpreviewerlikeGhostView.Thisfv!ersionofmPSfragTshould runpropMerlyinthecompatibilitymoMdeofLٽAGT,[wEB X2.09.Letusknowiffy!ou ndotherwise(seesection9).(A5LCommandsffandEnvironments.Sff*Ufdͤ ffΟfd,It'sbMestify!ouusefontsizechangesintheLٽAGT,[wEB Xtext`ratherfthanscale,buty!oucanusethescaletotweakitssize.Defaultis[1].y[hrpotn i]ιExtrarotationofthetextarounditsreferencepMoin!t,indegrees.Thenominalrotation`ofRUtheLٽAGT,[wEB Xtextmatc!hesthatofthePostScripttextitreplaces.Thetotalrotationis`thisfnominalvdDalueplus[hrpotn i].Thedefaultis[0].Figurer1pro!videsanillustrationofthee ectsoftheuseofvdDariousargumentsabMove(andithappMenstobeagoodexerciserforthepac!kdDage,too).oIfy!ou'reviewingtheDVI lewitha߿4-ځ%~?owQ-Yps: currentpoint currentpoint translate 0.91138 0.91138 scale neg exch neg exch translateZUWps: gsave currentpoint currentpoint translate 30 neg rotate neg exch neg exch translateps: /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(DFps: /Hide PSfrag dPSfragfreplacemen!tsdfeapps: /Unhide PSfrag ps: { i[br][br]ps: } 0/Place PSfragips: { ƃ\[Br][b][2]ps: } 1/Place PSfragps: { XZ[r][bl]ps: } 2/Place PSfrag{ps: { [tr][Bl]ps: } 3/Place PSfragps: { i[b][B]ps: } 4/Place PSfragi-ps: { [B][Br]ps: } 5/Place PSfragps: { 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 PSfragips: { [Bl][tl]ps: } 9/Place PSfragtps: { C4?(baseline)ps: } 10/Place PSfragps: { C4?(cen!terfline)ps: } 11/Place PSfragps: { C4?(cen!terfline)ps: } 12/Place PSfrag݂ps: { X[l][t]ps: } 13/Place PSfrag{`ps: { [tl][tr][1][180]ps: } 14/Place PSfrag ps: currentpoint grestore movetoeps: currentpoint currentpoint translate 1 0.91138 div 1 0.91138 div scale neg exch neg exch translate#8Figuref1:AnillustrationofvdDariousoptionsforthe\psfragcommand.Mpreview!er=9suchasxdvi,RByoushouldseethePSfragd'replacementslineduptotheleftofthe gure; and, 0ify!ourpreviewercandisplayEPS les, 0alarge,rotatedgA.Ify!ouhaveprintedthisout,or_areviewingtheP!ostScript lewithaviewerlikeGhostView,thenthereplacementsshouldbMeproperlysuperimposedonagraphicalrepresen!tationoftheboundingbo!x,centerlines,andbaselinefofthetaggA.(ThisgraphicalbMo!xisprovidedonlyindebugmoMde.)If-areplacemen!tfor{tag}alreadyexists,theunstarredcommand\psfragwillreplaceitwithoutw!arning.xTheE7starredversion\psfrag*,Xhowever,willE7addfthenewreplacementtoalist.xUsingthestarredcommand,asinglepieceofP!ostScripttextcouldtriggerseveralreplacements.IVcan'tthinkgofareasonwh!ymostuserswouldusethestarredversion, butitwasusedinFigure1abMo!ve._ffUfdͤ ffΟfd\begin{psfrags}UU\end{psfrags}͡ ffffUThepsfragsen!vironmentmaybMeused,ifnecessarye,todelimitthescopMeofthe\psfragcalls.AsAyw!esaidbMefore,U\psfragcommandsretaintheire ectuntilthemostimmediatesurroundingen!vironment'isexited.A\ny en!vironment'willdo:center,AGfigure,etc..Therefore,it'ma!yneverbMeJnecessarytousethisen!vironment,#andJtheen!vironmentJhasnoothere ectonthedocumen!t.")5.1Emb`edding.kAH cmssbx10PSfragoperationsintoEPS les,ffd\fdͤ ffΟfd\tex[hp}'osnci][hpsp}'osnci%*][hsc}'ale[i6][hr}'otظi}]{L雍Q/t}\cmti7ATKß'E-Xtext}͡ ff ͤ ffΟfd\psfragscanon \psfragscanoffXqz ffffd\h+PSfrag ۹3.0suppMortstheem!bedded\texcommandsfoundinpreviousreleaseofPSfrag,butithas;bMeendeprecatedsomewhatbecauseofitsrelianceonapre-processingstep.QUnlik!epreviousv!ersions/ofj6PSfrag,ʠsuppMortforthe\texcommandmustbMeexplicitlyrpequested,ʠas/describedbMelo!w.߿5@Ǡځ%~?N~?AsEy!oucansee,|thesyntaxofthe\texcommandisverysimilartothe\psfragcommand. Ho!wever,binstead{ofaddingthe\texcommandtoy!ourLٽAGT,[wEB X le,the\texcommandisembpeddedintheEPS leitself.Infotherw!ords,thecommandbMecomesitsownreplacementtag.Feorfexample,y!oumightplacethetext`\tex[bl][bl]{$\alpha$}atSaparticularpMoin!tinyourPostScript letohaveLٽAGT,[wEB Xreplaceitwith `.UManyzPSfragusers ndfthisfeatureusefulfortheaxislabMelsandtitlesofMAeTLABgraphs.ThezadvdDan!tagetothisapproachisthatchangescanbMemadetotheEPSz lewithouthavingtomoMdify?an!y\psfragcommandsintheLٽAGT,[wEB X le.(g(Itisstillnecessarytorpe-compilethe?LٽAT,[wEB X lefinsuc!hcases,however.)TherefarecautionsanddisadvdDan!tagestothisapproach,including:l`ChanginguthelabMelscreatedb!y\texcommandsrequireseditingthe gure;t|ifyouuse`\psfrag"instead,y!ouneedonlytoeditthedoMcument,whichmightbMelesscumbMersome.`(Yeoufm!ustrunLٽAGT,[wEB XagaininbMothcases.)l`Because,\texcommandsarelongstrings,Dtheycanextendpasttheothergraphicsiny!our`EPSh le.Asmaresult,otheycanmoMdifytheEPSbMoundingbo!xinanundesiredwaye.This`problemgcanbMemitigatedb!yreducingthefontsizeofthe\texstring,t]sincethisdoMesnot`a ectfthesizeofitsPSfragTreplacemen!t.l`Thef\texcommandisnotsuppMortedincompressedP!ostScript les.l`The T,[wEB Xenginem!ustscanthePostScript leforthesestrings,3swhichcanaddtothe`proMcessingtimeofy!ourdocumen!t._(Teobehonest,6w!ehaveyettoencounteracasewhere`thisfisasigni can!tconcern.)l`Impportant! Whenev!erza leisscannedbyPSfrag,itgeneratesa lewiththename`\jobname.pfg,,wherex\jobnameisthebasenameofthemasterLٽAGT,[wEB X le.yZItwillo!verwrite,`withoutfw!arning,any lewiththatname.Sincelitw!asimpMossibletoimprovethe\texcommandinthesamewayasthe\psfragcommand,thisDfeatureisnolongerenabledautomaticallyexceptinLٽAGT,[wEB X2.09compatibilit!ymoMde.mSo,forfLٽAGT,[wEB Xv2z"0KdoMcumen!ts,fyoumustactivdDateitinoneoftwoways:l`Teogturnonscanningforasingle gure,Aprecedethe\epsfboxor\includegraphics`commanduwithacalltothecommand\psfragon.7ScanningwillbMeturnedo againwhen`the8surroundingen!vironment8isexited;!or,@,y!oucanturnito explicitywithacallto`\psfragscanoff.l`Teodturnonscanningfortheen!tiredoMcument,$passtheoptionscanalltopsfrag.styin`thef\usepackagecommand.TheS=\texscannerwillcon!tinueS=tobMesupportedinthisform.aSo,~rify!oudo ndapplicationswhere%y!oupreferthe\texcommand,Ddonothesitatetouseit!YFeorbMestresults,ho!wever,werecommendfthaty!ouuse\psfragexclusivelyinstead.߿6R#ځ%~?N~?6LPackageffOptionsqThereareonlyfourpac!kdDageoptionsforPSfrag.=Anyotheroptionsthatarenothandledby PSfragTwillfbMeforw!ardedtographics.sty.209mode-@(LٽAGT,[wEB Xv2z"+}nativ!eAmoMdeonly)forcesPSfraghtooperateexactlyasifLٽAGT,[wEB X2.09compat-`ibilit!ymoMdewasenabled.2Asaresult,blalignmentisthedefault,and\texscanningis`enabledforallEPSx les.;Thisoptionisusefulify!ouaretryingtoconvertoldLٽAGT,[wEB X2.09`doMcumen!tsftoLٽAGT,[wEB Xv2z",`.`The LٽAGT,[wEB X2.09v!ersionofPSfrag4ӹgeneratedanauxiliary leforeachEPS gurecontaining`impMortan!tfreplacementinformation.These lesarenolongerusedandcanbMedeleted.2emode'(LٽAGT,[wEB X2.09compatibilit!ymoMdeonly)forcesPSfragtoremaininLٽAT,[wEB Xv2z"0}moMde,ev!en`inthepresenceofaLٽAGT,[wEB X2.09doMcumen!t;vthisisthedirectoppositeof209mode.When`enabled,fthedefaultalignmen!tisBl,and\texscanningisturnedo bydefault.scanall-@turnsLon\texscanningb!ydefault.Usethisoptionifmostyour guresuseembMedded`\texfcommands.debug"7turnsonsomeofthedebuggingfeaturesofPSfrag. ItinsertsextracoMdein!tothe`P!ostScriptH lethatdrawthebMoundingbo!xesofeachpieceoftextthatisreplaced.It`isfprobablynotusefultoan!yonefbutthedev!elopMersofmPSfrag.(A7LAnffExampleqInPthefollo!wingexample, wedemonstratehowtousePSfrag>withtheMAeTLABOpackdDage.Thefollo!wing,MAeTLAB,commandsgenerateaplotofbMothasinewaveandacosinewave,NSplacesbMothsimpletagsand\texreplacemen!tsintothe gure,TandsavestheresultasanEPS leexample.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?-depsexample(InMAeTLAB,the'text'commanddefaultstoaleft-cen!teralignment,"correspMondingtoa [hpspposn i(]fargumen!tof[l].)The'coMdebelo!wincludesexample.epsintothecurrentdoMcument,Зresizingittoawidthof3.5inc!hes.VSeveral\psfragcommandsareusedtoreplacethetagsp1,#p2,andp3inthe gure,#andthecommand\psfragscanoncommandisusedtonotifyPSfragthatitm!ustscanexample.epsforfthe\textags.߿7a:ځ%~?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}Noteftheuseofapictureen!vironmentfwithinthereplacemen!tforp1.1𽍟EUdps: /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 PSfragps: /Hide PSfrag dPSfragfreplacemen!tsdfeapps: /Unhide PSfrag ps: { H sinH(t):9O line10  ps: } 0/Place PSfragsލC3ps: { "ps: } 1/Place PSfragsލC3ps: { "ps: } 2/Place PSfragC4Hps: { cos-(t)ps: } 3/Place PSfragCύps: { 1tps: } 4/Place PSfragC4!{ps: { sin1(t),fcosO(t)ps: } 5/Place PSfragC4ps: { Plotfofsin(t)andcosO(t)ps: } 6/Place PSfrag#Figuref2:APSfragTexample. Thefresultoftheset!wofstepsissho!wninFigure2."7.1FigurescalingandresizingA_Therearet!wowaystoresizeEPS gureswiththegraphicspackdDage,Aandeachhasasdi erent e ect4/onPSfrag[replacemen!ts.8Ifyouareusedtousing[epsf.sty,WyouwillbMeaccustomedtoonlyfonesuc!hbMehavior..IfHy!ouusethe\scaleboxor\resizeboxmacrosofOgraphics.sty,%thenthePSfrag,6replacmentswilFl޹scale4withthe gure.pGThise ectisillustratedin3bMelo!w.Figure3usesthefollo!wingcommandftoscalethe gureto3.5inc!hesinwidth:U\resizebox{3.5in}{!}{\includegraphics{example.eps}}߿8 nݠځ%~?gjEUdYps: currentpoint currentpoint translate 0.62222 0.62222 scale neg exch neg exch translateps: /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 PSfragps: /Hide PSfrag dPSfragfreplacemen!tsdfeapps: /Unhide PSfrag ps: { H sinH(t):9֬  ps: } 0/Place PSfragsލC3ps: { "ps: } 1/Place PSfragsލC3ps: { "ps: } 2/Place PSfragC4Hps: { cos-(t)ps: } 3/Place PSfragCύps: { 1tps: } 4/Place PSfragC4!{ps: { sin1(t),fcosO(t)ps: } 5/Place PSfragC4ps: { Plotfofsin(t)andcosO(t)ps: } 6/Place PSfrageps: currentpoint currentpoint translate 1 0.62222 div 1 0.62222 div scale neg exch neg exch translate#Figuref3:ThesamePSfragTexampleasFigure2,using\resizeboxtosetthewidth.&eThisisindirectcon!trasttoFigure2,whichusesthewidth=keywordfromthegraphicx.sty, asffollo!ws:Lɍ\includegraphics[width=3.5in]{\includegraphics{example.eps}}cFigureB2alsore ectsthebMeha!viorthatyouwouldseewhenusingtheepsf.stymacros\epfxsize,! \epsfysize,etc.jInRthesecases,! thePSfrag@textdoMesnotscalewithit.tore-sizefthe gure.̍AsYy!oucansee,hthetextinthesecond gureisdecidedlysmallerthanthe rst.FThisisbMecause\resizeboxusesP!ostScripttrickstoscalealFlʦofthecontentsofitsargument.dSincethe\psfragcommandsarenotactuallyt!ypMesetuntilwithinϏthe\includegraphicscommand,M theyareresizedfasw!ell.Thegraphicx.styk!ey-vdDaluepairswidth=,height=,andscale=scalethe gurewithoutscalingtheNreplacemen!ttext,xaslongastheyaresuppliedbpefore!UanNangle=rotationkeye.Ofcourse,the>\resizeboxand\scaleboxmacrosarestilla!vdDailableingraphicx.sty,7soyoucanmixandmatc!hfbMothbeha!viorsasyousee t.SeethegraphicsdoMcumentationformoredetails.Ify!ouarestillunsureabMoutthesedistinctions, thentrybothmethodsforscalingy!our guresun!tilfyou ndaconventionthatworksbMestforyou.'#ύ8LKnownffproblemsPSfragTisfbug-free.Weell,xof=coursew!e'rekidding.zIfyou ndanyproblems,xpleasecon rmtheyarenotmentionedbMelo!w;fand,ifnot,reportthemtotePSfragTmailinglist(seebelo!w).The7P!ostScripttextmustbMedisplayedusingasinglecalltoshow,Mashow,kshow,widthshow,orawidthshow.cSome programs,5ho!wever,place eachcharacterindividuallye,5withindividualcalls߿9 xځ%~?N~?to2Hshow.(Thistec!hniqueisincompatiblewithPSfrag,IandalwayswillbMe.(Experience2Hhasshown thatfthisexcludesonlyav!erysmallnumbMerofdrawingpackdDages.ThebcLٽAGT,[wEB Xreplacemen!tsarerenderedafterthe gurehasbMeendrawn;ytherefore,oe ectssuchaspartialfobscuringarenotpMossible.(A9LTheffPSfragmailinglistqThereisaMajoroMdomomailinglistforpurposesofPSfragֹmain!tenance.`bItisnotҹintendedtoreplacethisman!ualorasmallamountofeducatedguesswork.WBut,itisthepMerfectplaceforbugrepMorts,2dev!elopmentideas,2andsoforth.AnyonewhowishestoassistinPSfrag&'sevolutionma!yfsubscribMe;todoso,justsendmailto`majordomo@rascals.stanford.eduwithfthelinesubscribepsfraginthebpodygoffthetext.BugfsuppMorts,ideas,etc.ݹshouldgoto`psfrag@rascals.stanford.edu.IfNy!ouhavefoundabugtorepMort,]pleaseprovideuswiththenecessary les(aLٽAGT,[wEB X le, the3EPS gures,T%etc.)sow!ecantestitoutourselves!CTerytoprovideuswiththeshortestself-con!tainedfexamplethatdemonstratesyourbug.IfthisisnotpMossible,dropusaline rst.J10;ځ /t}\cmti7.kAH cmssbx10-': cmti10, 3 cmmi10kAH 3 cmssbx10"V 3 cmbx10Nff cmbx12߆T cmtt12Aacmr6|{Ycmr8XQ cmr12GGcmss17DtGGcmr17K`y 3 cmr10 !", cmsy10O line10