÷ƒ’À;è TeX output 1997.02.06:1358‹ÿÿÿÿ ª� ýs o� ýÞ�‘w«ºóDÓítG®G®cmr17¹User's–7tGuide“to“the“Calendar“pac�Œqk‘ÿäage��Ÿùº¯ó!",š cmsy10¾ŽŽŽŸ�����’ÂgøóX«Q cmr12ºF‘ÿVrank–ê¨G.“Bennett,“Jr.��Ÿû¥2ó¾KÈ cmsy8ÃyŽŽŽŽŽŽŽŸˆ‹�’Ï,bºF‘ÿVebruary–ê¨6,“1997ŽŸ*ÿ?�’æ!Kót ‰: cmbx9ÇAbstractŽŸ,p�‘oßüóo´‹Ç cmr9ÆThis–?Ûpacš¾9k‘ÿ|rage“pro˜vides“to�AÇols“for“creating“customized“calendars“usingŽŸ ��‘bL�Ÿýó5�‘ü«‡ó¹Aa¨cmr6ÀAŽŽ‘© ÆT�‘þuAŸïÿEŽ‘˜ŸX‘c.2�Ÿÿÿó5ùž" cmmi9È"ŽŽ’„uÅÆ.Ž© Ï’��‘Ió ÂÖN ff cmbx12Ë1Ž‘aLËIn�ŒÌtro�s3ductionŽŸç�‘IóKñ`y cmr10²This–F=pacš¸ãk‘ÿqÇages“creates“a“macro,‘‚wó!ßê6284\twopimod\repeatŽ¡��‘I±23Ž‘XdDÎ\ifnum\count1>3142Ž¡��‘I±24Ž‘XdDÎ\advance\count1‘¹–by-3142Ž¡��‘I±25Ž‘XdDÎ\ifsign\signfalse\else\signtrue\fi\fiŽ¡��‘I±26Ž‘XdDÎ\multiply\count1‘ s,by10–¹–\count3“=\count1Ž¡��‘I±27Ž‘XdDÎ\divide\count3‘ s,by1000–¹–\count2“=\count3Ž¡��‘I±28Ž‘XdDÎ\multiply\count3‘ s,by1000Ž¡��‘I±29Ž‘XdDÎ\advance\count3‘ s,by-\count1Ž¡��‘I±30Ž‘XdDÎ\count5–¹–=\sintable{\count2“}Ž¡��‘I±31Ž‘XdDÎ\count4‘¹–=\count5\advance\count2‘ s,by1Ž¡��‘I±32Ž‘XdDÎ\advance\count4‘ s,by–¹–-\sintable{\count2“}Ž¡��‘I±33Ž‘XdDÎ\multiply\count4‘ s,by\count3Ž¡��‘I±34Ž‘XdDÎ\divide\count4‘ s,by1000Ž¡��‘I±35Ž‘XdDÎ\advance\count4‘ s,by\count5Ž¡��‘I±36Ž‘XdDÎ\ifsign\count4–¹–=-\count4“\fi}ަ�‘IÌv–?ý:=“cos(theta)²,‘qùwhere‘9!Ìv“=“count4*10^(-3)²;‘—ÝÌtheta“=“count1*10^(-3)².‘ Ì\SINŽŸ �‘I²is–UUev‘ÿqÇaluated“on“Ìpi/2-theta².Ž¡��‘I±37Ž‘Sª®Î\def\Cos{\advance\count1‘ s,by-1571Ž¡��‘I±38Ž‘XdDÎ\multiply\count1‘ s,by-1\Sin}ަ�‘I²Linear– :transformation“of“T‘ (giving“Ìtheta–?ý:=“a*T+b²,‘¦where‘ :ÌT“=“count0*10^(-6)²;ŽŸ �‘IÌtheta–?ý=“count1*10^(-3)²;›UUÌa“=“#1*10^3+#2+#3*10^(-3)²;˜Ìb“=“#4*10^(-3)Ž¡��‘I±39Ž‘Sª®Î\def\lin#1.#2.#3+#4.{\count1‘¹–=#3Ž¡��‘I±40Ž‘XdDÎ\count2–¹–=#2“\count3“=#1Ž¡��‘I±41Ž‘XdDÎ\multiply\count1‘¹–by\count0Ž¡��‘I±42Ž‘XdDÎ\multiply\count2‘¹–by\count0Ž¡��‘I±43Ž‘XdDÎ\multiply\count3‘¹–by\count0Ž¡��‘I±44Ž‘XdDÎ\divide\count1‘¹–by1000Ž¡��‘I±45Ž‘XdDÎ\advance\count1‘¹–by\count2Ž¡��‘I±46Ž‘XdDÎ\divide\count1‘¹–by1000Ž¡��‘I±47Ž‘XdDÎ\advance\count1‘¹–by\count3Ž¡��‘I±48Ž‘XdDÎ\advance\count1–¹–by“#4}ަ�‘I²Accumš¸ãulate–/Úv‘ÿqÇalue“returned“b˜y“a“trigonometric“function,‘æ{scaled“b˜y“factor“f,ޤ �‘Iin•¸ãto› coun“t6:‘8Ìac–?ý:=“ac+f*v²,‘P;where˜Ìac“=“count6*10^(-7)˜v“=“value˜²of˜ÌSIN‘Ú²orŽ¡�‘IÌCOS–?ý=count4*10^(-3)‘UUf“=“#1*10^(-4)ޤ ��‘I±49Ž‘Sª®Î\def\fac#1{\multiply\count4‘ s,by‘¹–#1Ž¡��‘I±50Ž‘XdDÎ\advance\count6‘ s,by\count4}Ž¡��‘I±51Ž‘Sª®Î\def\id{\count4=\count1}‘ s,%‘¹–IdentityŽ¡��‘I±52Ž‘Sª®Î}ŽŽŸ�’ø²2ŽŽŒ‹ . ª� ýs o� ý´��‘I±53Ž‘Sª®Î\ProcessOptionsŽŸ��‘IÍ2.2Ž‘gÀFirst–€run“commandsŽŸuT�‘I²Create–UUa“toggle“to“ ag“leap“y�¸ãears.ޤ��‘I±54Ž‘Sª®ó©±�Ê cmsy9Éh�ó$ÒoÇw cmss9Ïst�¾9yleŽ‘Ö[ÉiŽ© ��‘I±55Ž‘Sª®Î\newif\ifleapyearŽŸ�‘I²Create–UUsome“coun�¸ãters.Ž¡��‘I±56Ž‘Sª®Î\newcounter{date}ަ��‘I±57Ž‘Sª®Î\newcounter{weekd}ަ��‘I±58Ž‘Sª®Î\newcounter{Year}ަ��‘I±59Ž‘Sª®Î\newcounter{yearbase}ަ��‘I±60Ž‘Sª®Î\newcounter{Month}ަ��‘I±61Ž‘Sª®Î\newcounter{Day}ަ��‘I±62Ž‘Sª®Î\newcounter{catch}ަ��‘I±63Ž‘Sª®Î\newcounter{timezone}ŽŸ�‘I²Create–UUa“couple“of“shorthand“macros,“to“kš¸ãeep“the“in˜terface“consisten˜t.Ž¡��‘I±64Ž‘Sª®Î\def\theyear{19\the\c@Year}ަ��‘I±65Ž‘Sª®Î\def\theday{\the\c@Day}ŽŸ�‘I²Initialize–UUthe“time“zone“to“0.Ž¡��‘I±66Ž‘Sª®Î\setcounter{timezone}{0}ŽŸ����‘yº\setyearŽŽŽŽ¡��‘I±67Ž‘Sª®Î\def\setyear#1{\c@Year=#1ަ��‘I±68Ž‘XdDÎ\advance\c@Year‘¹–by-1900\calculateyearbase}ŽŸ����‘À$\nextyearŽŽŽŽ¡��‘I±69Ž‘Sª®Î\def\nextyear{\advance\c@Year‘¹–by1ަ��‘I±70Ž‘XdDÎ\calculateyearbase}ŽŸ����‘“b\settimezoneŽŽŽŽ¡��‘I±71Ž‘Sª®Î\def\settimezone#1{\c@timezone=#1ަ��‘I±72Ž‘XdDÎ\multiply\c@timezone–¹–by“1000ަ��‘I±73Ž‘XdDÎ\divide\c@timezone‘¹–by24}ŽŸ����‘ê9Þ\calculateyearbaseŽŽŽ‘I²Set–ówthe“Ì\ifleapyear“²toggle.‘Q(Set“Ì\c@yearbase“²to“the“n•¸ãum“b�Ger–ówof“da�¸ãys“passed“fromŽŸ �‘I1900,–UUJan“0“to“New“yš¸ãear's“date“in“the“target“y˜ear.Ž¡��‘I±74Ž‘Sª®Î\def\calculateyearbase{%ަ��‘I±75Ž‘XdDÎ\c@yearbase=-1ަ��‘I±76Ž‘XdDÎ{\count0=\c@Year\divide\count0‘¹–by4ަ��‘I±77Ž‘XdDÎ\multiply\count0‘¹–by4ަ��‘I±78Ž‘XdDÎ\ifnum\c@Year=\count0ަ��‘I±79Ž‘XdDÎ\global\c@catch=0\else\global\c@catch=1\fi}%ަ��‘I±80Ž‘XdDÎ\ifcase\c@catch‘¹–\leapyeartrue\orަ��‘I±81Ž‘]ÚÎ\leapyearfalse\fiަ��‘I±82Ž‘XdDÎ{\count0=\c@Year\multiply\count0ަ��‘I±83Ž‘XdDÎby1461\advance\count0‘¹–by3ަ��‘I±84Ž‘XdDÎ\divide\count0‘¹–by4ަ��‘I±85Ž‘XdDÎ\global\c@catch=\count0}%ަ��‘I±86Ž‘XdDÎ\advance\c@yearbase‘¹–by\c@catchަ��‘I±87Ž‘XdDÎ\ifnum\c@Year=0\c@yearbase=0\leapyearfalse\fi}ŽŽŸ�’ø²3ŽŽŒ‹ˆ ª� ýs o� ý´����‘ŽÎ\monthdaysŽŽŽ‘I²Set–UUthe“n•¸ãum“b�Ger–UUof“daš¸ãys“passed“at“the“end“of“eac˜h“mon˜th“in“Ì\c@Day².Ž© î��‘I±88Ž‘Sª®Î\def\monthdays{\globalޤ ��‘I±89Ž‘XdDÎ\c@catch=\ifcase\c@Month‘¹–0\or31\orŽ¡��‘I±90Ž‘]ÚÎ59\or90\or120\or151\or181\or212\orŽ¡��‘I±91Ž‘]ÚÎ243\or273\or304\or334\or365\fiŽ¡��‘I±92Ž‘XdDÎ{\ifleapyear\ifnum\c@Month>1Ž¡��‘I±93Ž‘]ÚÎ\global\advance\c@catch‘¹–by1\fi\fi}%Ž¡��‘I±94Ž‘XdDÎ\c@Day=\c@catch}ŽŸÊ>����‘"ìæ\daynoŽŽŽ‘I²Return–UUthe“long“date“of“Ì\c@Month²,“Ì\c@Day“²in“the“y�¸ãear“Ì\c@Year“²in“Ì\c@date².ަ��‘I±95Ž‘Sª®Î\def\dayno{\c@date=\c@Day{\advanceŽ¡��‘I±96Ž‘XdDÎ\c@Month‘¹–by-1\monthdaysŽ¡��‘I±97Ž‘XdDÎ\advance\c@date‘¹–by\c@DayŽ¡��‘I±98Ž‘XdDÎ\global\advance\c@date‘¹–by\c@yearbase}}ŽŸÊ>����‘yº\weekdayŽŽŽ‘I²Long–qjdate“MOD‘qc7“givš¸ães“the“w˜eek“da˜y‘ÿ*ª.‘ÆSunda˜y“is“0“and“Saturda˜y“is“6.‘Æ(This“w˜asŽŸ �‘Ithe–UUdo�Gcumen�¸ãtation“to“the“original“ le.‘qÇNot“sure“what“it“means.)ަ��‘I±99Ž‘Sª®Î\def\weekday{{\count0=\c@date\relaxŽ¡��‘E�±100Ž‘XdDÎ\count1=\count0\divide\count0–¹–by“7Ž¡��‘E�±101Ž‘XdDÎ\multiply\count0–¹–by“7Ž¡��‘E�±102Ž‘Sª®Î\advance\count1–¹–by“-\count0Ž¡��‘E�±103Ž‘XdDÎ\global\c@weekd=\count1}}ŽŸÊ>����‘ Lø\theweekdayŽŽŽ‘I²Name–UUof“wš¸ãeek“da˜y“(Lo�Gcal).ަ��‘E�±104Ž‘Sª®Î\def\theweekday{\weekdayŽ¡��‘E�±105Ž‘XdDÎ\ifcase\c@weekdŽ¡��‘E�±106Ž‘XdDÎSunday\or–¹–Monday\or“Tuesday\orŽ¡��‘E�±107Ž‘XdDÎWednesday\or–¹–Thursday\or“Friday\orŽ¡��‘E�±108Ž‘XdDÎSaturday\fi}ŽŸÊ>����‘ó­ \theshortweekdayŽŽŽ‘I²(Lo�Gcal)ަ��‘E�±109Ž‘Sª®Î\def\theshortweekday{\weekdayŽ¡��‘E�±110Ž‘XdDÎ\ifcase\c@weekd–¹–Sun\or“Mon\or“Tue\orŽ¡��‘E�±111Ž‘]ÚÎWed\or–¹–Thu\or“Fri\or“Sat\fi}ŽŸÊ>����‘yº\caldateŽŽŽ‘I²Givš¸ães– 0the“usual“calendar“date“for“a“long“date“in“coun˜ter“Ì\c@date².‘�YReturned“inŽŸ �‘IÌ\c@Day²,–UUÌ\c@Month“²and“Ì\c@Yearަ��‘E�±112Ž‘Sª®Î\def\caldate{\c@Year=\c@dateŽ¡��‘E�±113Ž‘XdDÎ\multiply\c@Year–¹–by4\divide\c@Year“by1461Ž¡��‘E�±114Ž‘XdDÎ\calculateyearbaseŽ¡��‘E�±115Ž‘XdDÎ{\advance\c@date‘¹–by-\c@yearbase\c@Month=0Ž¡��‘E�±116Ž‘XdDÎ\loop\monthdays\ifnum\c@Day<\c@dateŽ¡��‘E�±117Ž‘XdDÎ\global\advance\c@Month‘¹–by1\repeatŽ¡��‘E�±118Ž‘XdDÎ{\advance\c@Month‘¹–by-1\monthdaysŽ¡��‘E�±119Ž‘XdDÎ\advance\c@date‘¹–by-\c@DayŽ¡��‘E�±120Ž‘XdDÎ\global\c@Day=\c@date}}}ŽŸÊ>����‘À$\themonthŽŽŽ‘I²Name–UUof“mon�¸ãth“Ì\c@Month².‘qÇ(Lo�Gcal)ަ��‘E�±121Ž‘Sª®Î\def\themonth{\ifcase\c@MonthŽ¡��‘E�±122Ž‘XdDÎ\or–¹–January\or“February\or“March\orŽ¡��‘E�±123Ž‘XdDÎApril\or–¹–May\or“June\or“July\orŽ¡��‘E�±124Ž‘XdDÎAugust\or–¹–September\or“October\orŽ¡��‘E�±125Ž‘XdDÎNovember\or‘¹–December\fi}ŽŽŸ�’ø²4ŽŽŒ‹ö ª� ýs o� ý´����‘yºÎ\nextdayŽŽŽ‘I²Find–UUthe“next“(previous)“da�¸ãy“after“(b�Gefore)“Ì\c@date“²with“Ì\weekday=#1².Ž© »'��‘E�±126Ž‘Sª®Î\def\nextday#1{{\count0=#1\weekdayޤ ��‘E�±127Ž‘XdDÎ\advance\count0‘¹–by-\c@weekdŽ¡��‘E�±128Ž‘XdDÎ\ifnum\count0<0\advance\count0‘¹–by7\fiŽ¡��‘E�±129Ž‘XdDÎ\global\advance\c@date‘¹–by\count0}}ŽŸ1t����‘yº\prevdayŽŽŽŽ¦��‘E�±130Ž‘Sª®Î\def\prevday#1{\snextday#1Ž¡��‘E�±131Ž‘XdDÎ\advance\c@date‘¹–by-7}ŽŸ1t����‘À$\snextdayŽŽŽŽ¦��‘E�±132Ž‘Sª®Î\def\snextday#1{\advance\c@date‘¹–by1Ž¡��‘E�±133Ž‘XdDÎ\nextday#1}ŽŸ1t����‘À$\sprevdayŽŽŽŽ¦��‘E�±134Ž‘Sª®Î\def\sprevday#1{\advance\c@date‘¹–by-1Ž¡��‘E�±135Ž‘XdDÎ\prevday#1}ŽŸ1t����‘“b\begineventsŽŽ���Ÿ �‘Ž\endeventsŽŽŽŽŽ‘IÌ\beginevents².–ªª.“.“Ì\endevents–µ²conš¸ãtains“con˜trol“sequences“lik˜e“Ì\event“²or“Ì\evday“²orŽŸ �‘Isequences–UUgenerating“these“commands.ަ��‘E�±136Ž‘Sª®Î\newwrite\evefileŽ¡��‘E�±137Ž‘Sª®Î\def\beginevents{%Ž¡��‘E�±138Ž‘XdDÎ\immediate\openoutŽ¡��‘E�±139Ž‘XdDÎ\evefile=\jobname.eve\relax}ŽŸvM��‘E�±140Ž‘Sª®Î\def\endevents{\immediate\closeoutŽ¡��‘E�±141Ž‘XdDÎ\evefile\end}ŽŸ1t����‘"ìæ\eventŽŽŽŽ¦��‘E�±142Ž‘Sª®Î\newtoks\evetextŽ¡��‘E�±143Ž‘Sª®Î\def\event#1/#2[#3]{\evetext={#3}%Ž¡��‘E�±144Ž‘XdDÎ\c@Day=#1\c@Month=#2\daynoŽ¡��‘E�±145Ž‘XdDÎ\evday[\the\evetext]}ŽŸ1t����‘"ìæ\evdayŽŽŽŽ¦��‘E�±146Ž‘Sª®Î\def\evday[#1]{\immediate\write\evefile{%Ž¡��‘E�±147Ž‘XdDÎ\string\evententry{\the\c@date}{#1}}}ޤ1t����‘ Lø\thecaldateŽŽŽŽ¦��‘E�±148Ž‘Sª®Î\def\thecaldate{\the\c@Day/\the\c@Month}Ž¡����‘'¦|\muteŽŽŽŽ¦��‘E�±149Ž‘Sª®Î\def\mute{\def\thecaldate{}}ŽŸÂí��‘IÍ2.3Ž‘gÀSecond–€run“commandsŽŸuT�‘I²W‘ÿ*ªe–UUneed“a“few“coun�¸ãters.ަ��‘E�±150Ž‘Sª®Î\newcount\currentdateޤ ��‘E�±151Ž‘Sª®Î\newcount\lastdateŽ¡��‘E�±152Ž‘Sª®Î\newcount\nextdateŽŸ»'�‘I²W‘ÿ*ªe–UUalso“need“a“few“toggles.ަ��‘E�±153Ž‘Sª®Î\newif\ifdoing@dayŽ¡��‘E�±154Ž‘Sª®Î\newif\ifholyŽŽŸ�’ø²5ŽŽŒ‹*‘ ª� ýs o� ý´����‘'¦|Î\holyŽŽŽŽ¤��‘E�±155Ž‘Sª®Î\def\holy{\global\holytrue}Ž©����‘'¦|\uptoŽŽŽŽ¡��‘E�±156Ž‘Sª®Î\def\upto#1{\nextdate=#1ޤ ��‘E�±157Ž‘XdDÎ\loop\advance\currentdate‘¹–by1\relaxŽ¡��‘E�±158Ž‘]ÚÎ\ifnum\currentdate<\nextdateŽ¡��‘E�±159Ž‘]ÚÎ\begin@day\end@day\repeat}ަ����‘ Lø\evententryŽŽŽ‘I²This–†šmacro“is“in•¸ãv“ok“ed–†šonce“for“evš¸ãery“ev˜en˜t“exp�Gorted“to“the“Ìjobname.eve“² le“b˜y“theޤ �‘Iselected–ùdate“calculation“engines“conš¸ãtained“in“the“v‘ÿqÇarious“Ì*.cle“² les.‘S The“in˜v˜o�Gca-Ž¡�‘Itions–|8ošGccur“after“Ì\begin@day“²has“b˜een“in•¸ãv“ok“ed–|8once“b�¸ãy“Ì\makeagenda².‘)iÌ\begin@dayŽ¡�‘I²sets–xÅÌ\ifdoing@day“²to“Ìtrue²,‘�¡so“this“toggle“is“set“on“when“the“imp�Gort“tak�¸ães“place.Ž¡�‘IAfter–˜zthe“imp�Gort,›éCÌ\end@day“²is“in•¸ãv“ok“ed,˜whic“h–˜zturns“o “Ì\ifdoing@day².‘;7Ì\uptoŽ¡�‘I²then–u†pro�Gduces“emptš¸ãy“templates“un˜til“the“curren˜t“date“is“hit,‘}’and“the“macro“thenŽ¡�‘Idumps–ç†the“message“text“bšGefore“calling“Ì\end@day².‘M-Pro˜cessing“is“then“passed“to“theŽ¡�‘Inext–zienš¸ãtry“in“the“Ìjobname.eve“² le.‘áThis“metho�Gd“w˜as“inherited“from“the“originalŽ¡�‘IT�‘þU>Ÿ'EŽ‘ãxX–PŠpacš¸ãk‘ÿqÇage.‘p.It“assumes“that“the“ev˜en˜ts“listed“in“the“Ìjobname.eve“² le“will“b�Ge“inŽ¡�‘Ilinear–›@order.‘CˆIt“therefore“do�Ges“not“lend“itself“to“use“with“mš¸ãultiple“ev˜en˜t“ les.‘CˆT‘ÿ*ªoŽ¡�‘Io•¸ãv“ercome–ô¿this“limitation,‘wš¸ãe“will“need“to“store“the“ev˜en˜t“dates“in“a“list“macro“thatŽ¡�‘Ican–úìthen“bšGe“sorted“b˜efore“pro˜ducing“the“prin�¸ãted“output,‘ calling“macros“named“forŽ¡�‘Ieac•¸ãh›UUev“en“t˜date˜and˜the˜ev“en“ts˜engine˜from˜whic“h˜it˜w“as˜generated.Ž©��‘E�±160Ž‘Sª®Î\def\evententry#1#2{\unskipŽŸ�‘I²If–B6the“date“established“for“the“ev•¸ãen“t–B6in“the“currenš¸ãt“y˜ear“falls“after“the“last“date“inŽ¡�‘Ithe–UUpro�Gcessing“range,“do“nothing“at“all.ަ��‘E�±161Ž‘XdDÎ\ifnum#1>\lastdate\elseޤ�‘I²If–ô¿the“date“established“falls“b�Gefore“the“earliest“date“in“the“range,‘do“nothing“at“all.ަ��‘E�±162Ž‘]ÚÎ\ifnum\currentdate<#1Ž¡�‘I²The–­¹folloš¸ãwing“lo�Goks“lik˜e“a“bug“to“me,‘ÃÒalthough“I‘­¢could“b�Ge“missing“something.‘zôItޤ �‘Iapp�Gears–8áthat“if“the“vš¸ãery“ rst“date“in“the“range“is“an“ev˜en˜t“date,‘qÄthe“ev˜en˜t“willŽ¡�‘Ib•Ge›«#skipp“ed.‘s1Otherwise,––though,“w•¸ãe˜do˜a˜single˜blank˜en“try‘ÿ*ª,‘–then˜roll˜forw“ardŽ¡�‘Iwith–ÃEblank“enš¸ãtries“un˜til“the“curren˜t“ev˜en˜t“date“giv˜en“as“the“ rst“argumen˜t“toŽ¡�‘IÌ\evententry–UU²is“reac�¸ãhed.ަ��‘E�±163Ž‘a×pÎ\ifdoing@day\end@day\fiŽŸ ��‘E�±164Ž‘]ÚÎ\upto{#1}\fiŽŸ�‘I²When–™Œthat“happšGens,‘¿Ì\currentdate“²will“naturally“b˜e“a“matc�¸ãh.‘3/The“bug“referred“toŽ¡�‘Iab�Go•¸ãv“e,›Á±if–œÇit“is“a“bug,˜mighš¸ãt“b�Ge“addressed“b˜y“eliminating“the“initializing“Ì\begin@dayŽ¡�‘I²from–¼ôthe“Ì\makeagenda“²macro.‘¨£It“wš¸ãould“then“b�Ge“pro˜vided“b˜y“the“cošGde“b˜elo�¸ãw,Ž¡�‘Iimmediately–UUb�Gefore“the“output“of“the“ev•¸ãen“t‘UUtext.ަ��‘E�±165Ž‘XdDÎ\ifnum\currentdate=#1ޤ ��‘E�±166Ž‘]ÚÎ\ifdoing@day\else\begin@day\fiŽ¡��‘E�±167Ž‘]ÚÎ#2\par\fi\fi}ŽŸ����‘Ž\begin@dayŽŽŽŽ¦��‘E�±168Ž‘Sª®Î\def\begin@day{\doing@daytrueŽ¡��‘E�±169Ž‘XdDÎ\c@date=\currentdate\caldateŽ¡��‘E�±170Ž‘XdDÎ\message{<\thecaldate}\beginday}ŽŽŸ�’ø²6ŽŽŒ‹2G ª� ýs o� ý´����‘yºÎ\end@dayŽŽŽŽ¤��‘E�±171Ž‘Sª®Î\def\end@day{\endday\doing@dayfalseŽ© ��‘E�±172Ž‘XdDÎ\global\holyfalse\message{>}}ŽŸ����‘ Lø\makeagendaŽŽŽ‘I²This–x}is“the“business“end“of“the“T�‘þU>Ÿ'EŽ‘ãxX“macros.‘Û@If“an“appropriate“st�¸ãyle“is“fed“to“thisŽŸ �‘Imacro–UUafter“in•¸ãv“oking–UUÌ\setyear²,“a“calendar“will“b�Ge“generated.Ž¡��‘E�±173Ž‘Sª®Î\def\makeagenda#1{\input‘¹–#1.sty\relaxަ��‘E�±174Ž‘XdDÎ\begin@day\input\jobname.eve\relaxަ��‘E�±175Ž‘XdDÎ\evententry{\the\lastdate}{}\end@dayަ��‘E�±176Ž‘XdDÎ\epilog\end}ŽŸ����‘Ž\makeemptyŽŽŽ‘I²Do–UUnot“read“ev•¸ãen“tsŽ¡��‘E�±177Ž‘Sª®Î\def\makeempty{\begin@dayަ��‘E�±178Ž‘XdDÎ\evententry{\the\lastdate}{}\end@day}ŽŸ����‘Ž\ParseDateŽŽŽ‘I²Break–ziup“a“date“in“the“ rst“and“second“argumenš¸ãts“to“Ì\everyday“²in˜to“its“comp�Go-ޤ �‘Inen�¸ãts–�ðin“Ì\c@Year²,›ž—Ì\c@Month“²and“Ì\c@Day²,˜and“set“the“corresp�Gonding“long“date“inŽ¡�‘IÌ\c@date².ŽŸ��‘E�±179Ž‘Sª®Î\def\ParseDate#1{\@ParseDate#1\end}ަ��‘E�±180Ž‘Sª®Î\def\@ParseDate#1/#2/#3\end{\setyear{#1}\c@Month=#2\c@Day=#3\dayno}ŽŸ����‘À$\everydayŽŽŽ‘I²Set–„Ì\currentdate“²and“Ì\lastdate“²to“set“the“b�Goundaries“of“iteration“and“de neŽ¡�‘Ithe›¬œbrac•¸ãk“eting˜macros˜Ì\beginday˜²and˜Ì\endday².‘w�Initiate˜iteration˜b“y˜in“v“okingŽ¡�‘IÌ\makeempty².ŽŸ��‘E�±181Ž‘Sª®Î\def\everyday#1#2#3{\ParseDate{#1}\currentdate=\c@date%ަ��‘E�±182Ž‘]ÚÎ\ParseDate{#2}\lastdate=\c@date%ަ��‘E�±183Ž‘]ÚÎ\def\beginday{#3}%ަ��‘E�±184Ž‘]ÚÎ\def\endday{}\makeempty}ަ��‘E�±185Ž‘Sª®Éh�È=Ïst�¾9yleŽ‘Ö[ÉiŽŸ!Ä��‘IË3Ž‘aLËThe–ffInstallation“FileŽŸç��‘E�±186Ž‘Sª®Éh�ÏinstallerŽ‘"ÁáÉiަ��‘E�±187Ž‘Sª®Î\def\batchfile{calendar.ins}ަ��‘E�±188Ž‘Sª®Î\input‘¹–docstrip.texަ��‘E�±189ŽŽ¦��‘E�190Ž‘Sª®Î\keepsilentަ��‘E�±191ŽŽ¦��‘E�192Ž‘Sª®Î\preambleަ��‘E�±193ŽŽ¦��‘E�194Ž‘Sª®ÎThis–¹–file“is“part“of“the“Calendar“package.ަ��‘E�±195Ž‘Sª®ÎCopyright–¹–(C)“1996“Frank“Bennett,“Jr.ަ��‘E�±196Ž‘Sª®ÎAll–¹–rights“reserved.ަ��‘E�±197Ž‘Sª®Î------------------------------------------ަ��‘E�±198Ž‘Sª®ÎThis–¹–is“a“generated“file.ަ��‘E�±199ŽŽ¦��‘E�200Ž‘Sª®ÎIMPORTANT‘¹–NOTICE:ަ��‘E�±201ŽŽ¦��‘E�202Ž‘Sª®ÎYou–¹–are“not“allowed“to“change“this“file.‘ s,You“may“however“copyަ��‘E�±203Ž‘Sª®Îthis–¹–file“to“a“file“with“a“different“name“and“then“change“theަ��‘E�±204Ž‘Sª®Îcopy–¹–if“(a)“you“do“not“charge“for“the“modified“code,“(b)“youަ��‘E�±205Ž‘Sª®Îacknowledge–¹–the“author(s)“in“the“new“file,“if“itŽŽŸ�’ø²7ŽŽŒ‹?f ª� ýs o� ý´��‘E�±206Ž‘Sª®Îis–¹–distributed“to“others,“and“(c)“you“attach“these“sameޤ ��‘E�±207Ž‘Sª®Îconditions–¹–to“the“new“file.Ž¡��‘E�±208ŽŽ¡��‘E�209Ž‘Sª®ÎYou–¹–are“not“allowed“to“distribute“this“file“alone.‘ s,You“are“notŽ¡��‘E�±210Ž‘Sª®Îallowed–¹–to“take“money“for“the“distribution“or“use“of“this“fileŽ¡��‘E�±211Ž‘Sª®Î(or–¹–a“changed“version)“except“for“a“nominal“charge“for“copyingŽ¡��‘E�±212Ž‘Sª®Îetc.Ž¡��‘E�±213ŽŽ¡��‘E�214Ž‘Sª®ÎYou–¹–are“allowed“to“distribute“this“file“under“the“condition“thatŽ¡��‘E�±215Ž‘Sª®Îit–¹–is“distributed“with“all“of“its“contents,“intact.Ž¡��‘E�±216ŽŽ¡��‘E�217Ž‘Sª®ÎFor–¹–error“reports,“or“offers“to“help“make“Calendar“a“more“powerful,Ž¡��‘E�±218Ž‘Sª®Îfriendlier,–¹–and“better“package,“please“contact“me“onŽ¡��‘E�±219Ž‘Sª®Î`fb'–¹–at“soas.ac.ukŽ¡��‘E�±220ŽŽ¡��‘E�221Ž‘Sª®Î\endpreambleŽ¡��‘E�±222ŽŽ¡��‘E�223Ž‘Sª®Î\generateFile{calendar.sty}‘,Â{t}{\from{calendar.dtx}{style}}Ž¡��‘E�±224ŽŽ¡��‘E�225Ž‘Sª®Î\Msg{***********************************************************}Ž¡��‘E�±226Ž‘Sª®Î\Msg{*}Ž¡��‘E�±227Ž‘Sª®Î\Msg{*–¹–To“finish“the“installation,“you“have“to“move“the“following}Ž¡��‘E�±228Ž‘Sª®Î\Msg{*–¹–file“into“a“directory“searched“by“TeX:}Ž¡��‘E�±229Ž‘Sª®Î\Msg{*}Ž¡��‘E�±230Ž‘Sª®Î\Msg{*–¹–\space\space“calendar.sty}Ž¡��‘E�±231Ž‘Sª®Î\Msg{*}Ž¡��‘E�±232Ž‘Sª®Î\Msg{***********************************************************}Ž¡��‘E�±233Ž‘Sª®Î}Ž¡��‘E�±234Ž‘Sª®Éh�È=ÏinstallerŽ‘"ÁáÉiŽŽŸ�’ø²8ŽŽŒøIYƒ’À;説 ó$ÒoÇw cmss9ó#ߤN cmtt9ó"ÂÖN  cmbx12ó!ßê