; TeX output 1996.03.05:1312sokMDtGGcmr17Pqage7theadersandfosotersinLdKGXQ cmr12AT[-E;gXPietvXanOostrum2K cmsy89ɺDept.ofComputerScienceѻUtrecrhtUniversity3iMarcrh5,1996.!Kt : cmbx9Abstractэ[o cmr9StandardL5Aacmr6A TuAEXo ersthepagest9ylesow cmss9empty,5plain,headingsandmy- Nheadings.(F:orrsimplepagela9youtsrthesesuce,zbuttheyareratherrigid.NAamorea exiblepagela9youtamaybAeobtainedbyusingthefancyheadingsNpac9k|rage.ThisQarticledescribAeshowtocreateadv|rancedpageheadersandNfoAotersinL5A TuAEXdocumen9tsbyusingthispack|rage.SomeofthetechniquesNdescribAedTarealsoapplicablewithotherpagest9yles.!č5!Nff cmbx12ContentsDK`y cmr101[WhatUUis"m#R cmss10fancyheadings........................2 D2[WhereUUtogetit?j/...........................2D3[UseUUofrfancyheadingsƐ.........................2D4[AUUsimpleexample׍...........................3D5[AnUUexampleoftwo-sidedUUprintingx..................4D6[Rede ningUUplainstyle[ۍ........................4D7[TheUUdefaultlayoutT΍..........................6D8[TheUUscoGoponL5ffٓRcmr7A͉TU>'ExX'smarks#.....................7D9[DictionaryUUstyleheaders .......................9D10[F*ancyUUlayouts<.............................10D11[TwoUUbGookexamples8T.........................11D12[SpGecialUUpagelayoutUUfor oatpages.................13D13[ThoseUUblankpagesz..........................13D14[NUUofrMstylepagenumbGers.....................14D15[WhenUUtochangetheheadersandfoGoters?.............15D16[HeadersUUandfoGotersinducedbythetext..............16D17[AUUmoviec:................................18D18[Thumb-indexes............................19D19[FinalUURemarks............................195ffffv @ -:q% cmsy6L|{Ycmr8AconsiderablepartofthisarticlewÎaswrittenbyGeorgeGratzer(UniversityofManitoba) inX#fcmti8Notices~Amer.4Math.Soc. Thanks,XGeorge!1*so51MLWhatffis#kAHff cmssbx10fancyheadings5The8fancyheadingsmacropackqageallowsyoutocustomizeinL5ffA͉TU>'ExXyourpage 5headersUUandfoGotersinaneasyway*.qYouUUcande ne:D !", cmsy10Nthree-partUUheadersandfoGotersDNdecorativeUUlinesinheadersandfoGotersDNheadersUUandfoGoterswiderthanthewidthofthetextDNmulti-lineUUheadersandfoGotersDNseparateUUheadersandfoGotersforevenandoddpagesDNdi erentUUheadersandfoGotersforchapterpagesDOfS course,youalsohavecompletecontroloverfonts,uppGercaseandlowercase5displays,UUetc.!č52MLWherefftogetit?5Y*ou onlyneedthe le$'ExX2.09style le,ritwillworkwithL5ffA͉TU>'ExX2 b> cmmi10"(.Alsothisarticle5andqthetwoqpackqagesfixmarksandextramarkscanbGefoundthere.D(Thecode5forUUthesepackqagesgiveninthisarticleisasimpli edversion.)53MLUseffoffancyheadings5T*o9usethispackqageinaL5ffA͉TU>'ExX2")doGcument,rbplacethe lefancyheadings.styin5a@directory/folderwhereTU>'ExXcan ndit(normallyintheinputdirectory/folder),5andUUincludeinthepreambleofyourdoGcumentafter5\documentclass{...}5theUUcommands:5\usepackage{fancyheadings}5\pagestyle{fancy}DW*e?canvisualizethepagelayout?wecancreatewithfancyheadingsasfollows:5LeftHeaderUCenteredHeaderRightHeader5ffYnpageUUbGody5ffY5LeftF*oGoterYCenteredFooterYRightFooter2soDTheqLeftHeaderandLeftF*oGoterareleftjusti ed;vtheCenteredHeaderand 5CenteredF*oGoterdJarecentered;ktheRightHeaderandRightF*oGoterarerightjusti-5 ed.DW*eUUde neeachofthesix\ elds"andthetwodecorativelinesseparately*.!č54MLAffsimpleexample5K.?GrantiswritingarepGorttoDeanA.Smith,%on\Theperformanceofnew5graduates"UUwiththefollowingpagelayout:e8%"V cmbx10TheTpQerformanceofnewgraduates5ffYnpageUUbGody5ffY 5F*rom:qK.UUGrant<\dTo:DeanUUA.Smith}X35whereBH\3"isthepagenumbGer.knTheBHtitle:hA\Theperformanceofnewgraduates"5isUUbGold.DThisBisaccomplishedbythesecommandsfollowing\pagestyle{fancy}:5\lhead{}5\chead{}5\rhead{\bfseries?Theperformanceofnewgraduates}5\lfoot{From:?K.Grant}5\cfoot{To:?DeanA.Smith}5\rfoot{\thepage}5\setlength{\headrulewidth}{0.4pt}5\setlength{\footrulewidth}{0.4pt}5(The\thepagemacrodisplaysthecurrentpagenumbGer.\bfseriesisthe5L5ffA͉TU>'ExX2"ZS'sUUwayofselectingbGoldface.)DThis,isnow ne,exceptthatthe rstpagedoGesnotneedalltheseheaders5andfoGoters.OT*oeliminateallbutthecenteredpagenumbGer,issuethecommand5\thispagestyle{plain}5afterUUthe\begin{document}andthe\maketitlecommands. DAlternatively*,UUissue5\thispagestyle{empty}5ifUUyoudonotwantanyheadersorfoGoters.DIncfactthestandardL5ffA͉TU>'ExXclasseshavecthecommand\maketitlede ned5inGsuchawaythata\thispagestyle{plain}isautomaticallyissued.HSoif5youA>&': cmti10doֲwantthefancylayoutonapagecontaining\maketitleyoumustissue5aUU\thispagestyle{fancy}afterthe\maketitle.3%so55MLAnffexampleoftwo-sidedffprinting5Some&(doGcumentclasses,/suchasbook.cls,/printtwo-sided:Z1theevenpagesand 5the oGddpageshave di erentlayouts;otherdoGcumentclassesusethetwoside5optionUUtoprinttwo-sided.DNowletusprinttherepGorttwo-sided.AfLettheabGovepagelayoutbGeused5forUUtheoGdd(right-side)pages,andthefollowingfortheeven(left-side)pages:5TheTpQerformanceofnewgraduates5ffYnpageUUbGody5ffY 54F*rom:qK.UUGrant53To:DeanUUA.Smith5whereUU\4"isthepagenumbGer.DHereUUarethecommands:獑5\lhead[]{\bfseries?Theperformanceofnewgraduates}5\chead{}5\rhead[\bfseries?Theperformanceofnewgraduates]{}5\lfoot[\thepage]{From:?K.Grant}5\cfoot[From:?K.Grant]{To:DeanA.Smith}5\rfoot[To:?DeanA.Smith]{\thepage}5\setlength{\headrulewidth}{0.4pt}5\setlength{\footrulewidth}{0.4pt}DAs#[yousee,-Ythevqaluesofthe eldsfortheeven(left-side)pagesaregivenin5the&squarebrackets.b6Again,/you&mayuse\thispagestyle{plain}forasimple5pageUUlayoutforpage1. `56MLRede ningffplainstyle5Some׭L5ffA͉TU>'ExXcommands,Clike\chapter,usethe\thispagestylecommandto5automatically^switchtotheplainpagestyle,`5thusignoringthepagestylecur-5rentlyine ect.TT*ocustomizeevensuchpagesusethefancyplainpagestyle.5Thispagestylesetsupfancyfornormalpagesandinadditionrede nesthe5pageHstyleplaintoconformmoretothepagestylefancy.F*orinstance,K1ifall5the7pagenumbGers7arebold,youmaywantthisonthe rstpagealso.mY*oudo5thisUUwiththecommand5\pagestyle{fancyplain}5NoteosthatthisdoGesnotissuea\pagestyle{plain}or\thispagestyle{plain}5command.mThis-iseitherdonebyL5ffA͉TU>'ExX(forinstance,cforthe rstpageofa5chapterUUinthebookclass),oryouhavetodoitexplicitlywiththe5\thispagestyle{plain}5command.DTheUUrede nitionoftheplainstyleisdonewiththecommand4.so5\fancyplain{plain_value}{normal_value}5insertedXintoalltheappropriatearguments.|:Asanexample,Yletusrede nethe 5plainUUstylefortherepGortinSection5bymakingthepagenumbGerbold.DTheUUleftheaderde nition:5\lhead[]{\bfseries?Theperformanceofnewgraduates}5changesUUto5\lhead[\fancyplain{}{}]{\fancyplain{}{\bfseries?TheDperformance?ofnewgraduates}}5NoteOthatthe rstargumentofbGoth\fancyplaincommandsisempty*,#since5the:rede nedplainstylehasanemptyleftheader.!(The\fancyplain{}{}is5supGer uousUUbutforsymmetryreasonsitisgiveninthisexample.)DTheleft-andrightfoGoterde nitionschangemore.*F*orinstance,theleftfoGoter5de nitionUUchangesfrom5\lfoot[\thepage]{From:?K.Grant}5toUU5\lfoot[\fancyplain{}{\bfseries?\thepage}]T{\fancyplain{}{From:?K.Grant}}DCarryingUUoutthesechangesforallsix elds,wegetthecoGde:5\lhead[\fancyplain{}{}]{\fancyplain{}{\bfseries?TheDperformance?ofnewgraduates}}5\chead{\fancyplain{}{}}5\rhead[\fancyplain{}{\bfseries?TheperformanceofnewDgraduates}]{\fancyplain{}{}}5\lfoot[\fancyplain{}{\thepage}]{\fancyplain{}{From:?K.Grant}}5\cfoot[\fancyplain{\bfseries?\thepage}{From:K.DGrant}]{\fancyplain{\bfseries?\thepage}{To:DeanA.Smith}}5\rfoot[\fancyplain{}{To:?DeanA.Smith}]{\fancyplain{}%D{\bfseries?\thepage}}5\setlength{\headrulewidth}{0.4pt}5\setlength{\footrulewidth}{0.4pt}DF*orUUthe\fancyplain"pagestyle,thethicknessofthelinesisde nedbyUUr\\plainheadrulewidthUUand\plainfootrulewidth5(bGothldefaultto0pt).Observethatyoumayhavedi erent\fancyplain"page 5stylesUUforevenandoGddpages.DT*ousethe\fancyplain"pagestyle,de nethesemacros;&winthepreamble,5include5\usepackage{fancyheadings}5\pagestyle{fancyplain}5andUUinvokethepagestyle\fancyplain"with5\thispagestyle{plain}5whereUUdesired.59so57MLTheffdefaultlayout5Lethususethebook.clsdoGcumentclassandthedefaultsettingsforfancyhead- 5ings;UUsoweonlyissuethecommands5\usepackage{fancyheadings}5\pagestyle{fancy}5andletfancyheadingstakecareofeverything.NOnthepageswherenewchapters5start,GweCgetacenteredpagenumbGerinthefooter;thereisnoheader,Gandthere5areUUnodecorativelines.DOnUUanevenpage,wegetthelayout:5'p0J cmsl101.2UUEVALUA*TIONrCHAPTER1.qINTRODUCTION5ffYnpageUUbGody5ffY 4DOnUUanoGddpage,wegetthelayout:5CHAPTERUU1.qINTRODUCTIONr1.2EVALUA*TION5ffYnpageUUbGody5ffY 35whereUUtheheadertextisslanteduppGercase.DThisUUdefaultlayoutUUisproGducedbythefollowingcommands:5\lhead[\fancyplain{}{\slshape?\rightmark}]{\fancyplain{}%D{\slshape?\leftmark}}5\chead{}5\rhead[\fancyplain{}{\slshape?\leftmark}]{\fancyplain{}%D{\slshape?\rightmark}}5\lfoot{}5\cfoot{\rmfamily?\thepage}5\rfoot{}DTheUUfollowingsettingsareusedforthedecorativelines:8UU\headrulewidth<0.4pt8UU\footrulewidth<0pt8UU\plainheadrulewidth!0pt8UU\plainfootrulewidth!0ptDTheUUheadertextisturnedintoalluppGercaseinbook.cls.6BZso58MLTheffscos3oponL++AnTL32EdX'smarks5Usually*,9Wfor2WdoGcumentsofclassbookandreport,youmaywanttousechapter 5andsectioninformationintheheadings(chapteronlyforone-sidedprinting),5andfordoGcumentsofclassarticle,sectionandsubsectioninformation(section5onlyl[forone-sidedprinting).L5ffA͉TU>'ExXusesamarkermechanismtoremembGerthe5chapterќandsection(sectionandsubsection)informationforapage;thisis5discussedUUindetailintheL5ffA͉TU>'ExXComp}'anion,Section4.3.1.DThereײaretwoײwaysyoucanuseandchangethehigher-andlower-level5sectioninginformationavqailabletoyou.KThemacros:q \leftmark(higher-level)5andL\rightmark(lower-level)LcontaintheinformationproGcessedbyL5ffA͉TU>'ExX,NJand5youUUcanusethemdirectlyasshowninSection7.DTheQ\leftmarkcontainstheleftargumentofthelast)\markbothonthe5page,the \rightmarkcontainstherightargumentofthe rst\markbothorthe5only3argumentofthe rst&\markrightonthepage.fIfnomarksarepresenton5aUUpagetheyare\inherited"fromthepreviouspage.DY*ouMcanin uencehowchapter,section,andMsubsectioninformation(only5twoOofthem!)_ isdisplayedObyrede ningthe\chaptermark, \sectionmark,5and\subsectionmarkcommands^1|s.]mY*oumustputtherede nitionafterthe5 rstUUcallof\pagestyle{fancy}asthissetsupthedefaults.DLetUUusillustratethiswithchapterinfo.qItismadeupofthreeparts:DNtheUUnumbGer(say*,2),displayedbythemacro\thechapterDNtheUUname(inEnglish,Chapter),displayedUUbythemacro\chapternameDNtheUUtitle,containedinthe rstargumentof\markboth.DFigure^1showssomevqariantsfor\Chapter2.Doitnow"(thelastexample 5isUUappropriateinsomenon-Englishlanguages).DF*orUUthelower-levelUUsectioninginformation,dothesamewith\markright.DSoUUif\Section2.2.Firststeps"isthecurrentsection,then5\renewcommand{\sectionmark}[1]{D\markright{\thesection.\?#1}}5willUUgive\2.2.Firststeps"DRede ningdwthe\chaptermarkand\sectionmarkcommandsmaynotelim-5inateNalluppGercaseness.@E.g.thebibliographywillhaveatitle4ofak,- cmcsc10bibliogra-5phy inYtheheader,asthe\uppercaseisexplicitlygiveninthede nitionof5\thebibliography.>Similarforindexetc.Ifyoudon'twanttorede nethese5commands,UUyoucanuseanuglyhacklikethefollowing:5\lhead{\let\uppercase\relax\rightmark}5\rhead{\let\uppercase\relax\leftmark}DItshouldbGenotedthattheL5ffA͉TU>'ExXmarkingmechanismworks newithchap-5ters(whichalwaysstartonanewpage)andsections(whicharereasonably5long).ItfdoGesnotworkquiteaswellwithshortsectionsandsubsections.This5isUUaproblemwithL5ffA͉TU>'ExX,notwithfancyheadings.5ffv J= "5-:1LܿThereXaresimilarcommandsfor*Cscmtt8paragraphandsubparagraphbuttheyareseldomused.7Iso}'5OYǍFigureT1UUMarkervqariantsX-ffYCoAde: +ߤN cmtt9\renewcommand{\chaptermark}[1]{\markboth{\chaptername\\thechapter.\#1}{}}\renewcommand{\chaptermark}[1]{\markboth{\uppercase{\chaptername}\\thechapter.\#1}{}}\renewcommand{\chaptermark}[1]{\markboth{\uppercase{\chaptername\\thechapter.\#1}}{}}\renewcommand{\chaptermark}[1]{\markboth{#1}{}}\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\#1}{}}\renewcommand{\chaptermark}[1]{\markboth{\thechapter.\\chaptername.\#1}{}}Prin9ts: ChapterT2.Doitno9wCHAPTERT2.Doitno9wCHAPTERT2.DOITNO9WDoTitno9w2.TDoitno9w2.TChapter.Doitno9wffffYDAsanexamplelet'stakeapagelayoutwheretheleftmarksaregeneratedby 5thesectionsandtherightmarksbythesubsections(asisdefaultinthearticle5class).qT*akeUUapagewithsomeshortsections,e.g.5SectionUU1.5subsectionUU1.15subsectionUU1.25SectionUU2.DAsȧtheleftmarkcontainsthelastmarkofthepageitwillbGe\Section2.",5andtherightmarkwillbGe\subsection1.1"asitwillbethe rst޲markofthe5page.jSo?thepageheaderinfowillcombinesection2withsubsection1.1which5isn't/"verynice.e ThebGestyoucandointhesecasesisuseonlythe\rightmarks5andrede ne\sectionmarkaccordingly*.AL5ffA͉TU>'ExXcommand\firstleftmark5wouldUUalsobGeaniceaddition(seetheextramarkspackqageinsection16).DAnother problemwiththemarksinthestandardL5ffA͉TU>'ExXclassesisthatthe5higherDlevelsectioningcommands(e.g.\chapter)call\markbothwithanempty5rightargument.Thismeansthatonthe rstpageofachapter(orasection5inarticlestyle)the\rightmarkwillbGeempty*.)Ifthisisaproblemyoumust5manuallyinsertextra\markrightcommandsorrede nethe\chaptermark5(\sectionmark)scommandstoissuea\markbothcommandwithtwosdecent5parameters.DAsa nalremarkyoushouldalsonotethatthe*formsofthe\chapteretc.5commands^donotQocallthemarkcommands.Soifyouwantyourprefacetoset8 X+so5theǑheaderinfobutnotbGenumberedǑnorbeputinthetableofcontents, you 5mustUUissuethe\markbothcommandyourself,e.g.5\chapter*{Preface\markboth{Preface}{}}DEntering}the\markbothcommandinsidethe\chapter*insuresthatthe5markwillnotbGeseparatedfromthetitlebyapagebreak.MOfcoursewith5\chapterthiswouldn'tbGeaproblemifyouputthemarkcommandafterthe5chapter^1title,`hasthe\chaptercommandstartsatanewpage.ZHoweverwitha5\section*UUitcouldbGedangeroustosay:5\section*{Preface}5\markboth{Preface}{}5asUUapagebreakmayoGccurbetweenUUthetwoUUcommands.!č59MLDictionaryffstyleheaders5Dictionaries/andconcordancesusuallyhave/aheadercontainingthe rstword5de ned:"onthepageorbGoththe rstandthelastwords. /Thiscaneasilybe5accomplishedԥwithfancyheadingsandL5ffA͉TU>'ExX'smarkmechanism.FOfcourseifyou5usethemarksfordictionarystyleheaders,youcannotusethemforchapterand5sectioninformation,soiftherearealsochaptersandsectionspresent,youmust5rede neUUthe\chaptermarkand\sectionmarktomakethemharmless:5\renewcommand{\chaptermark}[1]{}5\renewcommand{\sectionmark}[1]{}DNowRyoudoa\markboth{#1}{#1}foreachdictionaryorconcordanceentry5#1anduse\rightmarkforthe rstentryde nedonthepageand\leftmark5forUUthelastone.DIf\oyouwanttouseaheaderentryoftheform rstword{lastworditwouldbGe5nice+ifthiswouldbGereducedtojusttheform rstwordifbGotharethesame.5This-couldhappGenifthereisjustoneentryonthepage.Inthiscaseatest5mustbGemadetocheckifthemarksarethesame.iHowever,YTU>'ExX'smarksare5strangeܓbGeasts,bwhichcannotbecomparedoutoftheboxwiththeplainTU>'ExX5\ifUUcommands.qF*ortunatelytheifthenpackqageworkswell:5\newcommand{\mymarks}{?\ifthenelse{\equal{\leftmark}{\rightmark}}I{\rightmark}I{\rightmark--\leftmark}}5\lhead[\rm?\mymarks]{\rm\thepage}5\rhead[\rm?\thepage]{\rm\mymarks}DDictionariesDareoftendonewithtwoDcolumns.l Unfortunatelythereisabug5inL5ffA͉TU>'ExX'stwoGcolumnoptionwhichcausessomemarkstobelost.sTIfyouuse5theUUpackqagein gure2,thiswillbGesolved^2|s^3.5X-ffv J= "5-:2LܿThisXisasimpli cationoftheactualco "5-:3LܿTheXmulticolpacÎkageusesasimilartechnique.9 bso}&5OYǍFigureT2UUFixmarksintwoGcolumnUUstyleX-ffY@%fixmarks.sty: %PatchLaTeX'soutputroutinetohandlemarkscorrectlywithtwocolumns.%JoePallas%CorrectedbyPietvanOostrumonFeb5,1993,Oct5,1994\def\@outputdblcol{\if@firstcolumn\global\@firstcolumnfalse%RememberthemarksfromthefirstcolumnX\global\setbox\@leftcolumn\copy\@outputboxX\splitmaxdepth=\maxdimen\cbaddness=10000X\setbox\@outputbox\vsplit\@outputboxto\maxdimenX\xdef\@firstcoltopmark{\topmark}%X\xdef\@firstcolfirstmark{\splitfirstmark}%X\ifx\@firstcolfirstmark\empty\global\let\@setmarks\relax\elseY\gdef\@setmarks{\let\firstmark\@firstcolfirstmark%̰\let\topmark\@firstcoltopmark}%X\fi%Endofchange s,\else\global\@firstcolumntrueX\setbox\@outputbox\vbox{\hboxto\textwidth{\hboxto\columnwidthY{\box\@leftcolumn\hss}\hfil\vrulewidth\columnseprule\hfil!\hboxto\columnwidth{\box\@outputbox\hss}}}\@combinedblfloats%Overridecurrentfirstandtopwiththoseoffirstcolumnifnecessary!\@setmarks%Endofchange!\@outputpage\begingroup\@dblfloatplacement\@startdblcolumn!\@whilesw\if@fcolmade\fi{\@outputpage\@startdblcolumn}\endgroupX\fi} &effY׍510UfdFfancyfflayouts5Y*ou5Scanmakeamulti-line eldwiththe\\command.ItisalsopGossibleto 5put|qextraspaceina eldwiththe\vspacecommand.Notethatifyoudo5thisyouwillprobablyhavetoincreasetheheightoftheheader(\headheight)5orɣofthefoGoter(\footskip),otherwiseyoumaygeterrormessages\Overfull5\vbox'...hasoGccurredwhile\outputisactive".=SeeSection4.1oftheL5ffA͉TU>'ExX5Comp}'anionforUUdetail.DF*oryinstance,thefollowingcoGdewillplacethesectiontitleandthesubsection5titleUUofanarticleintwoUUlinesintheuppGerrighthandcorner:M5\documentclass{article}5\usepackage{fancyheadings}5\pagestyle{fancy}5\addtolength{\headheight}{\baselineskip}5\renewcommand{\sectionmark}[1]{\markboth{#1}{}}5\renewcommand{\subsectionmark}[1]{\markright{#1}}5\rhead{\leftmark\\\rightmark}DY*oucancustomizethedecorativelines.S=Youcanmakethedecorativelinein5theUUheaderquitethickwith5\setlength{\headrulewidth}{0.6pt}10 odso5orUUyoucanmakethedecorativelineinthefoGoterdisappearwith5\setlength{\footrulewidth}{0pt}DThezdecorativelines,themselves,arezde nedinthetwomacros\headrule 5andH\footrule.mF*orinstance,K^ifyouwantadottedlineratherthanasolidline5inUUtheheader,rede nethecommand\headrule:5\renewcommand{\headrule}{\vbox?to0pt{\hboxIto\headwidth{\dotfill}\vss}}!č511UfdTwoffbs3ookexamples5ThehHfollowingde nitionsgiveanapproximationofthestyleusedinL.LampGort's5L5ffA͉TU>'ExXUUbGook.DLampGort'sUUheaderoverhangsUUtheoutsidemargin.qThisisdoneasfollows.DThewidthofheadersandfoGotersis\headwidth,Xwhichbydefaultequalsthe5widthofthetext:++\textwidth.BY*oucanmakethewidthwider(ornarrower)by5rede ning \headwidthwiththe\setlengthand\addtolengthcommands.JT*o5overhangktheoutsidemarginwherethemarginalnotesareprinted,qaddbGoth5\marginparsepUUand\marginparwidthto\headwidthwiththecommands:5\addtolength{\headwidth}{\marginparsep}5\addtolength{\headwidth}{\marginparwidth}5Y*ouUUmustissuethesecommandsafterhthe rst\pagestyle{fancy}or5\pagestyle{fancyplain}UUcommandasthiswillestablishthedefaultfor5\headwidth.DAndUUnowacompletede nitionofLampGort'sbookstyle:5\documentclass{book}5\usepackage{fancyheadings}5\pagestyle{fancyplain}5\addtolength{\headwidth}{\marginparsep}5\addtolength{\headwidth}{\marginparwidth}5\renewcommand{\chaptermark}[1]{\markboth{#1}{}}5\renewcommand{\sectionmark}[1]{\markright{\thesection\?#1}}5\lhead[\fancyplain{}{\bfseries\thepage}]D{\fancyplain{}{\bfseries\rightmark}}5\rhead[\fancyplain{}{\bfseries\leftmark}]D{\fancyplain{}{\bfseries\thepage}}5\cfoot{}DNoticeN>thatthe\chaptermarkand\sectionmarkcommandshaveN>bGeenre-5de nedUUtoeliminatethechapternumbGersandtheuppercaseness.DF*orUUthesecondexample,wetaketheAU>'M S-L5ffA͉TU>'ExXbGook.DChapterUUpageshaveUUnoheadersorfoGoters.qSowedeclare5\thispagestyle{empty}11 z?so5forUUeverychapterpage,andwedonotneedfancyplain. DChapteroandsectiontitlesappGearintheform:2.DOoITNOW,osowehave5toUUrede ne\chaptermarkand\sectionmarkasfollows(seeSection8):D5\renewcommand{\chaptermark}[1]%D{\markboth{\uppercase{\thechapter.\?#1}}{}}5\renewcommand{\sectionmark}[1]%D{\markright{\uppercase{\thesection.\?#1}}}DInaneven-header,IthepagenumbGerisprintedastheLeftHeaderandthe5chapter?infoastheRightHeader;inanoGdd-header,thesectioninfoisprintedas5theLeftHeaderandthepagenumbGerastheRightHeader.2TheCenteredHeaders5areUUempty*.qTherearenofoGoters.DThere'isadecorativelineintheheader.Itis0.5ptwide,\soweneedthe5commands:5\setlength{\headrulewidth}{0.5pt}5\setlength{\footrulewidth}{0pt}DTheBfontusedintheheadersis9ptbGoldHelvetica.~ThePSNFSSsystem5by1SebastianRahtzusestheshort(KarlBerry)namephvforHelvetica,8sothis5fontUUisselectedwiththecommands:5\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont5(SeeYSections7.6.1and11.9.1oftheL5ffA͉TU>'ExXComp}'anion.)Letusde neashort- 5handUUforthis:5\newcommand{\helv}{%D\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}DNowUUwearereadyforthepagelayout:D5\lhead[\helv?\thepage]{\helv\rightmark}5\rhead[\helv?\leftmark]{\helv\thepage}5\cfoot{}DPuttingUUthisalltogether:5\documentclass{book}5\usepackage{fancyheadings}5\pagestyle{fancy}5\renewcommand{\chaptermark}[1]%D{\markboth{\uppercase{\thechapter.\?#1}}{}}5\renewcommand{\sectionmark}[1]%D{\markright{\uppercase{\thesection.\?#1}}}5\setlength{\headrulewidth}{0.5pt}5\setlength{\footrulewidth}{0pt}5\newcommand{\helv}{%D\fontfamily{phv}\fontseries{b}\fontsize{9}{11}\selectfont}5\lhead[\helv?\thepage]{\helv\rightmark}5\rhead[\helv?\leftmark]{\helv\thepage}5\cfoot{}12 pso512UfdSps3ecialffpagelayoutfffor oatpages5SomepGeoplewanttohaveaspeciallayoutfor oatpages(pagesonlycontaining 5 oats).As[HthesepagesaregeneratedautonomicallybyL5ffA͉TU>'ExX,\theuserdoGesn't5havefanycontroloverthem."7Thereisno\thispagestylefor oatpagesandany5changes0ofthepagestylewillatleastalsoa ectthepagebGeforethe oatpage.5WithUUfancyheadingsyoucangivethefollowingde nitioninyourpreamble^4|s:95\makeatletter5\def\iffloatpage#1#2{\if@fcolmade?#1\else#2\fi}5\makeatotherDInUUeachoftheheader-orfoGoter eldsyoucannowspGecifyD\iffloatpage{vqalueUUfor oatpage}{valueforotherpages}DY*ou canevenusethistogetridofthedecorativelineon oatpagesonlyby5de ning:5\renewcommand{\headrulewidth}{\iffloatpage{0pt}{0.4pt}}DNote=that\renewcommandisusedratherthantheusual\setlengthcom-5mandtochangethe\headrulewidth.5aChangingitwith\setlengthwillnot5work^5|s.DAfter this\renewcommanditwillnolongerbGepossibletochangetheparam-5eter\headrulewidthwith\setlength, 9youwillhavetouse\renewcommandin5theUUrestofthedoGcument.DSometimes%youmaywanttochangethelayoutalsoforpagesthatcontaina5 oatUUonthetopofthepageora oatonthebGottomofthepage.DEnterthefollowingde nitionsinastyle le(orbGetween\makeatletterand5\makeatotherUUinyourpreamble:5\let\latex@makecol\@makecol5\def\@makecol{\let\topfloat\@toplist\let\botfloat\@botlist\latex@makecol}5\def\iftopfloat#1#2{\ifx\topfloat\empty?#2\else#1\fi}5\def\ifbotfloat#1#2{\ifx\botfloat\empty?#2\else#1\fi}DY*oun=canthenusethecommands\iftopfloatand\ifbotfloatsimilarto5\iffloatpage.DNote:$Marksin oatswillnotbGevisibleinL5ffA͉TU>'ExX'soutputroutine,Lsoitis5notAusefultoputmarksin oats.KSothereiscurrentlynowaytoleta oat(e.g.5aUU gurecaption)in uencethepageheaderorfoGoter. O513UfdThoseffblankpages5Inthebookclasswhentheopenanyoptionisnotgivenorinthereportclass5whentheopenrightoptionisgiven,ZchaptersstartatoGdd-numberedpages,Zhalf5ofthetimecausingablankpagetobGeinserted.cSomepeoplepreferthispage5toeJbGecompletelyempty*,iGi.e.withoutheadersandfooters.Thiscannotbedone5(ffv J= "5-:4LܿIfuyÎouhave-s6cmss8fancyheadingsversion1.5orhigherthecommandsdescrib "5-:5LܿItwÎasprobablyadumbdecisiontode nethewidthparametersaslengths.==ThereisnoneedXtoandImaÎychangethisinafutureversionofwfancyheadings13àso5withΖ\thispagestyleasthiscommandwouldhavetobGeissuedonthepr}'evious 5page.qThereUUis,however,UUnomagicnecessarytogetthisdone:5\clearpage{\pagestyle{empty}\cleardoublepage}DAs(the\pagestyle{empty}isenclosedinagroupitonlya ectsthepage5thatVmaybGegeneratedbythe\cleardoublepage.Y*oucanofcourseputthe5abGoveinaprivqatecommand._AIfyouwanttohavethisdoneautomaticallyat5each\chapterstartorwhenyouwantsomeothertextonthepagethenyoumust5rede neUUthe\cleardoublepagecommand.5\makeatletter5\def\cleardoublepage{\clearpage\if@twoside?\ifodd\c@page\else?\hbox{}?\vspace*{\fill}?\begin{center}IThis?pageintentionallycontainsonlythissentence.?\end{center}?\vspace{\fill}?\thispagestyle{empty}?\newpage?\if@twocolumn\hbox{}\newpage\fi\fi\fi}5\makeatother!č514UfdNffofMstylepagenumbs3ers5Some{@doGcumentwriterspreferthepagestobenumbered{@asnofB]mwheremis5theLnumbGerofpagesinthedocument.+Thereisapackqagenofm.styavqailable,5butosomeversionsofitaredefective,andmostdon'tworkwithfancyheadings5bGecauseq"theytakeoverthecompletepagelayout.%F*orL5ffA͉TU>'ExX2"*5thereisapackqage5lastpageUUavqailablewhichyoucanusewithfancyheadingsasfollows:5\usepackage{lastpage}5...5\cfoot{\thepage\?of\pageref{LastPage}}DIf youarestillusingL5ffA͉TU>'ExX2.09andyouarenotabletoswitchtoL5ffA͉TU>'ExX2"5youUUcande neaL5ffA͉TU>'ExX2.09compatiblelastpage.styasfollows:5\let\origenddocument=\enddocument5\def\enddocument{\clearpage\if@filesw?{\addtocounter{page}{-1}?\immediate\write\@mainauxI{\string\newlabel{LastPage}{{}{\thepage}}}}\origenddocument}DWith[sometrickery^6Zβthe[vqalueoftheLastPagelabGelcanbeusedtomake5di erentheadersorfoGotersonthelastpageofadocument.N8E.g.ifyouwantthe5foGoter1ofeveryoddpage,8exceptifitisthelastone,tocontainthetext\please5turnUUover",thiscanbGedoneasfollows:5X-ffv J= "5-:6LܿIfyÎouhavearecentversionoftheifthenpackagethetricksarenotnecessaryJ.0Youcan thenXtestthe\pageref{LastPage}directlyJ.14so5\usepackage{lastpage} 5\usepackage{ifthen}5...5\makeatletter5\def\LastPagenum{\@ifundefined{r@LastPage}{0}{\expandafterI\expandafter\expandafter\@cdrI\csname?r@LastPage\endcsname\@nil\null}}5\makeatother5\rfoot{\ifthenelse{\isodd{\value{page}}?\and\notI\value{page}=\LastPagenum}{please?turnover}{}} q515UfdWhenfftochangetheheadersandfos3oters?5SometimesyouwanttochangetheheaderorfoGoterlayoutinthecourseof5aDdoGcument.?vSomeofthesechangescanbGeaccomplishedbyusingthemark5mechanismȀasmaybGeseeninsection8and16.IHowever,Ksometimeswewant5a/moredrasticchange,7e.gtochangethepagenumbGeringfromromantoarabic5(withu\pagenumbering),}tochangeoneofthefancyheadings eldsortochange5to^anotherpagestyle.SometimesyoumaybGesurprisedto ndthechangeto5oGccurutooearly*.'9Ingeneraltheabovementionedchangestakee ectimmediately*,5i.e.onthepagethatiscurrentlybGeingbuilt.bIfyouwantthechangetotake5e ectratthenextpageyoumustmakesurethatthecurrentpageis nished.W&In5mostcasesthiscanbGedonebyissuinga\clearpagecommandbeforeanyof5theabGovementionedchanges.VKIfthisisnotpGossibleyoucanusetheafterpage5packqageUUwith:5\afterpage{\lhead{new?value}}yor\afterpage{\pagenumbering{roman}}.5Y*oucannotuse\afterpagetochangethe\pagestyleasthecommandsissued5by\afterpageareloGcalinagroup,#3andthe\pagestylecommandmakesonly5loGcalschanges.G The\pagenumberingandthefancyheadingscommandsmake5globalUUchangessotheywillwork,aswillthe\thispagestylecommand.DItϣshouldbGenotedthatalthoughthefancyheadingscommandslike\lhead5takee ectimmediately*,'thisdoGesnotmeanthatany\vqariables"usedinthese5commands{getthevqaluetheyhave{attheplacewherethesecommandsaregiven.5E.g.if\cfoot{\thepage}isgiventhepagenumbGerthatwillbeinsertedinthe5foGoter"lisnotthepagenumber"lofthepagewherethiscommandisgiven,Ubut5rather{@thepagenumbGer{@oftheactualpagewherethefooterisconstructed.Of5courseforthepagenumbGerthisiswhatyouexpect,'butitisalsotrueforother5commands.DSocifyouhaveabGookcwhereeachchapteriswrittenbyadi erentauthor5and6 youwantthenameoftheauthorinthelowerleft-handcorneryoucanuse5theUUfollowingcommands:5\newcommand{\TheAuthor}{}5\newcommand{\Author}[1]{\renewcommand{\TheAuthor}{#1}}5\lfoot{\TheAuthor}5andstarteachchapterwiththecommand\Author{Real?Name}. Ifhowever,5thehauthornamewouldbGechangedbGeforeapageiscompletedthewrongauthor5coulddcomeinthefoGoter..ThiswouldbethecaseifyougavetheabGovecommand5b}'eforethea\chaptercommandratherthanafterit.PvAnothersourceofproblems15hso5isthefactthatTU>'ExX'soutputroutineproGcessescommandsahead,Rsoitmay 5already5haveproGcessedsomecommandsthatproducetextthatwillappearon5theUUnextpage.qSeethenextsectionforanexample.!č516UfdHeadersffandfos3otersinducedbythetext5W*ehaveseenhowwecanuseL5ffA͉TU>'ExX'smarkstogetinformationfromthedoGc-5umentJcontentstotheheadersandfoGoters.Themarksmechanismistheonly5reliablemechanismthatyoucanusetogetchanginginformationtothehead-5ersorfoGoters.3pThisisbecauseL5ffA͉TU>'ExXmaybeprocessingyourdocumentahead5bGeforeUUdecidingtobreakthepage.DSometimesvethetwovemarksthatL5ffA͉TU>'ExXo ersarenotenough.Anexampleis5theUUfollowing:NIfԇasolutiontoanexercisegoGesacrossapagebreak,SthenIfwouldNlike0 tohave\(Continuedonnextpage...)"'at0 thebGottomoftheN rstpageand\(Continued...)"atthetopinthemarginoftheNnextUUpage.DY*oumcannotuseL5ffA͉TU>'ExX'smarkmechanismsforthisifyoualsowanttouse5chapterUUandsectioninformation.DThe[coGdefrom gure3constitutesapackqagethatgivesyoutwoextramarks5thatUUcanbGeusedinthissituation^7|s.qHereisawayUUtousethispackqage:5\usepackage{extramarks}5...5\pagestyle{fancy}5\lhead{\firstxmark}5\rfoot{\lastxmark}5...5\extramarks{}{Continued?onnextpage\ldots}5Some?textthatmayormaynotcrossapageboundary...5\extramarks{Continued\ldots}{}DNotethatthe\extramarkscommandmustbGeclosetothetext,i.enoempty5lines0(paragraphbGoundaries)shouldintervene. WOtherwise0thepagemaybe5brokenUUatthatbGoundaryandtheextramarkswouldcomeonthewrongpage.DTherearetwonewmarksthatcanbGeusedinthepagelayoutwiththispack-5age:PIfcommandsoftheform\extramarks{m1|s}{m2}aregiven\firstxmark5givesyyouthe rstm1Dvqalueand\lastxmarkgivesyouthelastm2Dvqalueof5theVLcurrentpage.XItalsogivesyouthe\firstleftmarkand\lastrightmark5commandsUUthatcomplementthestandardL5ffA͉TU>'ExXmarks.DT*ostressthepGointthatmarksarethecorrectwaytodothis,letmegive5youUUa\solution"thatwillnotwork^8|s:5X-ffv J= "5-:7LܿAfterUIJmadethispacÎkageIdiscoÎveredUapacÎkagesecret.stythatdo "5-:8LܿActuallyLthereisanotherwÎayLbutitrequirestÎwoLL#A TAEMXpasses:' yÎoucanput\labelcommandsXb'ExXffY@%extramarks.sty \def\@leftmark#1#2#3#4{#1}\def\@rightmark#1#2#3#4{#2}\def\markboth#1#2{{\def\protect{\noexpand\protect\noexpand}\let\label\relax\let\index\relax\let\glossary\relax\expandafter\@markboth\@themark{#1}{#2}\mark{\@themark}}\if@nobreak\ifvmode\nobreak\fi\fi}\def\markright#1{{\def\protect{\noexpand\protect\noexpand}\let\label\relax\let\index\relax\let\glossary\relax\expandafter\@markright\@themark{#1}\mark{\@themark}}\if@nobreak\ifvmode\nobreak\fi\fi}\def\@markright#1#2#3#4#5{\gdef\@themark{{#1}{#5}{#3}{#4}}}\def\@markboth#1#2#3#4#5#6{\gdef\@themark{{#5}{#6}{#3}{#4}}}\def\leftmark{\expandafter\@leftmark\botmark{}{}{}{}}\def\rightmark{\expandafter\@rightmark\firstmark{}{}{}{}}\def\firstleftmark{\expandafter\@leftmark\firstmark{}{}{}{}}\def\lastrightmark{\expandafter\@rightmark\botmark{}{}{}{}}\def\@themark{{}{}{}{}}\def\extramarks#1#2{{\def\protect{\noexpand\protect\noexpand}\let\label\relax\let\index\relax\let\glossary\relax\expandafter\@markextra\@themark{#1}{#2}\mark{\@themark}}\if@nobreak\ifvmode\nobreak\fi\fi}\def\@markextra#1#2#3#4#5#6{\gdef\@themark{{#1}{#2}{#5}{#6}}}\def\firstxmark{\expandafter\@firstxmark\firstmark{}{}{}{}}\def\topxmark{\expandafter\@firstxmark\topmark{}{}{}{}}\def\lastxmark{\expandafter\@lastxmark\botmark{}{}{}{}}\def\@firstxmark#1#2#3#4{#3}\def\@lastxmark#1#2#3#4{#4} &effY5\lhead{Continued} 5\rfoot{Continued?onnextpage\ldots}5Some?textthatmayormaynotcrossapageboundary...5\lhead{}5\rfoot{}DY*ouλmaybGetemptedtothinkthatthe rst\lheadand\rfootwillbein5e ectwhenTU>'ExXbreaksthepageinthemiddleofthetext,(andthelastones5whennjthepagebreaksafterthetext.kThisisnottrueasthewholeparagraph5(includingRthelastde nitions)willbGeprocessedbeforeTU>'ExXconsidersthepage5break,soҚatthetimeofthepagebreakthelastde nitionsaree ective,whether5thepagebreakoGccursinsidethetextoroutsideofit.Puttingaparagraph5bGoundaryJbetweenthetextandthelastde nitionswillnotworkeither,bGecause5you+don'twantthe rstde nitionstobGeine ectwhenTU>'ExXdecidestobreak5theTpageexactlyatthisbGoundary*.JActuallythemarksmechanismwasinvented5toUUgetridofthesekindsofproblems.DIntheabGoveexamplethetext\Continued"appearsinthepageheader.5ItmaybGenicertoputitinthemargin.Thiscanbeeasilyaccomplishedby17Nso5pGositioning1itata xedplacerelativetothepageheader.InplainTU>'ExXyou 5would3useaconcoGctionof\hbox?to0pt,\vboxto0pt,\hskip,\vskip,\hss5and\vssbutfortunatelyL5ffA͉TU>'ExX'spictureenvironmentgivesamuchcleaner5way?todothis.uInordernottodisturbthenormalheaderlayout?weputthe5text2inazero-sizedpicture.+_GenerallythisisthebGestway2topositionthings5on xedplacesonthepage.Y*oucanthenalsousethenormalheadings.See5alsoUUsection18foranotherexampleofthistechnique.5\setlength{\unitlength}{\baselineskip}5\lhead{\begin{picture}(0,0)?\put(-2,-3){\makebox(0,0)[r]{\firstxmark}}?\end{picture}\leftmark}DThisLsolutioncanofcoursealsobGeusedforthefooter.Besuretoputthe5picturevasthe rstthinginleft-handsideentriesandlastinright-handside5ones.DFinallyryoumaywanttoput\(Continued...)"dinrthetextJratherthanin5the!headerorthemargin.+Thenyouhavetousetheafterpagepackqage.+W*e5alsoUUdecidetomakeaseparateenvironmentforit.5\newenvironment{continued}{\par?\extramarks{}{Continued?onnextpage\ldots}?\afterpage{\noindent\firstxmark\vspace{1ex}}?}{\extramarks{(Continued\ldots)}{}\par}DItisabitdangeroustouse\firstxmarkoutsidethepagelayoutroutine,5butapparentlywith\afterpagethisworks.VIfyouwouldneedtheinformation5furtheroninthepageyoumustremembGerthestateofthemarksinyourown5vqariable.qY*ouTcandothisinoneofthefancyheadings elds.F*orexampleifyou5wanttoaddsomethingafterthebrokenpieceoftextyoucanusethefollowing:5\newcommand{\mysaved}{}5\newenvironment{continued}{\par?\extramarks{}{Continued?onnextpage\ldots}?}{\extramarks{(Continued\ldots)}{}\par\vspace{1ex}\mysaved}5\lhead{\leftmark}5\chead{\ifthenelse{\equal{\lastxmark}{}}?{\gdef\mysaved{}}?{\gdef\mysaved{\noindent[Continued?frompreviouspage]}}}DIfLyouwanttoincludeoneofthemarksorothervqaryinginformationinthe5savedUUtext,youmustuse\xdefratherthan\gdef. @517UfdAffmovie5Ifryouputateachpageonthesameplaceapicturethatslightlychangesfrom5pagetopageyoucangetamovie-likee ectby ippingthroughthepages.]Y*ou5can bcreatesuchamovieeasilywithfancyheadings.F*orsimplicityweassume5thateachpictureisinapGostscript(EPS): lecalledpichni.pswherehniis5theưpagenumbGerưandthatweusetheepsfpackqage.T*oputthemovieinthe5righthandsideUUbGottomcornerthefollowingwillwork:18so5\rfoot{\setlength{\unitlength}{1mm}\setlength{\epsfxsize}{2cm} ?\begin{picture}(0,0)I\put(5,0){\epsfbox{pic\thepage.ps}}?\end{picture}}ԍDNotice=thatthe\unitlengthand\epsfxsizeparametershouldbGesetlo-5callyFsinthefancyheadings eldinordertoavoidFsunwantedinterferencefrom5theirUUvqaluesinthetext.!518UfdThumb-indexes5SomerailroadguidesandexpGensivebibleshavesocalledthumb-indexes,i.e.5there\oaremarksonthesidesofthepagesthatindicatewherethechaptersare.5Y*oucancreatethesebyprintingblackblobsinthemarginofthepages.kThe5verticalC8pGositionshouldbedeterminedbythechapternumbGerorsomeother5counter.MaAsthepGositionisindependentofthecontentsofthepage,weprint5theseblobsaspartoftheheaderinazero-sizedpictureasdescribGedinthe5previousUUsection.DOfəcoursewehavetotakecareoftwo-sidedprinting,andwemaywantto5have)anindexpagewithalltheblobsinthecorrectpGosition.BThesolution5requires\somehand-tuningtogettheblobsnicelyspacedoutvertically*.UFor\the5applicationthatIhadtherewere12sections,soImadetheblobs18mmapart,5i.e.9Qmmblobseparatedby9mmwhitespace.InordertoavoidQcalculations5they>haresetinapictureenvironment>hwiththe\unitlengthsetto18mm.Page5numbGersaresetintheheadersattheoutersides,andtheblobsareattached5toqthese."InthisexamplethesectionnumbGersqareusedtopositiontheblobs,5butySyoucanreplacethiswithanynumericvqalue.See gure4fortheresulting5overviewUUpageand gure5forthecoGde.b5dFYǍFigureT4UUThumb-indexoverviewpageX-ffY jqfe"* fe!]M fefefe"*H31؟ CF1PIntroGduction؟8V CF372P37TheUU rstyear؟Q CFL҉3PL҉SpGecialisation ffffY*ٍ519UfdFinalffRemarks5ThecommandstospGecifytheheadersandfootersarequitecomplicatedwhen5even-^5andoGdd-numbered^5pageshavedi erentlayoutandwewantalsotorede ne5theplainpagestyle.9Thereforeforversion2ofyfancyheadingsIvwillcreate19ھsoX'5RYǍFigureT5UUThumb-indexcoGdeX-ffY@\setlength{\unitlength}{18mm} \newcommand{\blob}{\rule[-.2\unitlength]{2\unitlength}{.5\unitlength}}\newcommand\rblob{\thepage s,\begin{picture}(0,0)X\put(1,-\value{section}){\blob} s,\end{picture}}\newcommand\lblob{% s,\begin{picture}(0,0)X\put(-3,-\value{section}){\blob} s,\end{picture}% s,\thepage}\pagestyle{fancy}\cfoot{}\newcounter{line}\newcommand{\secname}[1]{\addtocounter{line}{1}% s,\put(1,-\value{line}){\blob} s,\put(-7.5,-\value{line}){\Large\arabic{line}} s,\put(-7,-\value{line}){\Large#1}}\newcommand{\overview}{\thepage s,\begin{picture}(0,0)X\secname{Introduction}X\secname{Thefirstyear}X\secname{Specialisation}...etc... s,\end{picture}}\begin{document}\rhead{\overview}\mbox{}\newpage%Thisproducestheoverviewpage\rhead{}%Frontmattermayfollowhere\clearpage\rhead[\rightmark]{\rblob}\lhead[\lblob]{\leftmark}... ffffY5an]easieruserinterface(theoldcommandswillstillwork).ZT*ogiveyouthe 5oppGortunityUUtocomment,hereisapreview:DThe<*headand*footcommandswillbGereplacedbycommands\fancyhead5and\fancyfoot.=@Thesewillhaveanoptionalargumentthatselectswhich elds5toA)change,E2e.g.kLA$fortheleft eld,EA$forevenpages,etc.kSee gure6.Selectors5canbGecombinedso\fancyhead[LE,RO]{text}willde nethe eldforboththe5leftheaderonevenpagesandtherightheaderonoGddpages.kTherewillalso5bGefanewcommand\fancypagestylethatallowsyouto(re)de nepagestyles.5One:useforthisistorede nethepagestyletplainsothe\fancyplainstu is5no+0longernecessary*.cAnotheruseistoallowspGecialpagestylestobGeusedwith5thispagestyleUUormaybGefor oatpages.DTheUUcomplicatedexampleinsection6willthenbGecome:20崠so(5YǍFigureT6UUSelectorsX-ffY5L̍zffcfdͤ ff͟fdEű ffEvenUUpage  ff ͤ ff͟fdO ffOddUUpageŶ ffffc񡍍ͤ ff͟fdLSꡄ ffLeftUU eld"b ffͤ ff͟fdC[ ffCenterUU eld"* ffͤ ff͟fdR7y ffRightUU eld ffffc񡍍ͤ ff͟fdT[ ff oatUUatT*op ҟ ffͤ ff͟fdB~ ff oatUUatBottom͟ ffͤ ff͟fdF ͡ ffFloatUUpagew| ffffc񎎎:2ffY5\fancyhead{}?%clearallfields 5\fancyhead[LE,RO]{\bfseries?Theperformanceofnewgraduates}}5\fancyfoot[LO,CE]{From:?K.Grant}5\fancyfoot[RE,CO]{To:?DeanA.Smith}5\fancyfoot[RO,LE]{\bfseries?\thepage}5\setlength{\headrulewidth}{0.4pt}5\setlength{\footrulewidth}{0.4pt}5\fancypagestyle{plain}{%5\fancyhead{}5\fancyfoot[C]{\bfseries?\thepage}}DAsUUyoucanseethisismuchlesscomplicated.DIfUUyouwanttocommentpleaseusee-mailorregularmailto:5PietUUvqanOostrum5Dept.UUofComputerScience5UtrechtUUUniversity5P*.O.UUBox80.08953508UUTBUtrecht,UUTheNetherlands5T*elephone:q+31UU30531806Telefax:q+31305137915Internet:qpiet@cs.ruu.nl21soލ 卑5IndexG"ލ5afterpage.sty,UU15,185bible,UU19 5BIBLIOGRAPHY,UU75blankUUpage,145\cfoot,UU35\chaptermark,UU7,85\chaptername,UU75\chead,UU35\cleardoublepage,UU145\clearpage,UU14,155concordance,UU95Continued...,UU165dictionary*,UU95epsf,UU185\extramarks,UU16,175extramarks.sty,UU25\firstleftmark,UU8,165fixmarks.sty,UU2,105 oatUUpage,135\footrulewidth,UU3,6,115\footskip,UU105ftp,UU25\headheight,UU105\headrulewidth,UU3,6,105\headwidth,UU115\ifbotfloat,UU135\iffloatpage,UU135ifthen,UU95\iftopfloat,UU135INDEX,UU75lastpage.sty,UU145\lastrightmark,UU165\leftmark,UU6,75\lfoot,UU35\lhead,UU35\maketitle,UU35margin,UU175\marginparsep,UU115\marginparwidth,UU11ލmovie,UU18 multi-line,UU10nofm.sty,UU14pageUUbreak,17pageUUstylechanges,UU15empty,UU14fancy,UU2fancyplain,UU4,5,20plain,UU4,20\pagenumbering,UU15picture,UU18\plainfootrulewidth,UU5,6\plainheadrulewidth,UU5,6\rfoot,UU3\rhead,UU3\rightmark,UU6,7\sectionmark,UU7\subsectionmark,UU7\thechapter,UU7\thispagestyle,UU3thumb-index,UU19twoside,UU4\uppercase,UU7,822N; -s6cmss8,- cmcsc10+ߤN cmtt9*Cscmtt8'p0J cmsl10&': cmti10%"V cmbx10$ cmmi10K`y cmr10ٓRcmr7p