; TeX output 1997.02.22:2208Q9 PҊDtGGcmr17The7tGGcmss17geometryq:pacqkagelύqXQ cmr12HideoUmekiR߆T cmtt12umeki@ssel.toshiba.co.jp'&kre1997/02/17(v1.05).A/:Nff cmbx121GIntros3ductionq/:K`y 3 cmr10Teo6=setdimensionsforpagela!yout6=isnotstraigh!tforward.aFor6=instance,Z2wheny!ouhaveto /:writefadoMcumen!taccordingtothefollowinglayoutinstructions:JTheACtotalallo!wableACwidthofthetextareais6.5inc!heswideby8.75incheshigh.JThe rstlineoneac!hpageshouldbMegin1.2inchesfromthetopedgeofthepage.JThefleftmarginshouldbMe0.5inc!hfromtheleftedge./:y!ouRwill ndagapbMetweencomprehensiblelayoutparametersandtheL|{Ycmr8AGT,[wEB Xdimensionsto/:bMefspeci ed.Inthiscase,y!ouneedtospecifyJ 3 cmmi10"0'չuserstocustomizethepagelayout(pagesize)byaneasy/:andO exibleuserin!terface\geometry.OnecanrealizetheabMovepagelayoutbyputting,/:forfexample,J\usepackge{geometry}J\geometry{body={6.5in,8.75in},top=1.2in,left=2cm,nohead}/:ѹinfthepream!ble.@:Thename p0J 3 cmsl10geometrycomesfrom-geometryoptionforspMecifyingasizeandlocationof/:afwindo!winXWindowSystem.InthesystemonecansetawindowwiththeoptionlikeJ-geometry150x200+8-10./:Settingawindo!wontheroMotwindowcorrespMondstosettingatotaltextarea,͗including/:pagefheaderandfoMoter,onthepaperinthispac!kdDage;forinstance,J\geometry{width=7in,height=9in,top=.5in,bottom=1in}.@:The1*previousv!ersionofthegeometrypackdDagewascalledpagesize,Sbutwasrenamed/:bMecause{thepac!kdDageistotallyrewrittentousetheLٺAGT,[wEB Xv2z"/keyval1;interfaceandtointro-/:duceanewalgorithmfordeterminingla!youtparameters.ҐAsaresult,Gthepac!kdDageprovides/:more exibleuserin!terfaceandnewspMeci cationforpagelayoutwhileitdoMesnotworkin/:LٺAGT,[wEB X209fen!vironment./:џ ݉ff! L͍ {-=Aacmr61a!o cmr9The$ߤN cmtt9geometorypac9k|ragerequiresDavidCarlisle'skeyvalpack|rage,whichcanbAefoundinthegraphics bundleTofstandardL5A TuAEXc.2"5" cmmi9"(kpac9k|rages.(!1*Q9 $9 /:2GPageffstructureforlayoutq/:ѹTeoZTrealizeastraigh!tforwardZTsettingforpagela!yout,PtheZTfollowingpagestructureisintro- /:duced:A/papMer0con!tainsatotalbodyandmargins.zThetotalbodyconsistsofabodye,Rha/:header,4a'foMoterandamarginalnote,whic!hisoptional.Themarginsarede nedasaleft-,/:righ!t-,ftop-2fjandbMottom-margin.#DCaꍍfyr%m#R 3 cmss10papMer:(KtotalfbModyTandma!rgins PtotalfbMody:(Khead,fbModyTandfoot(plusma!rginalnotes)\ŀma!rgins:(Kleft-,fright-,top-andbMottom-ma!rgin/:ѹAʣbMody0isalsocalledatextarea,Tbsizeofwhic!hcanbMemodi edb!y\textwidthand /:\textheight.@:Thefla!youtpartsandthecorrespMondingdimensionsinthepackdDagearelistedbMelow.oPU=Dimensionsfingeometry fP!arts+$Horizon!talJVeerticalJ՟zffR$B 0papMerepaperwidthYpaperheighttotalfbModyewidthfortotalwidthYheightfortotalheight3abModyetextwidthYtextheightffR$Bleftfma!rgineleftforlmargin EZ|Prightfma!rginerightforrmargin EZ|ntopfma!rgin |YtopfortmarginbMottomfma!rgin |YbottomforbmarginffR$B}ma!rginalfnotesemarginparwidthfplus emarginparsep EZ| 4Ehead |Yheadheightfplus Yheadsep7foMot |YfootskipffR$BoP/:ѹFeorTexample,eleftmeansahorizon!taldistancebMetweentheleftedgeofapapMerandthatof/:afbModye.@:ThefdimensionsforpapMer,totalbodyandmarginsha!vefthefollo!wingrelations.#DpaperwidthY=Eleft3+nwidth!*+nright paperheightY=Etop+nheight'[Թ+nbottom/:ѹSuppMose}papersizeispre-de ned,_ift!wodimensionsoutofthreeintheright-handside /:ofeac!hequationaregiven,RtheremnantdimensionwillbMedetermined.Thepartitioning/:algorithmfineac!hdirectionisasfollows.Z0~ JSettings$Results9Mff8)~ ff8) \Aleft8width^rightleft)pwidthX:rightz㍍Mff8)~ ff8)\QtopheightTbMottom_top'wheightR1KbMottomMff8)~ ff8)a.*4*7y*=m3|{`^%!m7Default. ` 4*7y*e / 7y*ù=,!", 3 cmsy10)bRz22> \kRz27Cen!tering.` 4* e / bRz32> _ ` ą e /Z|+nheadsep-~+nfootskipww/:ѹEac!hofthesevendimensionsintheright-handsideoftheabMoveequationscorrespMonds/:totheordinaryLٺAGT,[wEB Xcon!trolsequencewiththesamename.vThewidthde nitioncan/:bMeTswitc!hedbyincludempoption.LThedimensionsforaheaderandafoMotercanbealso/:con!trolledfbyoptions(moMdekeys)aswellasdirectspMeci cationoflengths.?yRU MoMdefk!eys#@E ectsL>azffyM noheadZܪsetsfheadheight=0pt,headsep=0ptattheend. nofootZܪsetsffootskip=0ptattheend.noheadfootZܪequalsfnohead,nofootincludempZܪincludesfmarginalnotesinde ningwidth.Zܪwidthf:=textwidth+marginparsep+marginparwidthZܪ(fwidth:=textwidthfordefault,includemp=false)ffyMHq/:3GTheffuserinterface񍍑/:&N cmbx123.1MGeneralfeatures/:ѹTheg\geometrycommandtak!esonemandatoryargumentwhichspMeci esneccessary(not/:all)parametersforthepagela!yout.tTheargumentconsistsofalistofcomma-separated/:options,whic!hbarespMeci edbythekeyvalinterface:Vh'': 3 cmti10keyi7=hvalueҡi!N.AThespMeci cationof/:\geometryfargumen!thasthefollowingfeatures:?JչOptionflistwithm!ultiplelinesisallowed.?JչAn!yfspacesbMetweenwordsareignored.?JչOptionsfarebasicallyorder-indepMenden!t. J(Therefaresomeexceptions.SeeSection8fordetails.)/:Feorfinstance,O(y!oudon'tneedoptions\-ta3-tlandscape"Fto thef`dvips'command./:NotetthatthedvipsoptioncannotbMeusedasanargumen!tof\geometry,9andcannotbe/:resetfb!yresetoptionsincedvipsoptionexecutesan\AtBeginDocumentcommand."hՍ/:6GCon gurationff leq/:ѹYeou4cansetupacon guration lesothatsomeofthebMoolean4optionsandpac!kdDageones/:alw!ays۞takee ect,(evenifnotspMeci edinthedocumen!t/packdDageoptionorargumentof/:\geometryXcommand.Teodothis,]proMducea legeometry.cfg(lik!egraphics.cfgof/:graphicsfpac!kdDage)containing,forinstance,J\ExecuteOptions{a4paper,dvips}/:ѹandfinstallittotheTEXINPUTSdirectorywithgeometry.sty."hՍ/:7GOptionffpriority BEbʍRlo!w2! ܹhigh-(priorit!y#) ćUm fu cmex10(.ԡhscale ԡvscaleAR)Lk< (.width height7ޟ)B< (.textwidth textheightN)Xv;,>&UmC& f8  f> f< f> f:aꍍhead(height) headsepfoot(skip)C&d9 d>d= d>d;p# <  > :aꍍ6nohead 6nofoot6noheadfootC&Ojګ9 Oj>Oj= Oj>Oj;Z!:D0/:ѹFeorfinstance,J\geometry{hscale=0.8,textwidth=7in,width=18cm}/:ѹisfthesameas\geometry{textwidth=7in}./:8GOrderffdeps3endenceq/:ѹThe%optionsarebasicallyorder-indepMenden!t,tbuttherearesomeexceptions. 3Whenthe /:redundan!t`orrepMeatedspeci cationisgiv!en,the nalsettingisdependen!tontheorderof/:appMearancefintheargumen!t.Feorinstance,J\geometry{verbose=true,verbose=false}/:ѹob!viouslyfresultsinverbose=false.@:Herefisanotherexample.Ify!ousetJ\geometry{hmargin={3cm,2cm},left=1cm},/:thefleft-marginiso!verwrittenfbyleft=1cm.Asaresult,itisequivdDalenttoJ\geometry{hmargin={1cm,2cm}}.(!7WQ9 $9 @:ѹThelresetoptionshouldprecedeallotheroptionsinthe\geometryargumen!t.Ifyou /:setJ\geometry{nohead,reset}f,/:thenfnoheadtak!esnoe ect."A/:9GDefaultffSettingsq/:ѹOncey!ouwrite\usepackage{geometry}inthepreamble,^thepackdDagewillpMerformthe/:defaultfla!yout,namelyscale={0.8,0.9},byinternalexecutionof\geometry{}./:10O5Examplesq?JչSetthewidthofthetotalbModytobMe70%thatofthepaper.]`ThetotalbodyisthenJcen!teredfhorizontallye.Eitherofthefollowingsettingswilldo.b\geometry{hscale=0.7},b\geometry{width=0.7\w},b\geometry{hdivide={*,0.7\w,*}},b\geometry{hmargin=0.15\w},b\geometry{left=0.15\w},b\geometry{left=.15\w,right=0.15\w},b\geometry{rmargin=.15\w},bandfsoon.JInfthiscase,thedefaultisusedforv!erticallayout:vscale=0.9.?JչSet(theheigh!tofthetotalbMody(tobMe10in,Hthebottom-margin3cm,HandthewidthJdefault.Thenfthetop-marginisautomaticallycalculatedinthepac!kdDage.b\geometry{height=10in,bottom=2cm},b\geometry{bmargin=2cm,totalheight=10in},b\geometry{vdivide T={*,10in,2cm}},bandfsoon.?JչSettheleft-,righ!t-,andtop-margin3cm,2cmand2.5inrespMectivelye.ThepageheaderJisfnotused.ThebModyfis40linesoftextinheigh!t.b\geometry{left=3cm,right=2cm,nohead,top=2.5in,textheight=40\baselineskip},b\geometry{hmargin={3cm,2cm},head=0pt,headsep=0ptmtmargin=2.5in,textheight=40\baselineskip},bandfsoon.?JչIncludefmarginalnoteswhenadjustinghorizon!talpartition.b\geometry{includemp},b\geometry{includemp=true},bandfsoon.?JչMoMdifyTthewidthofmarginalnotesto3cm.andincludemarginalnoteswhenadjustingJhorizon!talfpartitionb\geometry{marginpar=3cm},b\geometry{marginparwidth=3cm},b\geometry{marginpar=3cm,includemp},f(redundan!t!)bandfsoon.(!8 cݠQ9 $9 ?JչUsefA5papMerinlandscapemodeandafullscaleofthepaperasthebodye.b\geometry{a5paper,landscape,scale=1.0,noheadfoot}, b\geometry{landscape=TRUE,paper=a5paper,mnoheadfoot,total={\w,\h}},bandfsoon."A/:11O5Acknowledgementsq/:ѹIw!ould$liketothankFeriedrichFlenderandPietvdDanOostrumfortheirpMointingoutbugs/:andfsuggestingimpro!vements./:12O5Theffimplementationq/:ѹThefactualcoMdeofmgeometry,pac!kdDageisasfollows.@:Thisfpac!kdDagerequiresDavidCarlisle'skeyvalpackdDage.3zպ1:1 !", cmsy10h*m#R cmss10package&G"i 3zպ2:1\RequirePackage{keyval}[1995/09/21]@:ѹIn!ternalfswitchesaredeclared.3zպ3:1\newif\ifGeom@verbose3zպ4:1\newif\ifGeom@landscape3zպ5:1\newif\ifGeom@nohead3zպ6:1\newif\ifGeom@nofoot3zպ7:1\newif\ifGeom@includemp3zպ8:1\newif\ifGeom@@includemp3zպ9:1\newif\ifGeom@sethtotal/:Ѻ10:1\newif\ifGeom@setvtotal/:Ѻ11:1\newif\ifGeom@setwidth/:Ѻ12:1\newif\ifGeom@setheight/:Ѻ13:1\newif\ifGeom@settextwidth/:Ѻ14:1\newif\ifGeom@settextheight/:Ѻ15:1\newif\ifGeom@setlmargin/:Ѻ16:1\newif\ifGeom@setrmargin/:Ѻ17:1\newif\ifGeom@settmargin/:Ѻ18:1\newif\ifGeom@setbmargind\Geom@checknum/:ѹThefcoun!terfordeterminingdirectionalpartitionisdeclared./:Ѻ19:1\newcount\Geom@checknumAm\Geom@Oheadheight d\Geom@Oheadsep g\Geom@Ofootskip/:ѹThe@originallengthsof\headheight,g \headsepand\footskiparesa!ved.2These@lengths /:arefsetev!erytime\geometryiscalled./:Ѻ20:1\edef\Geom@Oheadheight{\the\headheight} /:Ѻ21:1\edef\Geom@Oheadsep{\the\headsep}/:Ѻ22:1\edef\Geom@Ofootskip{\the\footskip}Aa\Geom@Dhscale Aa\Geom@Dvscale/:ѹThefdefaultvdDaluesforthehorizon!talandverticalscaleCmarede ned./:Ѻ23:1\def\Geom@Dhscale{0.8}/:Ѻ24:1\def\Geom@Dvscale{0.9}s\Geom@Dtwosideshift/:ѹThefdefaultfort!wosideshiftfisfde ned./:Ѻ25:1\def\Geom@Dtwosideshift{20pt}/:ѹThe(moMdesandthe agareinitializedhere.sButtwosideshouldnotberesetherebecause /:itfma!ybMeinheritedfromtheclassoption./:Ѻ26:1\Geom@verbosefalse /:Ѻ27:1\Geom@landscapefalse/:Ѻ28:1\Geom@noheadfalse(!9 mQ9 $9 /:Ѻ29:1\Geom@nofootfalse /:Ѻ30:1\Geom@includempfalse/:Ѻ31:1\Geom@@includempfalse%?checkingsettingof|includemp|Kv[\Geom@reset􍍑/:Ѻ32:1\def\Geom@reset{%/:Ѻ33E+\@twosidefalse/:Ѻ34E+\@mparswitchfalse/:Ѻ35E+\Geom@verbosefalse/:Ѻ36E+\Geom@landscapefalse/:Ѻ37E+\Geom@noheadfalse/:Ѻ38E+\Geom@nofootfalse/:Ѻ39E+\Geom@includempfalse/:Ѻ40E+\Geom@@includempfalse}@:ѹThefoptionk!eysarede nedbMelow.eO`paper' [`papername'/:paper>orpapernametak!espapMernameasitsvdDalue.AAvailable>papernamesarelistedbelo!w.􍍑/:Ѻ41:1\define@key{Geom}{paper}{\setkeys{Geom}{#1}}/:Ѻ42:1\let\KV@Geom@papername\KV@Geom@paperAU`a1paper' AU`a2paper' AU`a3paper' AU`a4paper' AU`a5paper' AU`b1paper' AU`b2paper' AU`b3paper' AU`b4paper' AU`b5paper' Aa`letterpaper' ^`legalpaper' Ёj`executivepaper'/:ѹThirteenfstandardpapMernamesarea!vdDailable.􍍑/:Ѻ43:1\define@key{Geom}{a1paper}[true]{\def\Geom@paper{a1paper}}/:Ѻ44:1\define@key{Geom}{a2paper}[true]{\def\Geom@paper{a2paper}}/:Ѻ45:1\define@key{Geom}{a3paper}[true]{\def\Geom@paper{a3paper}}/:Ѻ46:1\define@key{Geom}{a4paper}[true]{\def\Geom@paper{a4paper}}/:Ѻ47:1\define@key{Geom}{a5paper}[true]{\def\Geom@paper{a5paper}}/:Ѻ48:1\define@key{Geom}{b1paper}[true]{\def\Geom@paper{b1paper}}/:Ѻ49:1\define@key{Geom}{b2paper}[true]{\def\Geom@paper{b2paper}}/:Ѻ50:1\define@key{Geom}{b3paper}[true]{\def\Geom@paper{b3paper}}/:Ѻ51:1\define@key{Geom}{b4paper}[true]{\def\Geom@paper{b4paper}}/:Ѻ52:1\define@key{Geom}{b5paper}[true]{\def\Geom@paper{b5paper}}/:Ѻ53:1\define@key{Geom}{letterpaper}[true]{\def\Geom@paper{letterpaper}}/:Ѻ54:1\define@key{Geom}{legalpaper}[true]{\def\Geom@paper{legalpaper}}/:Ѻ55:1\define@key{Geom}{executivepaper}[true]{\def\Geom@paper{executivepaper}}[`papersize' ^`paperwidth' Aa`paperheight'􍍑/:Ѻ56:1\define@key{Geom}{papersize}{\Geom@branch{#1}{paperwidth}{paperheight}}/:Ѻ57:1\define@key{Geom}{paperwidth}{\setlength\paperwidth{#1}%/:Ѻ58\let\Geom@paper\undefined}/:Ѻ59:1\define@key{Geom}{paperheight}{\setlength\paperheight{#1}%/:Ѻ60\let\Geom@paper\undefined}O`total' O`width' R`height' ^`totalwidth' Aa`totalheight'􍍑/:Ѻ61:1\define@key{Geom}{total}{\Geom@branch{#1}{width}{height}}/:Ѻ62:1\define@key{Geom}{width}{\Geom@sethtotaltrue\Geom@setwidthtrue%/:Ѻ63\edef\Geom@width{#1}}/:Ѻ64:1\define@key{Geom}{height}{\Geom@setvtotaltrue\Geom@setheighttrue%/:Ѻ65\edef\Geom@height{#1}}/:Ѻ66:1\let\KV@Geom@totalwidth\KV@Geom@width/:Ѻ67:1\let\KV@Geom@totalheight\KV@Geom@heightL`body' L`text' [`textwidth' ^`textheight'􍍑/:Ѻ68:1\define@key{Geom}{body}{\Geom@branch{#1}{textwidth}{textheight}}/:Ѻ69:1\let\KV@Geom@text\KV@Geom@body/:Ѻ70:1\define@key{Geom}{textwidth}{\Geom@sethtotaltrue\Geom@setwidthtrue%/:Ѻ71\Geom@settextwidthtrue%/:Ѻ72\edef\Geom@textwidth{#1}}/:Ѻ73:1\define@key{Geom}{textheight}{\Geom@setvtotaltrue\Geom@setheighttrue%/:Ѻ74\Geom@settextheighttrue%/:Ѻ75\edef\Geom@textheight{#1}}kT10 xQ9 $9 O`scale' R`hscale' R`vscale'/:Ѻ76:1\define@key{Geom}{scale}{\Geom@branch{#1}{hscale}{vscale}} /:Ѻ77:1\define@key{Geom}{hscale}{\Geom@sethtotaltrue\edef\Geom@hscale{#1}}/:Ѻ78:1\define@key{Geom}{vscale}{\Geom@setvtotaltrue\edef\Geom@vscale{#1}}NR`margin' AU`hmargin' AU`vmargin' AU`lmargin' AU`rmargin' AU`tmargin' AU`bmargin' L`left' O`right' AI`top' R`bottom'/:Ѻ79:1\define@key{Geom}{margin}{\Geom@branch{#1}{lmargin}{tmargin}%/:Ѻ80\Geom@branch{#1}{rmargin}{bmargin}}/:Ѻ81:1\define@key{Geom}{hmargin}{\Geom@branch{#1}{lmargin}{rmargin}}/:Ѻ82:1\define@key{Geom}{vmargin}{\Geom@branch{#1}{tmargin}{bmargin}}/:Ѻ83:1\define@key{Geom}{lmargin}{\Geom@setlmargintrue\edef\Geom@lmargin{#1}}/:Ѻ84:1\define@key{Geom}{rmargin}{\Geom@setrmargintrue\edef\Geom@rmargin{#1}}/:Ѻ85:1\define@key{Geom}{tmargin}{\Geom@settmargintrue\edef\Geom@tmargin{#1}}/:Ѻ86:1\define@key{Geom}{bmargin}{\Geom@setbmargintrue\edef\Geom@bmargin{#1}}/:Ѻ87:1\let\KV@Geom@left\KV@Geom@lmargin/:Ѻ88:1\let\KV@Geom@right\KV@Geom@rmargin/:Ѻ89:1\let\KV@Geom@top\KV@Geom@tmargin/:Ѻ90:1\let\KV@Geom@bottom\KV@Geom@bmarginNR`divide' AU`hdivide' AU`vdivide'/:ѹPro!videfusefulwaystopartitioneachdirectionofpapMer./:Ѻ91:1\define@key{Geom}{divide}{\Geom@divideParser{#1}{lmargin}{width}{rmargin}%/:Ѻ92\Geom@divideParser{#1}{tmargin}{height}{bmargin}}/:Ѻ93:1\define@key{Geom}{hdivide}{\Geom@divideParser{#1}{lmargin}{width}{rmargin}}/:Ѻ94:1\define@key{Geom}{vdivide}{\Geom@divideParser{#1}{tmargin}{height}{bmargin}}NR`offset' AU`hoffset' AU`voffset'/:Ѻ95:1\define@key{Geom}{offset}{\Geom@branch{#1}{hoffset}{voffset}}/:Ѻ96:1\define@key{Geom}{hoffset}{\setlength\hoffset{#1}}/:Ѻ97:1\define@key{Geom}{voffset}{\setlength\voffset{#1}}N^`headheight' AU`headsep' X`footskip' L`head' L`foot'/:Ѻ98:1\define@key{Geom}{headheight}{\Geom@noheadfalse\setlength\headheight{#1}}/:Ѻ99:1\define@key{Geom}{headsep}{\Geom@noheadfalse\setlength\headsep{#1}}*ͺ100:1\define@key{Geom}{footskip}{\Geom@nofootfalse\setlength\footskip{#1}}*ͺ101:1\let\KV@Geom@head\KV@Geom@headheight*ͺ102:1\let\KV@Geom@foot\KV@Geom@footskipNЁj`marginparwidth' d`marginparsep' [`marginpar'/:ѹTeopk!eeporder-indepMendence,sifincludempisnotfoundatthispoin!toftime,sincludempis /:setftrue.*ͺ103:1\define@key{Geom}{marginparwidth}%*ͺ104tP{\ifGeom@@includemp\else\Geom@includemptrue\fi%*ͺ105y \setlength\marginparwidth{#1}}*ͺ106:1\define@key{Geom}{marginparsep}%*ͺ107tP{\ifGeom@@includemp\else\Geom@includemptrue\fi%*ͺ108y \setlength\marginparsep{#1}}*ͺ109:1\let\KV@Geom@marginpar\KV@Geom@marginparwidthNd`twosideshift'*ͺ110:1\define@key{Geom}{twosideshift}{\@twosidetrue\def\Geom@twosideshift{#1}}O`reset'/:resetϹoptionresetsthemoMdesandtheincludemp agtoprev!entthemfrombeinginherited. /:Thisfshouldprecedeallotheroptionsifitisused.*ͺ111:1\define@key{Geom}{reset}[true]%% *ͺ112tP{\lowercase{\expandafter\csname?if#1\endcsname*ͺ113P\Geom@reset\fi}}NAU`verbose' AU`twoside' [`includemp' R`nohead' R`nofoot' ^`noheadfoot' [`landscape' X`portrait'*ͺ114:1\define@key{Geom}{verbose}[true]%%*ͺ115tP{\lowercase{\expandafter\csname?if#1\endcsname*ͺ116P\Geom@verbosetrue\else\Geom@verbosefalse\fi}}kT11 Q9 $9 *ͺ117:1\define@key{Geom}{twoside}[true]%% *ͺ118tP{\lowercase{\expandafter\csname?if#1\endcsname*ͺ119y \@twosidetrue\@mparswitchtrue*ͺ120y \else\@twosidefalse\@mparswitchfalse\fi}}*ͺ121:1\define@key{Geom}{includemp}[true]%%*ͺ122tP{\Geom@@includemptrue*ͺ123y \lowercase{\expandafter\csname?if#1\endcsname*ͺ124P\Geom@includemptrue\else\Geom@includempfalse\fi}}*ͺ125:1\define@key{Geom}{nohead}[true]%%*ͺ126tP{\lowercase{\expandafter\csname?if#1\endcsname*ͺ127P\Geom@noheadtrue\else\Geom@noheadfalse\fi}}*ͺ128:1\define@key{Geom}{nofoot}[true]%%*ͺ129tP{\lowercase{\expandafter\csname?if#1\endcsname*ͺ130P\Geom@nofoottrue\else\Geom@nofootfalse\fi}}*ͺ131:1\define@key{Geom}{noheadfoot}[true]%%*ͺ132tP{\lowercase{\expandafter\csname?if#1\endcsname*ͺ133P\Geom@noheadtrue\Geom@nofoottrue\else*ͺ134P\Geom@noheadfalse\Geom@nofootfalse\fi}}*ͺ135:1\define@key{Geom}{landscape}[true]%%*ͺ136tP{\lowercase{\expandafter\csname?if#1\endcsname*ͺ137P\Geom@landscapetrue\else\Geom@landscapefalse\fi}}*ͺ138:1\define@key{Geom}{portrait}[true]%%*ͺ139tP{\lowercase{\expandafter\csname?if#1\endcsname*ͺ140y \Geom@landscapefalse\else\Geom@landscapetrue\fi}}@:ѹP!ackdDagefoptionsaredeclared.*ͺ141:1\DeclareOption{verbose}{\Geom@verbosetrue}*ͺ142:1\DeclareOption{a1paper}{\setkeys{Geom}{a1paper}}*ͺ143:1\DeclareOption{a2paper}{\setkeys{Geom}{a2paper}}*ͺ144:1\DeclareOption{a3paper}{\setkeys{Geom}{a3paper}}*ͺ145:1\DeclareOption{a4paper}{\setkeys{Geom}{a4paper}}*ͺ146:1\DeclareOption{a5paper}{\setkeys{Geom}{a5paper}}*ͺ147:1\DeclareOption{b1paper}{\setkeys{Geom}{b1paper}}*ͺ148:1\DeclareOption{b2paper}{\setkeys{Geom}{b2paper}}*ͺ149:1\DeclareOption{b3paper}{\setkeys{Geom}{b3paper}}*ͺ150:1\DeclareOption{b4paper}{\setkeys{Geom}{b4paper}}*ͺ151:1\DeclareOption{b5paper}{\setkeys{Geom}{b5paper}}*ͺ152:1\DeclareOption{letterpaper}{\setkeys{Geom}{letterpaper}}*ͺ153:1\DeclareOption{legalpaper}{\setkeys{Geom}{legalpaper}}*ͺ154:1\DeclareOption{executivepaper}{\setkeys{Geom}{executivepaper}}*ͺ155:1\DeclareOption{portrait}{\Geom@landscapefalse}*ͺ156:1\DeclareOption{landscape}{\Geom@landscapetrue}*ͺ157:1\DeclareOption{twoside}{\@twosidetrue}*ͺ158:1\DeclareOption{nohead}{\Geom@noheadtrue}*ͺ159:1\DeclareOption{nofoot}{\Geom@nofoottrue}*ͺ160:1\DeclareOption{noheadfoot}{\Geom@noheadtrue\Geom@nofoottrue}*ͺ161:1\DeclareOption{includemp}{\Geom@@includemptrue\Geom@includemptrue}*ͺ162:1\DeclareOption{dvips}{\AtBeginDocument{\AtBeginDvi{%*ͺ163E+\special{papersize=\the\paperwidth,\the\paperheight}}}}*ͺ164:1\DeclareOption*{\PackageWarningNoLine{geometry}*ͺ165P{Unknown?option`\CurrentOption'}}/:portraitfisadefaultoption.*ͺ166:1\ExecuteOptions{portrait}/:ѹAloMcalcon guration lema!yde nemoreoptions.^IfasitewantsadefaultpapMer,itneeds /:tofput\ExecuteOptions{a4paper}inageometry.cfg le.*ͺ167:1\InputIfFileExists{geometry.cfg}{}{}/:ѹOptionsvareproMcessedintheorderthattheyappearintheoption-lists.Firsttheglobal /:options,fandthentheloMcalones.*ͺ168:1\ProcessOptions*kT12 Q9 $9 g\Geom@checkbool d\Geom@checkdef/:ѹMacrosfforprin!toutofpagelayoutparameters.*ͺ169:1\def\Geom@checkbool#1{% *ͺ170O%\csname?ifGeom@#1\endcsname#1\else\fi}*ͺ171:1\def\Geom@checkdef#1{%*ͺ172O%\@ifundefined{Geom@#1}{---}{\@nameuse{Geom@#1}}}Aa\Geom@det@one/:ѹDeterminef#4b!y#1(papMerwidthorpaperheight),#2and#3.*ͺ173:1\def\Geom@det@one#1#2#3#4{%?determine#4.*ͺ174O%\setlength\@tempdima{\@nameuse{paper#1}}*ͺ175O%\setlength\@tempdimb{\@nameuse{Geom@#2}}*ͺ176O%\addtolength\@tempdima{-\@tempdimb}*ͺ177O%\setlength\@tempdimb{\@nameuse{Geom@#3}}*ͺ178O%\addtolength\@tempdima{-\@tempdimb}*ͺ179O%\ifdim\@tempdima<\z@*ͺ180d\Geom@warning{`#4'?resultsinNEGATIVE(\the\@tempdima).*ͺ181~ ^^J\@spaces?Parametersof`#2'and`#3'shouldbeshortened}*ͺ182O%\fi*ͺ183O%\expandafter\edef\csname?Geom@#4\endcsname{\the\@tempdima}}Aa\Geom@det@two/:ѹDeterminef#2and#3b!y#1(papMerwidthorpaperheight)and#1(widthorheight).*ͺ184:1\def\Geom@det@two#1#2#3{%?determine#2and#3.*ͺ185O%\setlength\@tempdima{\@nameuse{paper#1}}*ͺ186O%\setlength\@tempdimb{\@nameuse{Geom@#1}}*ͺ187O%\addtolength\@tempdima{-\@tempdimb}*ͺ188O%\divide\@tempdima\tw@*ͺ189O%\ifdim\@tempdima<\z@*ͺ190d\Geom@warning{`#2'?and`#3'resultinNEGATIVE(\the\@tempdima).*ͺ191P^^J\@spaces?Parameterfor`#1'shouldbeshortened}*ͺ192O%\fi*ͺ193O%\expandafter\edef\csname?Geom@#2\endcsname{\the\@tempdima}*ͺ194O%\expandafter\edef\csname?Geom@#3\endcsname{\the\@tempdima}}Aa\Geom@det@all/:ѹDeterminefdirectionalpartition.*ͺ195:1\def\Geom@det@all[#1]#2#3#4{%*ͺ196O%\Geom@checknum\z@*ͺ197O%\if#1h*ͺ198_P\ifGeom@setlmargin\advance\Geom@checknum4\relax\fi*ͺ199_P\ifGeom@sethtotal?\advance\Geom@checknum2\relax\fi*ͺ200_P\ifGeom@setrmargin\advance\Geom@checknum1\relax\fi*ͺ201O%\else*ͺ202_P\ifGeom@settmargin\advance\Geom@checknum4\relax\fi*ͺ203_P\ifGeom@setvtotal?\advance\Geom@checknum2\relax\fi*ͺ204_P\ifGeom@setbmargin\advance\Geom@checknum1\relax\fi*ͺ205O%\fi*ͺ206O%\ifcase\Geom@checknumD?%?0:(*,*,*)*ͺ207_P\if#1h*ͺ208tP\Geom@warning{Horizontal?partitionissetdefault\space*ͺ209(hscale=\Geom@Dhscale)}*ͺ210tP\edef\Geom@width{\Geom@Dhscale\paperwidth}*ͺ211_P\else*ͺ212tP\Geom@warning{Vertical?partitionissetdefault\space*ͺ213(vscale=\Geom@Dvscale)}*ͺ214tP\edef\Geom@height{\Geom@Dvscale\paperheight}*ͺ215_P\fi*ͺ216_P\Geom@det@two{#2}{#3}{#4}*ͺ217O%\or%?1:(*,*,S)goto(5)*ͺ218_P\Geom@warning{`#2'?and`#3'notunique.#3<=#4}*ͺ219_P\expandafter\edef\csname?Geom@#3\endcsname{\@nameuse{Geom@#4}}*ͺ220_P\Geom@det@one{#2}{#3}{#4}{#2}*ͺ221O%\or\Geom@det@two{#2}{#3}{#4}%?2:(*,S,*)*ͺ222O%\or\Geom@det@one{#2}{#2}{#4}{#3} %?3:(*,S,S)kT13Q9 $9 *ͺ223O%\or%?4:(S,*,*)goto(5) *ͺ224_P\Geom@warning{`#2'?and`#4'notunique.#4<=#3}*ͺ225_P\expandafter\edef\csname?Geom@#4\endcsname{\@nameuse{Geom@#3}}*ͺ226_P\Geom@det@one{#2}{#3}{#4}{#2}*ͺ227O%\or\Geom@det@one{#2}{#3}{#4}{#2} %?5:(S,*,S)*ͺ228O%\or\Geom@det@one{#2}{#2}{#3}{#4} %?6:(S,S,*)*ͺ229O%\or%?7:(S,S,S)goto(5)*ͺ230_P\Geom@warning{Redundant?specificationin`#1'-direction.*ͺ231^^J\@spaces?`#2'(\@nameuse{Geom@#2})isignored}*ͺ232_P\Geom@det@one{#2}{#3}{#4}{#2}*ͺ233O%\else\fi}p\Geom@divideParser/:ѹThefmacroforparsing(h,v)divideoptions.*ͺ234:1\def\Geom@divideParser#1#2#3#4{%*ͺ235O%\def\Geom@star{*}*ͺ236O%\@tempcnta\z@*ͺ237O%\@for\Geom@tmp:=#1\do{%*ͺ238i\expandafter\KV@@sp@def\expandafter\Geom@frag\expandafter{\Geom@tmp}*ͺ239i\edef\Geom@value{\Geom@frag}*ͺ240i\ifcase\@tempcnta\relax%?cnta==0*ͺ241\edef\Geom@key{#2}*ͺ242i\or\edef\Geom@key{#3}*ͺ243i\else \edef\Geom@key{#4}*ͺ244i\fi*ͺ245i\@nameuse{Geom@set\Geom@key?false}*ͺ246i\ifx\empty\Geom@value\else*ͺ247i\ifx\Geom@star\Geom@value\else*ͺ248~ \setkeys{Geom}{\Geom@key=\Geom@value}*ͺ249i\fi\fi*ͺ250i\advance\@tempcnta\@ne*ͺ251O%}*ͺ252O%\let\Geom@star\relax}^\Geom@branch/:ѹThefmacrofor`branc!hing'orduplicatingaoption.*ͺ253:1\def\Geom@branch#1#2#3{%*ͺ254O%\@tempcnta\z@*ͺ255O%\@for\Geom@tmp:=#1\do{%*ͺ256i\KV@@sp@def\Geom@frag{\Geom@tmp}*ͺ257i\edef\Geom@value{\Geom@frag}*ͺ258i\ifcase\@tempcnta\relax%?cnta==0*ͺ259\setkeys{Geom}{#2=\Geom@value}*ͺ260i\or%?cnta==1*ͺ261\setkeys{Geom}{#3=\Geom@value}*ͺ262i\else\fi*ͺ263i\advance\@tempcnta\@ne*ͺ264O%}*ͺ265O%\ifnum\@tempcnta=\@ne*ͺ266i\setkeys{Geom}{#2=\Geom@value}*ͺ267i\setkeys{Geom}{#3=\Geom@value}*ͺ268O%\fi}/:ѹVeariousfpapMersizearede ned.*ͺ269:1\@namedef{Geom@a1paper}{%*ͺ270E+\setlength\paperwidth{595mm}\setlength\paperheight{841mm}}*ͺ271:1\@namedef{Geom@a2paper}{%*ͺ272E+\setlength\paperwidth{420mm}\setlength\paperheight{595mm}}*ͺ273:1\@namedef{Geom@a3paper}{%*ͺ274E+\setlength\paperwidth{297mm}\setlength\paperheight{420mm}}*ͺ275:1\@namedef{Geom@a4paper}{%*ͺ276E+\setlength\paperwidth{210mm}\setlength\paperheight{297mm}}*ͺ277:1\@namedef{Geom@a5paper}{%kT145Q9 $9 *ͺ278E+\setlength\paperwidth{149mm}\setlength\paperheight{210mm}} *ͺ279:1\@namedef{Geom@b1paper}{%*ͺ280E+\setlength\paperwidth{707mm}\setlength\paperheight{1000mm}}*ͺ281:1\@namedef{Geom@b2paper}{%*ͺ282E+\setlength\paperwidth{500mm}\setlength\paperheight{707mm}}*ͺ283:1\@namedef{Geom@b3paper}{%*ͺ284E+\setlength\paperwidth{353mm}\setlength\paperheight{500mm}}*ͺ285:1\@namedef{Geom@b4paper}{%*ͺ286E+\setlength\paperwidth{250mm}\setlength\paperheight{353mm}}*ͺ287:1\@namedef{Geom@b5paper}{%*ͺ288E+\setlength\paperwidth{176mm}\setlength\paperheight{250mm}}*ͺ289:1\@namedef{Geom@letterpaper}{%*ͺ290E+\setlength\paperwidth{8.5in}\setlength\paperheight{11in}}*ͺ291:1\@namedef{Geom@legalpaper}{%*ͺ292E+\setlength\paperwidth{8.5in}\setlength\paperheight{14in}}*ͺ293:1\@namedef{Geom@executivepaper}{%*ͺ294E+\setlength\paperwidth{7.25in}\setlength\paperheight{10.5in}}g\Geom@showParam/:ѹThefmacrofort!ypMeoutofgeometrystatusandparameters.*ͺ295:1\def\Geom@showParam{%*ͺ296O%\typeout{-----------------------?Geometryparameters}*ͺ297O%\typeout{mode:?\Geom@checkbool{landscape}\space*ͺ298O\Geom@checkbool{nohead}\space*ͺ299O\Geom@checkbool{nofoot}\space*ͺ300O\Geom@checkbool{includemp}\space*ͺ301O\if@twoside?twoside\space\fi}*ͺ302O%\@ifundefined{Geom@paper}{}{\typeout{paper:?\Geom@paper}}*ͺ303O%\typeout{hdivide:?\Geom@checkdef{lmargin},%*ͺ304~ \Geom@checkdef{width},?\Geom@checkdef{rmargin}}*ͺ305O%\typeout{vdivide:?\Geom@checkdef{tmargin},%*ͺ306~ \Geom@checkdef{height},?\Geom@checkdef{bmargin}}*ͺ307O%\if@twoside*ͺ308_P\typeout{twosideshift:?\Geom@twosideshift}*ͺ309O%\fi*ͺ310O%\typeout{-----------------------?LaTeXparameters}*ͺ311O%\typeout{\string\paperwidth\space\space\the\paperwidth}*ͺ312O%\typeout{\string\paperheight\space\the\paperheight}*ͺ313O%\typeout{\string\textwidth\space\space\the\textwidth}*ͺ314O%\typeout{\string\textheight\space\the\textheight}*ͺ315O%\typeout{\string\oddsidemargin\space\space\the\oddsidemargin}*ͺ316O%\typeout{\string\evensidemargin\space\the\evensidemargin}*ͺ317O%\typeout{\string\topmargin\space\space\the\topmargin}*ͺ318O%\typeout{\string\headheight\space\the\headheight}*ͺ319O%\typeout{\string\headsep\@spaces\the\headsep}*ͺ320O%\typeout{\string\footskip\space\space\space\the\footskip}*ͺ321O%\ifGeom@includemp*ͺ322_P\typeout{\string\marginparwidth\space\the\marginparwidth}*ͺ323_P\typeout{\string\marginparsep\space\space\space\the\marginparsep}*ͺ324O%\fi*ͺ325O%\typeout{\string\hoffset\space\the\hoffset}*ͺ326O%\typeout{\string\voffset\space\the\voffset}*ͺ327O%\typeout{(1in=72.27pt,?1cm=28.45pt)}*ͺ328O%\typeout{-----------------------------------------}}*ͺ329:1\AtBeginDocument{%*ͺ330O%\ifGeom@verbose*ͺ331_P\Geom@showParam*ͺ332O%\fi}AU\geometry/:ѹThefuserin!terface\geometry{hkey-valpparametersib;}isde nedhere.*ͺ333:1\def\geometry#1{%kT15Q9 $9 @\w @\h/:\wand\hareabbreviationsfor\paperwidthand\paperheightrespMectiv!elye.Theyare /:vdDalidfonlyintheargumen!tof\geometry.*ͺ334O%\@ifundefined{w}{\let\Geom@ow\relax}{\let\Geom@ow\w} *ͺ335O%\@ifundefined{h}{\let\Geom@oh\relax}{\let\Geom@oh\h}*ͺ336O%\let\w\paperwidth*ͺ337O%\let\h\paperheight@:ѹInitializationfofswitc!hesandparameters.*ͺ338O%\Geom@sethtotalfalse*ͺ339O%\Geom@setvtotalfalse*ͺ340O%\Geom@setwidthfalse*ͺ341O%\Geom@setheightfalse*ͺ342O%\Geom@setlmarginfalse*ͺ343O%\Geom@setrmarginfalse*ͺ344O%\Geom@settmarginfalse*ͺ345O%\Geom@setbmarginfalse*ͺ346O%\setlength\hoffset{0pt}*ͺ347O%\setlength\voffset{0pt}*ͺ348O%\setlength\headheight{\Geom@Oheadheight}*ͺ349O%\setlength\headsep{\Geom@Oheadsep}*ͺ350O%\setlength\footskip{\Geom@Ofootskip}*ͺ351O%\def\Geom@twosideshift{\Geom@Dtwosideshift}/:ѹThefargumen!tisproMcessedhere.*ͺ352O%\setkeys{Geom}{#1}/:ѹIffpaperoptionisspMeci ed,theprede nedpaperdimensionsareset.*ͺ353O%\@ifundefined{Geom@paper}{}{\@nameuse{Geom@\Geom@paper}}/:ѹIfflandscapeoptionisspMeci ed,thepaperorien!tationischangedtolandscapMe.*ͺ354O%\ifGeom@landscape *ͺ355d\setlength\@tempdima{\paperwidth}*ͺ356d\setlength\paperwidth{\paperheight}*ͺ357d\setlength\paperheight{\@tempdima}*ͺ358O%\fi/:ѹIfnoheadoptionisspMeci ed,!thev!erticalspacesfortheheadofpageareallsetto0pt.?If /:nofoot,fthe\footskipisset0pt.*ͺ359O%\ifGeom@nohead*ͺ360_P\setlength\headheight{0pt}*ͺ361_P\setlength\headsep{0pt}*ͺ362O%\fi*ͺ363O%\ifGeom@nofoot*ͺ364_P\setlength\footskip{0pt}*ͺ365O%\fi/:ѹThefwidthofthetotalbModyT\Geom@widthfisdetermined.*ͺ366O%\ifGeom@sethtotal*ͺ367_P\ifGeom@setwidth*ͺ368o\ifGeom@settextwidth*ͺ369~ \setlength\@tempdima{\Geom@textwidth}*ͺ370~ \ifGeom@includemp*ͺ371\addtolength\@tempdima{\marginparwidth}*ͺ372\addtolength\@tempdima{\marginparsep}*ͺ373~ \fi*ͺ374~ \edef\Geom@width{\the\@tempdima}*ͺ375o\fi*ͺ376_P\else*ͺ377o\edef\Geom@width{\Geom@hscale\paperwidth}*ͺ378_P\fi*ͺ379O%\fi/:ѹThefheigh!tofthetotalbModyT\Geom@heightfisdetermined.kT16ǠQ9 $9 *ͺ380O%\ifGeom@setvtotal *ͺ381_P\ifGeom@setheight*ͺ382o\ifGeom@settextheight*ͺ383~ \setlength\@tempdima{\Geom@textheight}*ͺ384~ \addtolength\@tempdima{\headheight}*ͺ385~ \addtolength\@tempdima{\headsep}*ͺ386~ \addtolength\@tempdima{\footskip}*ͺ387~ \edef\Geom@height{\the\@tempdima}*ͺ388o\fi*ͺ389_P\else*ͺ390o\edef\Geom@height{\Geom@vscale\paperheight}*ͺ391_P\fi*ͺ392O%\fi/:ѹThefhorizon!talandverticalpartitioningsaredeterminedhere.*ͺ393O%\Geom@det@all[h]{width}{lmargin}{rmargin}*ͺ394O%\Geom@det@all[v]{height}{tmargin}{bmargin}/:\textwidthfiscalculated.*ͺ395O%\setlength\textwidth{\Geom@width}*ͺ396O%\ifGeom@includemp*ͺ397d\addtolength\textwidth{-\marginparwidth}*ͺ398d\addtolength\textwidth{-\marginparsep}*ͺ399O%\fi/:\textheightfiscalculated.*ͺ400O%\setlength\textheight{\Geom@height}*ͺ401O%\addtolength\textheight{-\headheight}*ͺ402O%\addtolength\textheight{-\headsep}*ͺ403O%\addtolength\textheight{-\footskip}/:\topmarginfiscalculatedhere.*ͺ404O%\setlength\topmargin{\Geom@tmargin}*ͺ405O%\addtolength\topmargin{-1in}/:\oddsidemarginfand\evensidemarginare nallyobtained.*ͺ406O%\setlength\oddsidemargin{\Geom@lmargin}*ͺ407O%\addtolength\oddsidemargin{-1in}*ͺ408O%\if@twoside*ͺ409d\setlength\evensidemargin{\Geom@rmargin}*ͺ410d\addtolength\evensidemargin{-1in}*ͺ411d\setlength\@tempdima{\Geom@twosideshift}*ͺ412d\addtolength\oddsidemargin{\@tempdima}*ͺ413d\addtolength\evensidemargin{-\@tempdima}*ͺ414d\ifGeom@includemp*ͺ415tP\if@mparswitch*ͺ416\setlength\@tempdima{\marginparwidth}*ͺ417\addtolength\@tempdima{\marginparsep}*ͺ418\addtolength\evensidemargin{\@tempdima}*ͺ419tP\fi*ͺ420d\fi*ͺ421O%\else*ͺ422d\setlength\evensidemargin{\oddsidemargin}*ͺ423O%\fi/:ѹThe4loMcalabbreviations\wand\harereplacedb!ytheoriginalde nitionsor\relaxifthese /:arefnotprede ned.*ͺ424O%\let\w\Geom@ow*ͺ425O%\let\h\Geom@oh*ͺ426O%}/:ѹAfhac!kforsilentexecutionofthedefaultgeometrysetting.*ͺ427:1\let\Geom@warning\@gobblekT17ޠQ9 $9 /:ѹThefdefaultgeometrycommandisexecutedinsilen!tmoMde.*ͺ428:1\geometry{}/:ѹThefmacrofort!ypMeoutofwarningisde ned.Aa\Geom@warning*ͺ429:1\def\Geom@warning#1{% *ͺ430O%\ifGeom@verbose*ͺ431_P\typeout{^^JWarning(geometry):\space?#1.}*ͺ432O%\fi}*ͺ433:1h b> cmmi10=package&G"ikT18^;Q *m#R cmss10)"V 3 cmbx10( 3 cmmi10Nff cmbx12߆T cmtt122cmmi8Aacmr6XQ cmr12GGcmss17DtGGcmr17|{Ycmr8K`y 3 cmr10 !", cmsy10 b> cmmi10u cmex10U