Path: utzoo!mnetor!uunet!seismo!lll-tis!ati.tis.llnl.gov!tjt From: tjt@ati.tis.llnl.gov (Tim Tessin) Newsgroups: comp.lang.postscript Subject: A REAL postscript calendar Message-ID: <22107@tis.llnl.gov> Date: 6 Apr 88 16:22:08 GMT Sender: news@tis.llnl.gov Reply-To: tjt@ati.tis.llnl.gov (Tim Tessin) Lines: 285 This posting contains a vastly improved postscript calendar based on the original "pcal" posted here. It has square days, grey numbers for weekends and even little calendars for the previous and next month. (It also has the leap year bug fixed). It can still stand some improvement (like shading holidays and providing labels for holidays, perhaps using the "holiday" program and some filters) but I haven't got time to keep tweeking. (Play with the weekday labels and see if you can spruce it up). Enjoy, Tim Tessin - Lawrence Livermore National Laboratory tjt@tis.llnl.gov Phone: (415) 423-4560 / 422-8971 ------------------------ cut here ---------------------------- #!/bin/csh -f # # Original From: patwood@unirot.UUCP (Patrick Wood) # # The following is a PostScript program to print calendars. It doesn't # work on or before 1752. # # Shell stuff added 3/9/87 by King Ables # # Made pretty by tjt 1988 # set printer="" top: if ($#argv > 0) then switch ("$argv[1]") case -*: set printer="$argv[1]" shift argv goto top case *: if ($?month) then set year="$argv[1]" else if ($?year) then echo "usage: $0 [-Pprinter] month year" exit 1 else set month="$argv[1]" endif shift argv goto top endsw endif if ($?year) then else echo "usage: $0 [-Pprinter] month year" exit 1 endif lpr $printer <