home *** CD-ROM | disk | FTP | other *** search
- .pl 13
- .nofj
- .ht 3 12 21 30 39 48 57
- .vbar | 2 11 20 29 38 47 56 65
- .setm 1 *
- \tMon \s1 \tTue \s1 \tWed \s1 \tThu \s1 \tFri \s1 \tSat \s1 \tSun \s1
- .fig 4
- .bar _ 2 65
- *
- .setu 2 :1991:
- .setu 3 :1992:
-
- SEPTEMBER \u2
- .bar _ 2 65
- .vbsw +
- \tMon \s1=26 \tTue \s1 \tWed \s1 \tThu \s1 \tFri \s1 \tSat \s1 \tSun \s1=1
- .fig 4
- .bar _ 2 65
- .rpt 3 :\u1:
- \tMon \s1 \tTue \s1=1 \tWed \s1 \tThu \s1 \tFri \s1 \tSat \s1 \tSun \s1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- OCTOBER \u2
- .bar _ 2 65
- .vbsw +
- .rpt 3 :\u1:
- \tMon \s1 \tTue \s1 \tWed \s1 \tThu \s1 \tFri \s1=1 \tSat \s1 \tSun \s1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- .page
- NOVEMBER \u2
- .bar _ 2 65
- .vbsw +
- .rpt 4 :\u1:
- .vbsw
- .setst :\s1=0:
- .setst ::
-
- DECEMBER \u2
- .bar _ 2 65
- .vbsw +
- .rpt 4 :\u1:
- \tMon \s1 \tTue \s1 \tWed \s1=1 \tThu \s1 \tFri \s1 \tSat \s1 \tSun \s1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- .page
- JANUARY \u3
- .bar _ 2 65
- .vbsw +
- .rpt 3 :\u1:
- \tMon \s1 \tTue \s1 \tWed \s1 \tThu \s1 \tFri \s1 \tSat \s1=1 \tSun \s1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- FEBRUARY \u3
- .bar _ 2 65
- .vbsw +
- .rpt 3 :\u1:
- \tMon \s1 \tTue \s1 \tWed \s1 \tThu \s1 \tFri \s1 \tSat \s1 \tSun \s1=1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- .page
- MARCH \u3
- .bar _ 2 65
- .vbsw +
- .rpt 4 :\u1:
- \tMon \s1 \tTue \s1 \tWed \s1=1 \tThu \s1 \tFri \s1 \tSat \s1 \tSun \s1=1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- APRIL \u3
- .bar _ 2 65
- .vbsw +
- .rpt 3 :\u1:
- \tMon \s1 \tTue \s1 \tWed \s1 \tThu \s1 \tFri \s1=1 \tSat \s1 \tSun \s1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- .page
- MAY \u3
- .bar _ 2 65
- .vbsw +
- .rpt 4 :\u1:
- .setst :\s1=0:
- .setst ::
- .vbsw
-
- JUNE \u3
- .bar _ 2 65
- .vbsw +
- .rpt 4 :\u1:
- \tMon \s1 \tTue \s1 \tWed \s1=1 \tThu \s1 \tFri \s1 \tSat \s1 \tSun \s1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- .page
- JULY \u3
- .bar _ 2 65
- .vbsw +
- .rpt 4 :\u1:
- \tMon \s1 \tTue \s1 \tWed \s1 \tThu \s1 \tFri \s1 \tSat \s1=1 \tSun \s1
- .fig 4
- .bar _ 2 65
- .vbsw
-
- AUGUST \u3
- .bar _ 2 65
- .vbsw +
- .rpt 3 :\u1:
- \tMon \s1 \tTue \s1=1 \tWed \s1 \tThu \s1 \tFri \s1 \tSat \s1 \tSun \s1
- .fig 4
- .bar _ 2 65
- .vbsw
- .stop Print Commentary
- .page
- .fj
- .setst :| :
- .setend : |:
-
- This long diary is a simpler example than diary of setting and resetting a
- section number, and using the command .setm to set an uninterpreted user string,
- which on each instantiation prints differently. If you replace .setm with .setu,
- the results will be very unsatisfactory, but this will make very clear the
- difference between the two ways of setting a user string.
-
- The last week of each month cannot be done by \\u1, since the date changes in
- midweek. This is effected by \\s1=1. Most months contain only three full Mon-Sun
- weeks, but one or two contain 4. Exceptionally, if a Sunday is the last day of
- any month, an extra week with a date reset to 1 is not required, but \\s1 must
- be reset to 0 in a non printing position. A setst is used for this purpose, with
- the startstring immediately being reset to the null string.
-
- September, the first month, requires a special line to set \\s1 to an initial
- value, and I have started on the printing on the first day of the month. A
- notional full week from the end of August would be an alternative approach.
-
- \\u1 will put out a week's dates when there is no month's change incrementing by
- using one level section numbers \\s1.
-
- \\u2 and \\u3 hold the two year numbers required.
-
- The first day of each month is effected by \\s1=1 in the explicit endline of
- each month. However, if the first day is a monday, \\s1=0 is set at the end of
- the previous month by .setst :\\s1=0:/.setst :: (, the .setst enables the change
- to be effected without printing the value).
-
-
- This is neither very sophisticated, nor very flexible, requiring alterations
- each year to account for the day on which the month changes, both as to where
- the \\s1=1 appears and whether .rpt should be followed by 3 or 4. Compared to
- exdiary, it does have the advantage of being understandable without too much
- hard thought.