; TeX output 1996.04.29:0828֍uPff(ەK`y cmr10StyleUU lesforthepGdc-macros1.2(1995/03/30)Aff(2pi cmssdc101. IntroQduction-ˍU cmssi101.1.qAbGoutUUthestyle les-ʍThisUUdoGcumentdescribesafamilyofplainT'E6Xstyle lesfortypGesettingdocumentswhich areUUshortenoughnottoneedanyfancyindexingorcross-references,butlongenoughtowantnumbGeredUUsectionheadingsandatableofcontents. 卑AUU$': cmti10style leinthiscontextmeansade nitions lethatspGeci estheformattingofforadoc-ument:qlayout,UUchoiceoffonts,instructionsforhowtoformatlists,andsoon.qThestyle lesuseUUthemacrosde nedinotherde nition lestosupplymostofthefeaturestheyneed.qThedoGcumentUUonlyneedsone` cmmi10:::\endfrontmatter;thisautomaticallyswitchesUUtopagenumbGeringinromannumerals,andputsthetableofcontentsattheend.TheUU lepdccmdoc.texdoGesdocumentsusingtheComputerModernfonts.qThereisavqari-antUUcalledpdccmlft.texintendedfor`lea ets'thatareevenshorterthanthe`doGcs'producedwithUUpdccmdoc.tex.qLea etshaveUUnofrontmattersection,notableofcontents,andsectionheadingsUUaremuchUUlessprominent|theyshouldonlybGeafewpageslongatmost.qTheMalvernversionsUUarecalledma55doc.texandma55lft.tex.-ˍ1.3.qAbGoutUUthisdocument-ʍTheUU lethatgeneratesthisprinteddoGcumentation,pdcsty.dtxisa`doGcumentedT'E6X' le.qAsUUwellasbrie ydescribingwhatthemacrosareforandhowtheywork,itincludesacom-pleteUUlistingoftheirde nitions.qThetextofthede nitionsisalsowrittento lesinthecurrentdirectory*,UUgeneratingfreshcopiesofthestyle les.qThiswaythisdoGcumentationandthe lesitdescribGesUUareguaranteedtomatch.TheUUlinesofallde nitionsarenumbGeredUUcontinuously*,eventhoughonlyasubsetofallthede nitionUUlineswillgoineach le.[2. Startingup-ˍ2.1.qFileUUidenti cation-ʍNowadays,UUmacro lesstartwithsomecommentsidentifyingthe le,forthebGene tofpGeopleUUwonderingwhatthe leisfor.qThemacro leotherwisehasnoothercomments,inthehopGeUUthatthiswillletT'E6Xreaditinfaster.q(Itshouldbepossiblefortheidenti cationcom-mentsUUtogoafteran\endinputatthecloseofthe le,buttheconventionistohavethemattheUUstart.)TheUUfollowingsegmentiscommontothestyle lesandthede niton les. f ÑٓRcmr71%? !", cmsy10h lename[i7QY1.2?1995/03/30--macrosforshortdocuments Ñ2%%%@TeX-definition-file?{ Ñ3%%%?filename$="h lename[i,_", Ñ4%%%?version)="1.2", Ñ5%%%?date9="1995/03/30", Ñ6%%%?package)="pdcmac1.0",π1*֍f$cmbx7St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍍ Ñ7%%%?author/?="P.DamianCugley", ( Ñ8%%%?email4="damian.cugley@comlab.ox.ac.uk", Ñ9%%%?address)="OxfordUniversityComputingLaboratory,10%%%cParks?Road,Oxford OX13QD,UK",11%%%?codetable="USASCII",12%%%?keywords$="TeX,plainTeX,stylefile",13%%%?supported="Maybe", 䍟8p9q?qComputerMo}'dern_9q3# S14%%%?abstract$="Top-levelmacrofilefordocumentssetin15%%%cComputer?Modernfonts.8p9q?qMalvern_9q_3d S16%%%?abstract$="Top-levelmacrofilefordocumentssetin17%%%cMalvern?55,56and75fonts. ㍍8p9q?qpdclft.def,pdcdoc.def9q18%%%?abstract$="Sectioningmacrosforstylefiles. ㍟pp#19%%%cThis?macrofilewasgeneratedbyrunningplain20%%%cTeX?onpdcsty.dtx",21%%%?copyright="Copyright(c)1991-1995P.DamianCugley",22%%%?copying)="DONOTDISTRIBUTETHISFILE.23%%%cDistribute?pdcsty.dtxonlyaspartofthe24%%%cpackage?itcamein.", 䍟8p9q?qpdclft.def,pdcdoc.def9q25%%%?dependencies=""8p9q?qComputerMo}'dern_9q3#26%%%?dependencies="pdcfmt2.tex,pdcfsel.tex,pdchyex.tex, (27%%%cpdcimth.tex,?pdccmsub.tex,pdcmigr.tex,8p9q?qMalvern_9q_3d28%%%?dependencies="maamac.tex,pdcfmt2.tex,pdcfsel.tex, (29%%%cpdchyex.tex,?pdcimth.tex,pdcmigr.tex,8p9q?qPostScriptfonts9q}375ThisUUisfollowedUUimmediatelybyalistofthemacro lesincludedbythisformat:S8p9q?qStyle les9qYkZ38\input?pdcimth39\input?pdcmigr40\input?pdcfmt241\input?pdchyex42\input?pdcoput543\input?pdcfsel 䍟8p9q?qComputerMo}'dern_9q3#44\input?pdccmsub8p9q?qMalvern_9q_3d45\input?maamac8p9q?qPostScriptfonts9q0pt57(\setbox\leftbox=\hbox?to\gridwd{}\fi}WhileUUwe'rehere,wecustomizesomeoftheenvironmentssuppliedbypGdcFMT2:58\everyfootnote={\notefonts}59\everylinenum={\smallfonts} 䍟8p9q?qMalvern_9q_3d 60\def\footnotetextmark#1{{\rmsy#1}}61\def\footnotenotemark#1{{\rmsy#1}} ㍟pp#62\everylinenum={\smallfonts}63\everytag={\bf}4. Fonts덑ThisUUsectiondescribGesthefontsavqailableinthedoGcument. AW*eUUintroGduceextranicknames\biforbGolditalic(usedforthe rstmentionofnewtechical terms),UU\mffortheMET*AFONTlogo,\mfifortheMETAFONTlogoinitalic(SomethingofanUUa ectation)and\ttbforan`emphasized'typGewriter(usuallyitisbestifthisisslanted,notbGold).A8p9q?qStyle les9qYkZ64\autoloadfontsTheUUstyle lesdi erbGecauseofencodingschemesmorethanbecauseoftheparticularfonts.qF*orUUexample,astyleforTimesRomanwillworkforPalatinotoGo,ifwechangethenamesofUUthefontsused.qT*odothis,amacro\basefontnamemaybGede nedbeforethestyle leisreadUUin;ifitisn'tde neditisgivenadefaultvqalue.4.1.qFontsUUforComputerMoGderndocumentsA8p9qqComputerMo}'dernc9q4 AW*eUUuseComputerMoGdernSansSeriffortheheadingsinCMdocuments.qIhavenotputmuchUUe ortintomakingformulasworkinheadings. 65\def\STYheadingT{% ە66(\m{rm}{cmss}\m{mi}{cmmi}\m{sy}{cmsy}%67(\f{it}{cmssi}\f{tt}{cmtt}\f{mf}{logo}\f{mfi}{logosl}%68}69\font\headingrm=cmss17?\font\headingit=cmssi1770\fontset{subheading}\STYheadingT{10?scaled1200}{14pt}71({small}{tiny}72\fontset{heading}\STYheadingT{10?scaled1728}{20pt}73({subheading}{small}π3֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍑW*eUUuseComputerMoGdernforbodytext. 꼍74\def\STYbodyT{\m{rm}{cmr}\m{it}{cmti}% B,75(\m{bf}{cmbx}\@\f{bi}{cmbxti10}%76(\m{mi}{cmmi}\m{sy}{cmsy}%77(\@\f{mf}{logo10}\@\f{mfi}{logosl10}%78(\f{tt}{cmtt}\@\f{ttb}{cmsltt10}%79}80\font\tinytt=cmtt8?at7pt81\font\bodysy=cmsy10?at12ptQ 4.2.qFontsUUforMalverndoGcuments8p9qqMalvernc9q`L HeadingsUUareinMalvern75.qThemathsfontsarescaledforexpGediency;Idonotmake muchUUe orttomakeformulasworkinheadings.82\def\STYheadingT{%83(\m{rm}{ma75a}\@\m{mi}{cmmi10}\@\m{sy}{cmsy10}%84(\f{it}{ma76a}\@\f{tt}{cmtt10}\@\f{mf}{logo10}\@\f{mfi}{logosl10}%85}86\fontset{subheading}\STYheadingT{12}{14pt}{subheading}{subheading}87\fontset{heading}\STYheadingT{18}{20pt}{subheading}{subheading}Q W*eUUuseMalvern55forbGodyUUtext.qThesupplementaryfontwithencoGdingBisadded,with fontUUnickname\rmsy.88\newfam\rmsyfam89\def\STYbodyT{%90(\m{rm}{ma55a}\f{rmsy}{ma55b}\m{it}{ma56a}%91(\m{bf}{ma75a}\f{bi}{ma76a}%92(\m{mi}{cmmi}\m{sy}{cmsy}%93(\@\f{mf}{logo10}\@\f{mfi}{logosl10}%94(\f{tt}{cmtt}\f{tb}{cmsltt}%95}Q ThereUUisnopGointusing\loadfontonthemathssymbGolfonts,sincetheyhavetobGe loadedUUanywaythe rsttime\bodyfontsiscalled.96\font\bodymi=cmmi10?scaled\magstep297\font\bodysy=cmsy10?scaled\magstep298\font\notemi=cmmi10?scaled\magstep199\font\notesy=cmsy10?scaled\magstep1ʫ100\font\smallmi=cmmi10?scaled\magstephalfʫ101\font\smallsy=cmsy10?scaled\magstephalfQ 4.3.qFontsUUforTimesdoGcuments8p9qqPostScriptfonts!9q>I+ TheUUbigproblemwithPostScriptfontsiswhattheyarecalled;IshallbGeassumingthat F*ontnameUU1:6*applies:qfontswithafm2tfm'svqariationontheT'E6XT*extencoGdingarecalledptmrUUandfontswithAdobGe'sStandardRomanencodingarecalledptmr0(ratherthanrptmr).ThisUUmacroattemptstomakeitpGossibletoguessthestandardnamefortheitalicvqari-antUUofagivenfont.q\KBcanonical{htentativefontname[i]W}takesafontnamewhichisformedfromUUanuprightnameoptionallyfollowedby`i'representinganitalicvqariation.qItreturnsthecorrespGondingUUstandardname.qF*orexample,ptmriisleftunchanged,butphvriischangedtophvroUUandphvrrniischangedtophvron. 꼍ʫ102\def\KBcanonical#1{% B,ʫ103(\expcs\ifx{KB#1}\relax?#1\else\csnameKB#1\endcsname\fiʫ104}ʫ105\ifx\KBadobe\UNDEFINED?\def\KBadobe#1{\KBcanonical{#10}}\fiʫ106\def\KBit#1{\KBcanonical{#1i}}ʫ107\def\KBbi#1{\KBbf{#1i}}ʫ108\def\KBbf#1{\expandafter\KBbfx#1.}ʫ109\def\KBbfx#1#2#3#4#5.{\KBcanonical{#1#2#3b#5}} ff=  *KarlUUBerry*,FileNamesforTL'EXF;ontsUU1:6(ftp://ftp.umb.edu/pub/tex/fontname/).π4/b֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍍʫ110\def\KBpagbr{pagdr})\def\KBpagbri{pagdro} 獍ʫ111\def\KBpbkbr{pbkdr})\def\KBpbkbri{pbkdri}ʫ112\def\KBpagri{pagro})\def\KBpagbi{pagbo}ʫ113\def\KBphvri{phvro})\def\KBphvbi{phvbo}ʫ114\def\KBpcrri{pcrro})\def\KBpcrbi{pcrbo}ʫ115\def\KBphvrrni{phvron}?\def\KBphvbrni{phvbon}ʫ116\def\KBphvrrn0{phvr0n}?\def\KBphvbrn0{phvb0n}ʫ117\def\KBphvrrni0{phvro0n}\def\KBphvbrni0{phvbo0n}HeadingsUUareinHelvetica.qThemathsfontsarescaledforexpGediency;Idonotmakemuch e ortUUtomakeformulasworkinheadings. "2ʫ118\ifx\headingfontname\UNDEFINED?\def\headingfontname{phvr}\fiʫ119\ifx\headingttfontname\UNDEFINED?\def\headingttfontname{pcrb}\fiʫ120\def\STYheadingT{%ʫ121(\@\f{rm}{\headingfontname}\@\m{mi}{cmmi10}\@\m{sy}{cmsy10}%ʫ122(\@\f{asy}{psyr}%ʫ123(\@\f{it}{\KBit\headingfontname}%ʫ124(\@\f{tt}{\headingttfontname}\@\f{mf}{logo10}\@\f{mfi}{logosl10}%ʫ125}ʫ126\loadfont\bodysy{cmsy10?at12pt}ʫ127\fontset{subheading}\STYheadingT{12}{14pt}{subheading}{subheading}ʫ128\fontset{heading}\STYheadingT{18}{20pt}{subheading}{subheading}W*eUUuseTimesRomanbydefaultforbGodyUUtext,andCourierfortypGewritertext.qAdobe's SymbGolUUfontisincluded,withfontnickname\asy;afamilycalled\asyfamhasalreadybGeencreatedUUbypdcadobe.tex.ʫ129\ifx\bodyfontname\UNDEFINED?\def\bodyfontname{ptmr}\fi 獍ʫ130\ifx\bodyttfontname\UNDEFINED?\def\bodyttfontname{pcrr}\fiʫ131\def\STYbodyT{%ʫ132(\@\m{rm}{\bodyfontname}\@\m{it}{\KBit\bodyfontname}%ʫ133(\@\m{bf}{\KBbf\bodyfontname}\@\f{bi}{\KBbi\bodyfontname}%ʫ134(\@\m{asy}{psyr}\m{mi}{cmmi}\m{sy}{cmsy}%ʫ135(\@\f{mf}{logo10}\@\f{mfi}{logosl10}%ʫ136(\@\f{tt}{\bodyttfontname}\@\f{tb}{\KBit\bodyttfontname}%ʫ137}FinallyUUthealphabGet-switchingcommandsde nedforMalvernfontsaregivendummy de nitions.ʫ138\let\sc=\relax \let\mc=\relax\let\csc=\relaxDKpp#4.4.qDe nitionsUUcommontoallformats"28p9q?qStyle les9qYkZ ʫ139\fontset{tiny}\STYbodyT{7}{9pt}{tiny}{tiny}ʫ140\fontset{small}\STYbodyT{9}{11pt}{tiny}{tiny}ʫ141\fontset{note}\STYbodyT{10}{12pt}{tiny}{tiny}ʫ142\fontset{body}\STYbodyT{12}{14pt}{small}{tiny}TheUUtextissetleft-justi ed(ragged-right).qT*omakethiswork,thefontdimensthatcontrol wordUUspacingaresettoforceinterwordspacestoallbGethesamewidth.ʫ143\def\everyloadfont#1#2{\fontdimen3#1=0pt?\fontdimen4#1=0pt}ʫ144\rightskip=0pt?plus2em\tolerance=1000ʫ145\bodyfontsʫ146{\tt?\hyphenchar\font=-1} ㍟pp#+5. Simplesectioning8p9qqpdclft.def9qPԎ DKAUU`lea et'isdividedintoshortsections,whichmaycontainsubsections(butusuallywill not).qThereUUmaywellbGemorethanonesectiononapage.TheUUsectionnumbGerUUisheldintwoUUcountregisters,andprinted(enclosedin\n{::: UO})withtheUUmacro\thesecno: "2ʫ147\newcount\secno?\newcount\subsecnoπ5>1֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍍʫ148\def\thesecno{% 栍ʫ149(\n{%ʫ150=\number\secnoʫ151=\ifnum\subsecno>0ʫ152R.\number\subsecnoʫ153=\fiʫ154(}%ʫ155}TheUUsectionandsubsectioncommandsareimplementedstraightforwardlywithmacros fromUUpdcfmt2.tex,sincethereisnoneedformarksor ddlingwithtable-of-contentsUU les. 3ʫ156\def\section{ʫ157(\global\advance\secno1?\global\subsecno0ʫ158(\doheading\medskipamount{\subheadingfonts\thesecno\enspace}{}ʫ159}ʫ160\def\subsec{ʫ161(\global\advance\subsecno1ʫ162(\doheading\smallskipamount{\bodyfonts\thesecno\enspace}{}ʫ163}TheUUpageheaderincludesonlythetitleofthe le,whichtheusersetswiththecommand \majorheadline{htextطi}ʫ164\newtoks\majorheadlineʫ165\expandafter\majorheadlineʫ166(\expandafter{\expandafter\uppercase\expandafter{\jobname}}AllUUthose\expandaftersaretogettheinitialvqalueinuppGercase. MTheUU agnoheadlinesignalsthattheheadlineistobGeomittedonthispage(e.g.,thetitle page).qTheUUtwosided agissetfortwo-sidedUUbinding.ʫ167\newif\ifnoheadline?\newif\iftwosidedʫ168\headline{%ʫ169(\ifnoheadlineʫ170=\hfilʫ171(\else\iftwosidedʫ172=\ifodd\pagenoʫ173R\hfil?\the\majorheadline\quad{\bf\folio}%ʫ174=\elseʫ175R{\bf\folio}\quad?\the\majorheadline\hfilʫ176=\fiʫ177(\elseʫ178=\hfil?\the\majorheadline\quad{\bf\folio}%ʫ179(\fi\fiʫ180}ʫ181\footline{%ʫ182(\ifnoheadlineʫ183=\global\noheadlinefalseʫ184=\hfil{\bf\folio}\hfilʫ185(\elseʫ186=\hfilʫ187(\fiʫ188}46. SectioninginPDCCMDOCdoQcuments8p9qqpdcdoc.def9qPԎ MNowUUadoGcumentisdividedintose}'ctions,whicharefurtherdividedintoso-calledsubse}'cs andUUsubsubse}'cs.q(DivisionintosubsubsecsshouldbGedonesparingly*.)TheUUsectionsmaybGegroupedintop}'arts|or,tolookatitanotherway*,UUpartsarealargerdivisionUUofthedoGcumentthansections,butsectionsarenotnumbGeredwithinpartnumbGers.EachUU\partcommandshouldbGealmostimmediatelyfollowedby\section.6.1.qMacrosUUforsectionnumbGersTheUUpartandsectionnumbGersUUarekeptinT'E6XnumbGerregisters,withcorresponding`\the-'UUmacrostoprintthevqalueformatted. 3ʫ189\newcount\partnoπ6MN֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍍʫ190\def\thepartno{% #Wʫ191(\ifcase\partno?O\orI\orII\orIII\orIV\orV\elseʫ192=\expandafter\uppercase\expandafter{\romannumeral\partno}%ʫ193(\fiʫ194}vF*ormattedUUsectionandsubsecnumbGersUUaregeneratedbyonemacro\thesecno.qItauto- maticallyUUomits(sub)subsecnumbGersUUiftheyarezero.qThewholenumberUUisenclosedin\n{::: UO}soUUthattheformattingofnumbGersUUmaybGecustomized. ʫ195\newcount\secno?\newcount\subsecno\newcount\subsubsecnoʫ196\def\thesecno{% #Wʫ197(\n{%ʫ198=\number\secnoʫ199=\ifnum\subsecno>0ʫ200R.\number\subsecnoʫ201R\ifnum\subsubsecno>0ʫ202C?.\number\subsubsecnoʫ203R\fiʫ204=\fiʫ205(}%ʫ206}v6.2.qPartsTheUU\partmacrotakesoneargument,thetitle.qItsetsatokenregister\majorheadline whichUUisprintedontheleftpageoftwo-sideddoGcuments. TheUU\majorheadline{htextطi}commandmaybGeusedimmediatelyaftera\partcommandifUUtheparttitleisnotsuitabletogointheheadline.qThisshouldalsobGeusedatthestartoftheUUdoGcumenttothetitleofthedocument,ifdivisionintopartsisnotused. ʫ207\newtoks\majorheadline #Wʫ208\expandafter\majorheadlineʫ209(\expandafter{\expandafter\uppercase\expandafter{\jobname}}ʫ210\def\part#1{%ʫ211(\global\advance\partno1ʫ212(\newpageheading{2\baselineskip}{\headingfonts}ʫ213={}{\thepartno.\quad#1}ʫ214(\TOCwrite\TOCentrypart{\thepartno}{#1}ʫ215}v6.3.qSectionUUheadingsvSectionUUheadingswillstartonanewpageifthecurrentpageisalmost nished.qThesec- tionUUheadingissetacrossthefullwidthofthepage,includingthemarginusuallyusedfortab-indexedUUheadings. T*oUUforcethenextsectiontostartanewpage,do\sectionpenalty-10000immediatelybGeforeUUit.ʫ216\newcount\sectionpenaltyʫ217\def\sectionheading#1{ #Wʫ218(\parʫ219(\vskip?0ptplus0.3\vsizeʫ220(\penalty\sectionpenalty?\sectionpenalty-200ʫ221(\vskip?1\bigskipamountplus-0.3\vsizeʫ222(\begingroup?\advance\leftskip-\leftmarginʫ223=\parskip=0pt?\parindent=0ptʫ224=\hyphenpenalty=10000?\exhyphenpenalty=500ʫ225=\interlinepenalty=100ʫ226=\headingfonts?\nointerlineskipʫ227=\hbox{\hskip-\leftmarginʫ228C?\vrule?height2ptdepth0ptwidth\leftmarginʫ229C?\vrule?height2ptdepth0ptwidth\hsize}ʫ2308#1\parʫ231=\nobreak\smallskipʫ232(\endgroupʫ233(\global\noindenttrueʫ234}π7Y֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍑAsUUwellasgeneratingaheading,thesectionmacrogeneratesmarksusedforthepage headingsUUandaTOCentry*.qThemarksareoftheforminawaysimilartothatdiscussedinChapterUU23oftheTL'EXb}'ook.qMoreUUprecisely*,amarkisplacedoneithersideofthesectionhead-ingUUoftheform 1P{hrhs!i}Գ{hlhs!iZ}1whereUUhrhs!iisUUthesectionnumbGerUUthatbelongsontheright-handpage,re ectingthesituationatUUthebGottomofthepage,whereashlhs!iQiswhatbelongsonfollowingleft-handpages. Zʫ235\newtoks\sectiontoks ʫ236\newif\ifsecno?\secnotrueʫ237\def\section#1{ʫ238(\ifsecnoʫ239=\global\advance\secno1?\global\subsecno0\global\subsubsecno0ʫ240(\fiʫ241(\toks0={#1}ʫ242(\mark{{\the\sectiontoks}{\ifsecno\S\thesecno\space\fi\the\toks0?}}ʫ243(\edef\tmp{\ifsecno\noexpand\S\the\secno\space\fi}ʫ244(\global\sectiontoks\expandafter{\tmp#1}ʫ245(\sectionheading{\ifsecno\thesecno\quad\fi?#1}ʫ246(\mark{{\the\sectiontoks}{\the\sectiontoks}}ʫ247(\TOCwrite\TOCentrysection{\ifsecno\thesecno\fi}{#1}ʫ248} SubsecsUUandsubsubsecsusethe\doheadingmacrode nedinpdcfmt.tex.qTheydonot appGearUUinpageheadings,butmayappearintheTOC.ʫ249\def\subsec#1{%ʫ250(\ifsecno?\global\advance\subsecno1 \global\subsubsecno0\fiʫ251(\doheading\medskipamount{\subheadingfonts}{}ʫ252={\ifsecno\thesecno\quad\fi#1}ʫ253(\TOCwrite\TOCentrysubsec{\ifsecno\thesecno\fi}{#1}ʫ254}ʫ255\def\subsubsec#1{%ʫ256(\ifsecno?\global\advance\subsubsecno+1\fiʫ257(\doheading\smallskipamount{\rm}{}{\ifsecno\thesecno\quad\fi#1}ʫ258(\TOCwrite\TOCentrysubsubsec{\ifsecno\thesecno\fi}{#1}ʫ259} TheUUheadlineandfoGotlinearecontrolledbytwo ags.qThecommand\noheadlinetrue suppressesUUtheheadlineforthispage(e.g.,atitlepage).qThetwosided agsayswhetherthedoGcumentUUshouldbeformattedfortwo-sidedUUprinting. Zʫ260\newif\ifnoheadlineʫ261\newif\iftwosidedʫ262\footline={%ʫ263(\ifnoheadlineʫ264=\global\noheadlinefalseʫ265=\hfil\bodyfonts\n\folio\hfilʫ266(\elseʫ267=\hfilʫ268(\fiʫ269} TheUUheadlinevqariesaccordingtowhetheritisaone-sidedpage,aleft-handpageoraright- handUUpage.qOnaone-sidedpage,ithasthema8jorheadline(partordoGcumenttitle)attheleft,andUUthesectiontitleofthe rstsectiononthepageontherightwiththefolio.qOnaleft-handpage,UUthereisthefolioandthema8jorheadline,andonaright-handpagethereisthesectiontitleUUforthelastsectiononthepage,andthefolio. Zʫ270\headline={%ʫ271(\ifnoheadlineʫ272=\hfilʫ273(\elseʫ274=\bodyfontsʫ275=\iftwosidedʫ276R\ifodd\pagenoʫ277C?\hfilʫ278C?\expandafter\firstoftwo\botmark\quadʫ279C?{\bf\n\folio}%ʫ280R\elseπ8 f֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍍʫ281C?{\bf\n\folio}\quad 䍍ʫ282C?\the\majorheadlineʫ283C?\hfilʫ284R\fiʫ285=\elseʫ286R\the\majorheadlineʫ287R\hfilʫ288M\expandafter\secondoftwo\topmark\quadʫ289R{\bf\n\folio}%ʫ290=\fiʫ291(\fiʫ292} p,ʫ293\def\firstoftwo#1#2{#1}ʫ294\def\secondoftwo#1{}7. T ableofcontentsintrinsicsA؍ThisUUsectionde nesthemacrosusedtogenerateatableofcontents.qTheUUentriesarewrit- tenUUtoa lehjobname[i0&.tocinthecurrentdirectory*.qAttheendofthemanuscriptthis lesisclosedUUandthenreadtogeneratethetableofcontents. kHMacrosUUspGecialtotheTOC-generatingsectionhaveUUnamesstartingwith`\TOC-'.ʫ295\newwrite\TOCfile 䍍ʫ296\openout\TOCfile=\jobname.toc֐EntriesUUintheTOC leareoftheformA؍u\TOCentryʷhfo}'oi&{hse}'cnoi}{htitle[ieN}w\{hfolioiQ}whereUU\TOCentryhfo}'oi"isacsname,hse}'cnoi&-issomeautomatically-generatedsectionnumbGerUUlike `1.2',UUhtitle[i isUUthesectiontitleassuppliedbytheuser,andhfolioi!isthefolioforthispage,inarabicUUorlower-caseUUromannumeralform. kHTheyUUaregeneratedwithcallsto\TOCwritelikethisA؍p\TOCwrite?\TOCentryhfo}'oi}{hse}'cnoi}{htitle[ieN}TheUUhse}'cnoi&-isUUevqaluatedwhen\TOCwriteiscalled,whereasthehtitle[i iscarefullywritten withoutUUbGeingexpandedsothatitsexpansionhappenswhentheTOC leisreadin.qThehfolioiCisUUautomaticallyappGendedwhenitiswritten.ʫ297\def\TOCwrite#1#2#3{% 䍍ʫ298(\begingroup\def\n{\string\n}ʫ299(\def\tmp{#3}%ʫ300(\edef\tmp{\string#1{#2}{\expandafter\TOCtrim\meaning\tmp}}ʫ301(\write\TOCfile\expandafter{\tmp{\folio}}\endgroupʫ302}ʫ303\def\TOCtrim#1:->{}֐NowUUwede neallthe`\TOCentry-'macros.ʫ304\def\TOCentrypart#1#2#3{ʫ305(\smallskipʫ306(\dimen0=\hsize?\advance\dimen0\leftmarginʫ307(\moveleft\leftmargin\hbox?to\dimen0{\strut\bf#1.#2\hfil}ʫ308(\smallskipʫ309}ʫ310\def\TOCentrysection#1#2#3{ʫ311(\smallskip\noindent\llap{#1\kern1pc}%ʫ312={\bf?\ignorespaces#2\quad\rm\n{#3}}\parʫ313}ʫ314\def\TOCentrysubsec#1#2#3{ʫ315(\ifvmode?\noindent\else\quad\fiʫ316({#1}'~?{\ignorespaces#2}ʫ317}ʫ318\def\TOCentrysubsubsec#1#2#3{}π9 u֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=8. Printingthefrontmatter%ӍTheUUfrontmatterofthedoGcument|thetitlepage,preface,forword,etc.|mustbGeprin- tedUUlast,withthetableofcontentsUUattheendofthefrontmatter;thisissothatthetableofcontentsUUmaybGeaccumulatedduringtheT'E6Xingofthe le.*qThefrontmatterstartswiththeUUcommand\frontmatterandmaycontain\sectioncommands.qSuchsectionswillbGeunnumbGeredUUandwillnotappearinthetableofcontents.F*orUUashortdoGcument,aseparatetitlepageisprobablyexcessive,andanabstractmaybGepreferableUUtoapreface.qInthiscasethe rstpageafter\frontmattercouldhaveUUthetitleoftheUUdoGcument(withauthoretc.)followedbyanabstract,anycopyrightinformation(orothersmallUUprint),andthecontents(generatedby\endfrontmatter).qInotherwords,somethinglikethis:*4\frontmatterc}'ommandstoprintthetitle,etc.\abstract(thetextoftheabstr}'act\endabstractc}'opyrightinformation,etc.\endfrontmatterF*orUUalongerdoGcument,therewillbeaseparatetitlepageandperhapsapreface.\frontmatter\titlepage(c}'ommandstoprintthetitle,etc.\splittitlepage(printc}'opyrightinformation,etc.\endtitlepage\section{Preface}(textofpr}'eface,etc.\endfrontmatterTheUUmacro\splittitlepagemarksthedivisionbGetweenUUthetitlepage(titlerecto,pagei)andtheUUbackofthetitlepage(titleverso,pageii),whichiswherecopyrightinformationgoGes.qOnaUUone-sideddoGcument,thecopyrightinformationbGelongsonthetitlerecto,becausethetitleversoUUwillbGeblank,so\splittitleinsteaddoes\vfill.SettingUU\pagenonagativemakesitprintinromannumerals.qCalling\secnofalsesup-pressesUUsectionnumbGering.qTheUU rstpagehasnoheadline. ,ʫ319\def\frontmatter{ ʫ320(\write\TOCfile{\string\endinput}ʫ321(\write\TOCfile{\folio}ʫ322(\closeout\TOCfileʫ323(\vfill\superejectʫ324(\ifvoid\partialpage\else?\null\vfill\eject\fiʫ325(\beginthe{frontmatter}ʫ326(\pageno=-1?\secnofalse\noheadlinetrueʫ327(\def\TOCwrite##1##2##3{}ʫ328}鍑TheUUfrontmatteris nshedo withthecontentslist,generatedby\endfrontmatter.qThis readsUUtheTOC le,whichwasclosedattheendofthelastpageofthebGodyUUofthedoGcument.ʫ329\def\endfrontmatter{ʫ330(\section{Contents}ʫ331(\input\jobname.tocʫ332(\vfill\superejectʫ333(\endthe{frontmatter}ʫ334}^ff=  *ItUUhasabGene tforpeoplereadingthedocumentwithabrowser:qpage1ofthedoGcumentis theUU rstpageoftheDVI le,whichmakesselectingagivenpageeasy*,andthetableofcontentsisUUattheveryend,sothebrowsers`gotolastpage'commandcanbGeusedto ndthetableofcontentsUUquickly*.10 ֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍑHere'sUUmacrosforgeneratingthetitlepage|itshoul;denclosecommandstogeneratethe title,UUauthorandpublisherinformationforthedoGcument.qIfitisused,itgoesimmediatelyafter\frontmatter,UUsothatthetitlepageispagei. 1Xʫ335\def\titlepage{ zʫ336(\vfill\ejectʫ337(\beginthe{titlepage}ʫ338(\noheadlinetrueʫ339(\def\splittitlepage{ʫ340=\iftwosided?\vfill\eject\null\vfill\else\vfill\fiʫ341(}ʫ342}ʫ343\def\endtitlepage{ʫ344(\ejectʫ345(\endthe{titlepage}ʫ346}ThisUUabstractenvironmentUUdoGesn'tdoanythingfancy*.ʫ347\def\abstract{ʫ348(\smallskipʫ349(\beginthe{abstract}ʫ350=\setbox\parbox\hbox?to\gridwd{\subheadingfontsAbstract\hfil}ʫ351=\noindenttrue?\bodyfontsʫ352}ʫ353\def\endabstract{ʫ354=\smallskipʫ355(\endthe{abstract}ʫ356}ThisUUconcludesthecoGdethatisincludedonlyindocumentswithTOC. pp#/v9. abbrevs㙍TheUUde nitionsof\ptand\mmworkonlyinmathsmoGde.ʫ357\def\pt{\,{\rm?pt}}ʫ358\def\mm{\,{\rm?mm}}ʫ359\def\MF{{\ifdim\fontdimen1\font>0pt?\mfi\else\mf\fiMETA}\-%ʫ360={\ifdim\fontdimen1\font>0pt?\mfi\else\mf\fiFONT}}ʫ361\def\MSDOS{\leavevmode\hbox{MS-DOS}}9.1.qProgramUUnameswithsmallcapsSomeUUprogramnamesusesmallcapitalsintheirnames.qF*ornormalfontsthereisnopGoint tryingUUtoduplicatethis,sincesmallcapitalsaren'tcommontoallfonts.qButsmallcapitalscomeUU`forfree'withMalvern,sowemightaswellusethem.qThefollowingde nitionsapplytoUUMalvernAfonts. z8p9q?qMalvern_9q_3d ʫ362\def\PS{\csc{PostScript}} zʫ363\def\La{L\negthinspace\flushtop{\char"C1?}} 䍟8p9q?qComputerMo}'dern_9q3#ʫ364\def\PS{PostScript} ㍟pp#Here'sUUarede nitionof\TeX.Thisaddsaspacefactor1000totheend(sothatT'E6XdoGesn't applyUUitsusualheuristicthatafullstopfollowingacapGoitalXisn'tasentenceend).qItalsoloGosensUUupthelogo,producing`T'E6X'ratherthantheusual`TUR'EX'.ThisdesignismoreforgivingofUUchangesinfont(forexample,insanserifitmakes`m#R cmss10T8EX'insteadof`TUR8E6X'). 1Xʫ365\def\TeX{T\kern-0.1em\lower0.5ex\hbox{E}X\spacefactor1000?}TheUUmacro\dfn{...}formatsade ninginstanceofawordorphrase(usuallyusedthe rstUUtimeanewtechnicaltermisintroGduced).qWhengeneratinganindexwithacommand\index,UUthisalsoaddsthephrasetotheindex. 1Xʫ366\begingroup\catcode?\|=12\toks0={\endgroup zʫ367(\def\dfn#1{\ifx\index\UNDEFINED\else\index{#1|INDdfn}\fi{\bi?#1}}ʫ368}?\the\toks011 ֍St[yle lesforthep?dc-macros1.2(1995/03/30)]=ꍑHere'sUUahackforusingemail-styleemphasisusing`asterisking'.qT*extenclosedinmatching asterisksUUisemphasized. ʫ369\declareactivechar\*?\def*#1*{{\it#1\/}}WhenUUdoGcumentingcomputerprogamsitisusefultobeabletopresentdialoguesbetweentheUUuserandthecomputer,withtheuser'scommandsdistinguishedbyaslightlydi erentfont.HereUUwede ne\|htextطi|sothatitbGehaveslike|htextطi|exceptthat\ttbisusedinsteadof\tt.qInUUmathsmoGdeitisstillequivqalentto\Vert.ʫ370\def\|{% ʫ371(\relax\ifmmodeʫ372=\Vertʫ373(\elseʫ374=\begingroupʫ375=\ttb?\setupverbatimʫ376=\catcode?\|=13\let|\endgroupʫ377(\fiʫ378}10. FinallyTheUUde nitionscommontoallstyle lesarereadlast,sothattheycantakeaccountof changesUUto\baselineskip.䍟8p9q?qDo}'cstyle les9qF qǍʫ379\input?pdcdoc.def 䍟8p9q?qLftstyle les9qJÎʫ380\input?pdclft.def ㍟pp#And,UUatlast,a leh lename[i0&.cfgisread,ifitexists.ʫ381\def\inputifexists#1{% ʫ382(\openin15=#1ʫ383(\ifeof15?\else\input#1\fiʫ384(\closein15ʫ385}8p9q?qStyle les9qYkZ ʫ386\inputifexists{h lename[i,_.cfg} ?pp#12;( 2pi cmssdc10$': cmti10 cmmi10ٓRcmr7K`y cmr10