Document WEEK special. Clean up rem2ps handling of WEEK.

This commit is contained in:
David F. Skoll
2008-11-15 09:20:54 -05:00
parent 56ebedb9de
commit 93ac1aebf7
2 changed files with 9 additions and 1 deletions

View File

@@ -3958,6 +3958,14 @@ The COLOR special is "doubly special", because in its normal operating
mode, \fBremind\fR treats a COLOR special just like a MSG-type reminder.
Also, if you invoke \fBRemind\fR with \fB\-cc\fR..., then it approximates
SPECIAL COLOR reminders on your terminal.
.PP
The \fBWEEK\fR special lets you place annotations such as the week
number in the calendar. For example, this would number each Sunday
with the ISO 8601 week number:
.nf
REM Sunday SPECIAL WEEK (W[weekno()])
.fi
.SH MISCELLANEOUS
.PP

View File

@@ -960,7 +960,7 @@ int DoQueuedPs(void)
break;
case SPECIAL_WEEK: /* Week number */
printf("gsave Border Border moveto /EntryFont findfont EntrySize 1.2 div scalefont setfont (");
printf("gsave Border Border 2 div moveto /EntryFont findfont EntrySize 1.2 div scalefont setfont (");
s = e->entry+fnoff;
while(*s && isspace(*s)) {
s++;