| 1 |
Calendar |
| 2 |
|
| 3 |
This is a metapost calendar, which I use to mark down appointments. |
| 4 |
It prints one month per page, and can generate an entire year's |
| 5 |
with one command. |
| 6 |
|
| 7 |
To generate the next month's calendar: |
| 8 |
mpost calendar |
| 9 |
and the card will be written to bbcard.{number}, where {number} is |
| 10 |
the month number. One drawback: some common metapost implementations |
| 11 |
don't determine the month dynamically, but instead report the month |
| 12 |
of compilation or the month of the last change to the code or something |
| 13 |
like that. In that case, you must set theyear and themonth as indicated |
| 14 |
below: |
| 15 |
|
| 16 |
To generate a year's worth: |
| 17 |
mpost '\theyear:=2003; themonth:=-1; input calendar' |
| 18 |
|
| 19 |
To generate April 2003: |
| 20 |
mpost '\theyear:=2003; themonth:=4; input calendar' |
| 21 |
|
| 22 |
Those command-lines assume a recent Unix installation. On your |
| 23 |
machine, metapost might be called mp rather than mpost, and the |
| 24 |
single-quotes might not be necessary. calendar requires your installation |
| 25 |
to be configured to use the font pplr8r (Palatino). It is not |
| 26 |
suitable for use with the CM fonts. |
| 27 |
|
| 28 |
I've included a few holidays, which I called brands for some reason |
| 29 |
I don't recall. You can remove them or add more by setting the values |
| 30 |
of the approriate element of the `brands' array. For instance: |
| 31 |
|
| 32 |
brands[7][4] := "Independance Day"; |
| 33 |
|
| 34 |
sets the US independance day, which is July 4. |
| 35 |
|
| 36 |
You are free to enhance this file or integrate it with other packages |
| 37 |
if you like. If you do something splendid like adding support for |
| 38 |
floating holidays, send them to me and I'll update the package on CTAN. |