; TeX output 1996.10.01:1456soL pDtGGcmr17Prinqting7tEnvelopsesandLabelsinLdKGXQ cmr12AT[-E;gX`2gG cmmi12"@\: \}h!G cmsl12EnvLabPqackage.tUser7tGuide!", cmsy10#kBorisVVeytsmanfj+yJune15,19964!Kt : cmbx9Abstractэ[o cmr9ThisC7pac9k|rageprovidesacomprehensiveandeasilycustomizablesystem NforEcreatingmailingen9velopAesEandlabelsinL5Aacmr6A TuAEXc.25" cmmi9"&-.BIncludesprin9tingNbarcoAdes~mandaddressformattingaccordingtotheUS~GP9ostalServicerules.'č5 Nff cmbx12Contents5!"V cmbx101DIn9troQduction252DInstallation 253DUsage&Az3 DK`y cmr103.1[TheUUbasicsT...............................3D3.2[SizesUUoflabGelsandenvelopes5.....................6D3.3[PrintingUUdetails*4............................8D3.4[F*ormattingUUoftheaddress(barcoGdesandcapitalization)~ƍ.....10D3.5[PrintingUUofreturnaddresses?Q.....................1154DCustomizationR1155DBugsTandlimitations !1256DLegaleseF135References135ListffofFiguresD1[AutomaticUUgenerationofenvelopGes?-.................4 D2["p0J cmsl10EnvLabandUUmailing0packqage.z....................45X-ffv @ -:q% cmsy6PE|{Ycmr8cLK cmsy8 BorisXVJeytsman,19961*soD3[ManualUUgenerationofenvelopGesMw...................5 D4[PrintingUUofreturnlabGels .......................5D5[LabGelsUUparametersj%..........................7'č5ListffofTfablesD1[StandardUUenvelopGesizesM.......................6D2[StandardUUlabGelsizes#.........................751MLIntros3duction5TheRstandard#'ExX2 b> cmmi10"-letter.clsdoGcument5class@typGesetslabelsonAvery5352sheets.jA@typicalusermaywantmore.jEn-5vLab~rede nesF\makelabelsin^1 amoreusefulandcustomizableway*.lEnvLab8M:D !", cmsy10NTypGesetsԛmailinglabelsorenvelopesԛonanumberԛofpre-de nedlabelNsheetsUU$': cmti10orhenvelopGes.DNCanbGeeasilycon guredforanycustomizedlabelorenvelopesizes.TheNruleUUofthumbUUis:qifyouprintercanprintthis,EnvLabcantypGesetthis.DNCanoptionallyprintbarcoGdesand/orprocessaddressesaccordingtotheNUnitedUUStatesPostalServiceRules.DNAllowsUUyoutoincludeyourlogointhereturnaddress.DNPainlesslyUUinteractswithmailmergingpackqagessuchasmailing.DNDoGesRnotrequirespecialfontsforaddressandbarcodesprinting.aTheNtypGesetting=isimplementedwithstandardfontsandL5ffA͉TU>'ExX\rulecom-Nmands.5This;packqagewaswrittenwithUS;mailingstandardsinmind.$Thisisnota5re ection_oftheauthor'samericanoGcentrism:+USGstandardwasonlyoneIGhad5ocial doGcumentsabout.)Ifyouwanttoaddyournationalstandards,9hplease5contactUUmewithpGointerstothecorrespGondingdocuments.5ThisJdoGcumentdescribesthebasicusageofthepackqage.QMoresophisticated5usersUUwouldwanttotypGesetandbrowseenvlab.dtxaswell.'č52MLInstallation5TheUUdistributionofthispackqageincludesthefollowing les:A81.Nenvlab.dtx|fullyUUdoGcumentedprogram,5X-ffv J= "5-:1Lhop'ExX'the leenvlab.ins^2|s. 'ExXsearchpathA84.NProGduceqthedocumentationbyL5ffA͉TU>'ExXingthe leselguide.texand(op-Ntional)UUenvlab.drv.A85.NEnjoy!$nЍ53MLUsageJ5&N cmbx123.1SThebasics5The0packqageEnvLabiisintendedtobGeusedwiththeL5ffA͉TU>'ExX2"-8letterdocu-5ment]classandsimilarcustomclasses.ThestandarddoGcumentclassde nes5theenvironmentletter,which,amongotherthings,writestothemain.aux5 levtheinformationabGoutmailingaddress.pEnvLabڲretrievesvandtypesetsthis5information.aIn%3generaloneshouldnotuseEnvLab]withdoGcumentclassesthat5donotprovidethisinformation./ThepackqagetypGesanerrormessageifitcannot5 ndUUthemakelabelscommandintheclassitiscalledfrom^3|s.(/5ThereUUarethreewaysUUtouseEnvLab8M:[B53.1.1X#AutomaticTgenerationofen9velopQesTorlabelso@ff?s1ͤLτ ffΟ1)ߤN cmtt9\makelabels͡ ff5ff?s阍5PutEinthepreambleofyourdoGcument:i\usepackage[hoptions!i("]{envlab}and5\makelabels.lWTheEpackqagewillgenerateenvelopGesorlabelsattheendofyour5doGcument,UUreadytobeprinted.qAnexampleofsuchusageisshownonFig.1.5AninterestingextensionofthismethoGdistheuseofEnvLab۲withmail-merge5packqages.dIfPsuchpackqagesgenerateletterenvironments,thenEnvLabAwill5happilyRproGduceenvelopesRorlabelsforthem.LI6testedEnvLabwiththemailing5packqageUUavailableUUatCT*ANwithexcellentresults.qSeeanexampleonFig.2.5\ffv J= "5-:2LIfXyÎour%Cscmtt8docstrip.texisearlierthanversion2.3,useelold.insinsteadofenvlab.ins. > "5-:3LIf_yÎouwanttocreateacustomletterclasstob,insertsthecorrespondingPostScript5specials%Vinyouroutput.Theoptionnopswait(default)suppressesthisbGe-5havior.o@ff-1ͤLτ ffΟ1\PSwait͡ ff5ff-5WilliamSlough'scoGdecanbeusefulinothersituationswhenyouneedtoswitchNewTfeature V9ersionT1.15to0manualmoGdeinthemiddleofthedocument.PThecommand\PSwaitinserts5thecorrespGondingPostScriptWLcodeinthedvipsoutput.Ѝ(Anattentivereader5hasprobablyalreadyguessedthatthepswaitoptionisimplementedthrough5theUUcommand\AtBeginLabels{\PSwait}).8 Nso5Noteithattherearedi erencesinthehandlingofthetextclosetopapGeredges 5fromkprintertoprinter.SinceenvelopGesandlabelsheetshavektextnearthe5edges,youmightneedtotunetheo sets.F*orlabGelsyoucanusethecom-5mand+\SetLabeltodothis. fHTheoptional rstargumentofthecommand5\SetEnvelopesetsthedistancebGetweentheleadingedgeof\logicalpaper"5andUUthephysicalleadingedgeoftheenvelopGe(0ptbydefault)."aff۟1ͤLτ ffΟ1rotateenvelopes,Tnorotateenvelopes͡ ff ͤLτ ffΟ1OptionsTfor,q[ cmsl9graphicsrOpac9k|rage-; ff5ffێō5Usually5envelopGesareprintedinthelandscapGemode,i.e. rotatedby90^.5Thelpackqageoptionsrotateenvelopes(default)andnorotateenvelopescon-5trolگtherotation. NotethatifyouwanttorotateenvelopGes,<youneedthe5standard,packqagegraphicsMinstalledonyoursystem. LAlso,Gyouneedadvi5driverthatunderstandsrotationcommandsofthegraphicsNSpackqage. I(Ithink5currentlyzBonlydvips㿲doGesthis). Thepackqagegraphics㿲iscalledinternally5byNKEnvLab. \IfyouneedtopassspGeci coptionstothegraphicsȲpackqage,5include itinthelistofoptionsofEnvLab. F*orexample,xthecommand5\usepackage[personalenvelope,dvips]{envlab}Kcallsgraphics1withtheop-5tionUUdvips."OEffR1ͤLτ ffΟ1centerenvelopes,Tleftenvelopes,rightenvelopes,͡ ff ͤLτ ffΟ1customenvelopes,T\EnvelopeLeftMargin3] ff5ffR5Most ofmanualfeedingslotsacceptnon-standardpapGer(likeenvelopGes)c}'en-5ter}'ed. However&Dtherearesomeprintersthatrequirenon-standardpapGer5toSbGepushedtotheleftorrightendoftheslot. QThepackqageoptions5centerenvelopesE(thisisthedefaultoption),|,leftenvelopes,rightenvelopes5andFhcustomenvelopescontrolthepGositionoftheenvelopGewithrespectto5theĻslot.The rstthreeoptionsareself-explanatory*.Thefourthgivesthe5controlovertheenvelopGepositioningtotheuser. WIfyouchoGosethisop-5tion,youmustsetthelength\EnvelopeLeftMarginbGeforeprintingtheen-5velopGes. F*orexampletoshifttheenvelopGefor2^00 fromtheleftedgeuse5\setlength{\EnvelopeLeftMargin}{2in}ffI1ͤLτ ffΟ1LabelOffsetRow,TLabelOffsetCol,͡ ff ͤLτ ffΟ1\FirstLabel{Row}{Colp}*E ff5ffIō5SometimesuRyouneedtoprintlabGelsonapartiallyusedsheet.ѿThecounters5LabelOffsetRow3andLabelOffsetCol(defaultvqalues1)setthepGositionof5theE rstlabGeltoprint. Y*oucanchangethemusingthe\setlengthcom-5mand.UAlternatively*,~youHcanusethecommand\FirstLabel{R}'ow}{Col}tosetNewTfeature V9ersionT1.15bGoth counterssimultaneously*.`For example,*thecommand\FirstLabel{3}{2}5causesݪEnvLabtostartprintinglabGelsbeginningwiththesecondlabelinthe5thirdGrow.SmNotethatlabGelsareprintedrowbyrow(notcolumnbycolumn, }like5inUUthestandardL5ffA͉TU>'ExX2"+Tletterclass).9 ^so53.4SFormattingoftheaddress(barco`desandcapitaliza-Stion)uT5Inp theUnitedStates(andmanyothercountriesaswell)themailingpiecesare 5sorted^bymachines.ThisproGcessisgreatlyfacilitatediftheaddressestypGeset-5tingUUisenhancedformachinereadability*.5USPS>standards>[1]establishtwo>waysformakingtheaddressesmachineread-5able:barcoGdesandspecialprintingofaddressesforopticalcharacterrecognition5(OCR)devices.,InprincipleanymethoGdwouldbGesucient,Lbutitseemsrea-5sonabletoplayitsafeusingb}'othLUmethoGds. ThereforeEnvLab?bydefaultbGoth5printsN5barcoGdesandpreparesaddressesforOCR.Thisbehaviorcanbecontrolled5throughUUpackqageoptions.5NoteEthatonly\T*o-Address"shouldbGemachine-readable.Thereturnaddress5can@bGeformattedmorefreely*.You@can,;forexample,includeyourlogointhe5r}'eturnaddressUU(seeSection4)o@ff1ͤLτ ffΟ1printbarcodes,Tnoprintbarcodes͡ ff5ff󃎎阍5TheaddressesintheUScontain\zipGcodes"|stringsof vedigits(5-coGde)or95digits dividedbydash(5+4coGde).`JThe5+4codeisactuallyadetalization^6|s,+[so5theIzipGcode12345-6789canbewrittenasjust12345.0nThiscodeisconvertedinto5a.seriesoflongandshortbarsandprintedonalabGelorenvelopGe.dIftheoption5printbarcodes.(default)isselected,EnvLab{triestoextractzipGcode.fromthe5addressUUandprintit.qItde neszipGcodeUUasasequenceofdigitsthat:A81.NHasUUnocharactersotherthandigitsanddashes(-)insideitA82.NHasUUnogroupsinbraces({})insideitandisnotbraceditselfA83.NIsUUthelastintheaddress eld5TheUUoptionnoprintbarcodessuppressesthetypGesettingofbarcodes.o@fff1ͤLτ ffΟ1alwaysbarcodes,Tnoalwaysbarcodes͡ ff5fff阍5Sometimesίtherule3istoGoharsh.DConsider,forexample,thefollowingaddress:NMr.qA.UUB.User N32UUOmegaRoadNPaloUUAltoCa12345NUSA5Obviously͡ithasazipGcode,+however͡EnvLabnormallywillnotseeit.ڪThe5optionalwaysbarcodesliftsthisrestriction,!andEnvLabMtypGesetsbarcodesfor5theVlastnumbGerVmetintheaddressevenifitisfollowedbysomeothercharacters.5Be carefulwiththisoption!Ifyouselectit,9:alladdressesmustactuallyhave5X-ffv J= "5-:6LThere?isanevÎen nerdetalizationprovidedbythesocalledDPC.numb "5-:8LIj probablyj2shouldstripallaccenÎtssincetheymightconfuseOCR.HoweverUSPSj says nothingXab'ExX5letterFxdoGcumentclassstoresthecontentsofthe\addresscommandinthe5\fromaddressmacro,N sothedefaultde nitionofthereturnaddressimple-5mentedUUinEnvLabis\renewcommand{\returnaddress}{\fromaddress}.o@ffq1ͤLτ ffΟ1CustomizationToflengths͡ ff5ffq阍5AllQlengths(heights,0widths,margins)Qareuser-customizable.~Consultthe le5envlab.dtxUUfortheirde nitionsanduse.@ff;?ݟ1ͤLτ ffΟ1envlab.cfg͡ ff5ff;?ݎ阍5IfyouuseEnvLab"forsometime,youprobablywouldhaveanumbGerofoptions5andcommandsthatyouexecuteinmostdoGcumentspreparedwiththepack-5age.DY*oucansavethetypingbyputtingsuchcommandsinthecon guration5 leǣenvlab.cfg.BAsamplecon guration leisincludedintheEnvLabdistribu-5tion.@Y*ouarefreetohackitinanywayyoulike^9|s.@This leconsistsoftwoparts:5\ExecuteOptions{options!}絲and\AtEndOfPackage{customization/ c}'ommands}.5TheQ,optionslistedinthe rstpartsupGersedethedefaultoptionsofEnvLab.5Howevertheoptionsexplicitlylistedastheargumentsofthe\usepackagecom-5mand?supGersedetheoptionsinthecon guration le.UThecommandslistedinthe5secondpartofthecon guration le|astheargumentsofthe\AtEndOfPackage5command|supGersede!Ballde nitionsinthepackqageitself.`lThereforebyhacking5envlab.cfgiyoucancompletelychangethebGehaviorofthepackqagewithout5moGdifyingUUEnvLab.&55MLBugsffandlimitations5The}mostimpGortantlimitationofEnvLab ʲisrelatedtoanessentiallimitationNew descriptionV9ersionT1.15ofOTU>'ExXitself.PeopleusuallywanttheirenvelopGesprintedrotated90^, sothe5envelopGesareinsertedintheprintedbytheshortside.UnfortunatelyTU>'ExX5washnotdesignedwiththetextrotationinmind.Therefore\basic"TU>'ExXdoGes5notyallowtotypGesetenvelopGesinthismanner.pThestandardL5ffA͉TU>'ExX2",FIJpackqage5graphicsusesPostScriptNtoaddthisfunctionalitytoTU>'ExX..4EnvLabusesgraphics5internallyeiftheoptionrotateenvelopes(default)isine ect.Thereforeto5typGesetrotatedenvelopGesyouneedgraphicsandeitheraPostScriptIprinter5orghostscript.Otherwiseusenorotatenvelopesoptionifyourprintedcan5proGcessenvelopesinsertedbythelongside.0Iunderstandthatthereisaproblem5ffv J= "5-:9LImportant:Senvlab.cfgistheonly leyÎoushouldmo'ExX2"+vpackqage5(seeUUthe leslegal.txtandmodguide.texintheL5ffA͉TU>'ExX2"+Tdistribution).5AveryUUandallAverycoGdesaretrademarksofAveryDennisonCorpGoration.3č5References5[1]D;USPS.nDesigningBusinessL}'etterMail(Pub25),UUAugust1995.13x; .R6 cmss12,q[ cmsl9+ow cmss9*j cmti9)ߤN cmtt9(#fcmti8'8)cmsl8&N cmbx12%Cscmtt8$': cmti10# cmmi10 0ercmmi7K`y cmr10ٓRcmr7O linew10