; TeX output 1997.06.26:1118s}n}9GGcmss17droppingq:DtGGcmr17{7taLdKGXQ cmr12AT[-E;gXMacroforDroppingtheFirstaCharacter(s)7tofaPqaragraph!", cmsy10"RMatsDahlgren(߆T cmtt12matsd@homenet.se)&37?R1997/06/12.@t : cmbx9Abstractэ5o cmr9ThisodoAcumen9tdescribestheow cmss9droppingpac9k|rage,whichode nesacommand, ߤN cmtt9\dropping,to '9dropthe rstc9haracter(s)ofaparagraph.ItisbasedonF:redJ.Lauwers'sdropcaps.sty.In'9short,@idroppingXis7anautomatizationofdropcapsinthattheuserdoAesnotneedtokno9wthe'9in9ternalQnameofthefont le(the.tfm- le)butcancontrolthisviatheordinaryL5Aacmr6A TuAEXc.2!5" cmmi9"'9commandsT`\rmfamily'#j cmti9etc.'9ThisT leandthepac9k|rage:Copyrightc" cmsy9 j1996-1997byMatsDahlgren.pAllrightsreserved.!č9%Nff cmbx121&Intros3duction9&m#R cmss10droppingK`y cmr10issaL5ffٓRcmr7A͉TU>'ExXpackqagewhichmakesiteasytostartanewparagraphwithadroppGedletter 9orUUletters.qThelinesfollowingthedroppGedletterareindentedsonoover-writingistooGccur.92&Userguide9'N cmbx122.1,RequirementsuT9The'ExX2 b> cmmi10"9of3 1995/12/01(ornewer).fYdroppingVworks3 bGestwithdvipsandMakeTeXPK3installed,9althoughnot9formallyUUneeded.qWithoutthese,theoutputmaynotbGeasgoodasexpected.9droppingv.0.12-hasbGeentestedusingMiKTU>'ExX1.07,5includingL5ffA͉TU>'EX2"*of1996/12/01andTU>'EX93.14159,UUunderWin95.qOnlychangerelativepreviousversionisabug/typGo x.692.2,Usage9TheUUpackqageisincludedbystating\usepackage{dropping}9InPthedoGcumentpreamble.[Thepackqagerecognizesthesameoptionsasthegraphicspackqagev.1.09(1996/05/29)MQbyD.P*.CarlisleandS.P.Q.Rahtz.oWhichMQisusedisassumedtobGecontrolledvia9theUUexistenceofagraphics.cfg leintheL5ffA͉TU>'ExXinstallation.9'ffğ @ -:q% cmsy6L|{Ycmr8ThisXdo'ExXlength(withunit)whichstateshowfarfromtheleftmarginthe9droppGedqtextshouldstart.<&AHpositivenumbGercorrespondstoanindentationrightwards,ԟanegative9numbGer7willforcethedroppedtexttostarttotheleftoftheparagraph.gThedefaultvqalueis0pt,9meaningthedroppGedtextwillbealignedwiththerestoftheparagraph.Themandatorynumb9argumentvshouldbGeanintegernumbGerwhichstateshowmanylinestallthedroppGedtextshould9bGe.kTheClastargument,Ftext,isCthetextwhichshouldbGedropped.kThisargumentmayeitherbGea9singleletterorseveralletterswithoutanyformattinginformation,ortheargumentmaystartwith9a[font-changingcommandofthetypGe\rmfamily.Intheformercase,therearenospecialthings9to`EthinkabGout,candthedroppedtextwillbetype-setinthedocument'sdefaultfont.However,cif9afont-changingcommandisused,מtherearetwothingstobGeawareof:B<*"V cmbx101.wY*oucanonlyusethe9font-changingcommands\rmfamily,\sffamily,\ttfamily,\mdseries,\bfseries,\upshape,9\itshape,ƴ\slshape,or|\scshape(i.e.Fnotothe\textxxcommands).2.Thefont-changing9command(s)3mustbGefollowedbyapairofbraces,:k{},and3ablankspacefortheinternalstripping9routines1towork.Several1font-changingcommandsmaybGeusedinseries.Thus,hbGoth{This},9{\bfseries{}?this},>and {\ttfamily\itshape{}this}areexamplesofvqalidtextarguments9to\dropping.UNotethattheconstruct\textit{\dropping[lenc]{numb}{text}}doGesnotywork9propGerly*.9F*redJ.Lauwers'scommand\bigdropisalsoavqailableifthedropping"Mpackqageisloaded.TIthasmC\bigdrop9exactlyUUthesamesyntaxasifrdropGcapsisloaded,thatis:\bigdrop{lenc}{numb}{font}{text}9wherebtheargumentslen'andnumbLareexactlythesameasfor\dropping(infact, thesetwo9arguments/arepasseddirectlyfrom\droppingto\bigdrop).UThefontargumentistheinternal9fontnametobGeusedforthedroppedtext,ài.e. _the.tfm- lename(cmsl10isanexampleofa9vqalidޫfontуargument).J9Thefourthargument,gtext,isޫthetexttobGedropped(onlyplaintextisvqalid9here!).qF*orUUfurtherdetails,pleaseseethedropGcapsdocumentation.!č93&Examples9+':,ff cmti10Thishsectionygivessomesimpleexamplesoftheuseofʖdropping. |3Asa rsthexample, thisG^veryparagraphwasstartedbystatingthecommandh`\dropping{3}{\itshape{}?This}'finthebGeginning."Noticethebraces(`{}')9andUUthespacebGefore`This'r!9.U cmssi10Ib޲nwaddition,thisparagraphgivesanexamplewheretheoptional rstargumentof\droppingisbused.dkThe-@paragraphwasstartedby`\dropping[-6pt]{2}{\slshape\sffamily{}?I}n',5Dandas9you_(hopGefully!)cansee,b-itworks netohaveseveralfont-changingcommandsinone\dropping9command.$9/K`y> cmr10T;~вhethirdexampleisanexamplewherethedefaultdoGcumentfontisbGeingused.RBynow,;~you=probablyhave guredoutthatthisparagraphisstartedwith`\dropping{4}{T}he'.;~F*oryoutoseethefulle ectofthedropping,therehastobGeatleastfourcompletelines;~inZtheparagraph,[andsothistextwithnotsomuchZtosaytheL5ffA͉TU>'ExXuserisgoingon9andUUonandonandonandonandon...=2 s}n}94&KnownffProblems9 !", cmsy10'9If0\droppingisusedtostartaparagraphwhichitselfstartsclosetothebGottomofapage, '9thedroppGedtextwillhangdownintothefoGoterandgivearatherweirdimpression.Avoid'9thisUUbysome(unfortunatelymanual)page-breaking.9'9Reallylarge(morethantwolinestall)droppGedtextisnotverybeautifulunlessthe'9graphics.cfgu lesspGeci esdvipsasthedefaultgraphics'driver(oranoptionwhichin'9turnUUcallsthedvipsoption).!č95&Acknowledgements9Firstandmostofall,IwanttoacknowledgeF*redJ.LauwersforprovidingthedropGcapspackqage9andlettingmeusethecoGdethereof(accordingtothecopyrightnoticeinthedropcaps.sty le;9see alsodropping.ins).6'droppingwouldofcoursenotbGewhatitistodaywithoutF*red'swork.9(Unfortunately*,UUIdonothaveUUanycurrente-mailaddressofF*red's.)9Ialso wanttothankDonaldArsenau(asnd@reg.triumf.ca)andRobinF*airbairns9(Robin.Fairbairns@cl.cam.ac.uk)_foransweringmyquestiontocomp.text.texabGoutcondi-9tionalJstrippingofstrings,>aswellasPietvqanOostrum(piet@cs.ruu.nl)andAlainKetterlin9(alain@ia1.u-strasbg.fr)UUforansweringmy\splittingofastring"question.!č96&SendingffaBugReps3ort9droppingGislikelytocontainbugs.Although,IdonotconsiderthistobGea\supported"packqage,9repGortsZofbugsinthepackqagearemostwelcome.|Before lingabugrepGort,pleasetakethe9followingUUactions:r1.'9EnsureUUyourproblemisnotduetoyourowninput le,packqage(s),orclass(es);r2.'9EnsureUUyourproblemisnotcoveredinthesection\KnownProblems"abGove;r3.'9T*ry:toloGcatetheproblembywritingaminimalL5ffA͉TU>'ExXinput lewhichreproGducestheproblem. '9IncludeUUthecommand1\setcounter{errorcontextlines}{999}'9inUUyourinput;r4.'9RunUUyour lethroughL5ffA͉TU>'ExX;r5.'9SendUUadescriptionofyourproblem,theinput leandthelog leviae-mailto: 8=matsd@homenet.se. 9EnjoyyourL雍Q0t}\cmti7ATKß'E-X!matsd.=3s}n}97&TheffCos3de9F*orǝtheinterestedreader(s),hereisashortdescriptionofthecoGde.BFirst,thepackqageistoidentify 9itself:6f1\NeedsTeXFormat{LaTeX2e}[1995/12/01] 6f2\ProvidesPackage{dropping}[1997/06/12v.0.12]9Then,UUsomecounters,dimensionsandabGooleanUUareset:6f3\newcount\bigscale6f4\newcount\down6f5\newdimen\saveunitlength6f6\newdimen\wantedheight6f7\newif\ifstrtcmmnd\strtcmmndfalse9The di erencesbGetween thedi erentgraphics'driversaretakencareofbymeansofoptionsto 9theUUpackqage.qFirst,thedvipsoptionisdeclared(coGdegreatefullytakenfromdropcaps.sty).6f8\DeclareOption{dvips}{%6f9\newcount\wantedcount910\newcount\actualcount%911\newdimen\actualheight%912\def\findsize#1#2{%913\bigscale=1000%914\font\BIG=#1scaled\bigscale%915\setbox0=\hbox{\BIG#2\/}%916\actualheight=\ht0%917\wantedcount=\wantedheight\actualcount=\actualheight%918\advance\actualcountby50%919\divide\actualcountby100%920\multiply\wantedcountby10%921\divide\wantedcountby\actualcount%922\font\BIG=#1scaled\wantedcount%923\setbox0=\hbox{\BIG#2\/}%924\bigscale=\wantedcount}}9Next,UUthe\non-dvips-users'"coGdefromdropcaps.styisdeclaredtobeanoption,\other":925\DeclareOption{other}{%926\def\nextmagstep#1#2#3{%927\bigscale=#3%928\font\BIG=#1scaled\bigscale%929\setbox0=\hbox{\BIG#2\/}}%930\def\findsize#1#2{%931\nextmagstep{#1}{#2}{\magstep0}%932\ifdim\ht0<\wantedheight%933\nextmagstep{#1}{#2}{\magstephalf}%934\ifdim\ht0<\wantedheight%935\nextmagstep{#1}{#2}{\magstep1}%936\ifdim\ht0<\wantedheight%937\nextmagstep{#1}{#2}{\magstep2}%938\ifdim\ht0<\wantedheight%939\nextmagstep{#1}{#2}{\magstep3}%940\ifdim\ht0<\wantedheight%941\nextmagstep{#1}{#2}{\magstep4}%942\ifdim\ht0<\wantedheight%943\nextmagstep{#1}{#2}{\magstep5}%944\fi\fi\fi\fi\fi\fi}}=4)s}n}9F*ollowing9this,/thevqariousothergraphics'driversasrecognizedbythegraphicspackqagearede- 9clared.igThe<4xdvioptionjustcallsdvips(asingraphics),A;andsodoGestheoztexoption^1(arecent9release.ofOzTU>'ExXcontainsagraphics.cfgwhichcallsthedvips-optionofKgraphics).ZSAllother9optionsXccalltheotheroption.zNoteifsomeuser(s) ndthatanoptionshouldusedvipsinstead9of]Rother,_QpleasefeelfreetochangeinyourloGcaldropping.sty leaslongasyoualsoinformme9(viaUUe-mailtomatsd@physchem.kth.se)oftheappropriatechange!945\DeclareOption{xdvi}{\ExecuteOptions{dvips}} 946\DeclareOption{dvipsone}{\ExecuteOptions{other}}947\DeclareOption{dviwindo}{\ExecuteOptions{other}}948\DeclareOption{emtex}{\ExecuteOptions{other}}949\DeclareOption{dviwin}{\ExecuteOptions{other}}950\DeclareOption{oztex}{\ExecuteOptions{dvips}}951\DeclareOption{textures}{\ExecuteOptions{other}}952\DeclareOption{pctexps}{\ExecuteOptions{other}}953\DeclareOption{pctexwin}{\ExecuteOptions{other}}954\DeclareOption{pctexhp}{\ExecuteOptions{other}}955\DeclareOption{dvi2ps}{\ExecuteOptions{other}}956\DeclareOption{dvialw}{\ExecuteOptions{other}}957\DeclareOption{dvilaser}{\ExecuteOptions{other}}958\DeclareOption{dvitops}{\ExecuteOptions{other}}959\DeclareOption{psprint}{\ExecuteOptions{other}}960\DeclareOption{pubps}{\ExecuteOptions{other}}961\DeclareOption{ln}{\ExecuteOptions{other}}962\DeclareOption*{\ExecuteOptions{other}}9Nowitistimetoloadthegraphics.cfg le,andifitisnotfoundsendawarningtotheuserand 9assumeǯdvipsisaround...:Thenǯinordertofreesomememory*,anyremainingoptionisproGcessed.963\InputIfFileExists{graphics.cfg}{}{%964\PackageWarningNoLine{dropping}{%965Youhaveno`graphics.cfg'fileinstalled.\MessageBreak966Iwillassumeyouareusing`dvips'}967\ExecuteOptions{dvips}}968\ProcessOptions9NextfollowsF*redJ.Lauwers'soriginalcommand\bigdropexceptthatthe\typeoutstate-mC\bigdrop 9mentsUUhavebGeenremoved.969\def\bigdrop#1#2#3#4{%970\saveunitlength=\unitlength%971\unitlength=\baselineskip%972\setbox1=\hbox{\the\fontI}%973\wantedheight=#2\baselineskip\advance\wantedheightby-\baselineskip%974\advance\wantedheightby\ht1%975\findsize{#3}{#4}%976\hangindent=\wd0\advance\hangindentby#1%977\hangafter=-#2%978\ifdim\dp0>0.25\baselineskip%9797\loop\ifdim\dp0>\baselineskip980"W\advance\baselineskipby\baselineskip981"W\advance\hangafterby-19827\repeat9837\advance\hangafterby-19847\baselineskip=\unitlength9ffffğ J= "5-:1LThanksXtoJohanFJrob cmr10.U cmssi10+':,ff cmti10*"V cmbx10)': cmti10( cmmi10K`y cmr10ٓRcmr7K(