Changeset 4220 for trunk/man/calendar.texi
- Timestamp:
- 04/04/08 22:04:40 (8 months ago)
- Files:
-
- trunk/man/calendar.texi (modified) (6 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/man/calendar.texi
r4204 r4220 1 1 @c This is part of the Emacs manual. 2 2 @c Copyright (C) 1985, 1986, 1987, 1993, 1994, 1995, 1997, 2000, 2001, 3 @c 2002, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc.3 @c 2002, 2003, 2004, 2005, 2006, 2007, 2008 Free Software Foundation, Inc. 4 4 @c See file emacs.texi for copying conditions. 5 5 @node Calendar/Diary, Gnus, Dired, Top … … 433 433 then the printed calendars show the holidays in @code{calendar-holidays}. 434 434 If the variable @code{cal-tex-diary} is non-@code{nil} (the default is 435 @code{nil}), diary entries are included also (in weekly and monthly 436 calendars only). If the variable @code{cal-tex-rules} is non-@code{nil} 437 (the default is @code{nil}), the calendar displays ruled pages 438 in styles that have sufficient room. You can use the variable 439 @code{cal-tex-preamble-extra} to insert extra La@TeX{} commands in the 440 preamble of the generated document if you need to. 435 @code{nil}), diary entries are included also (in monthly, filofax, and 436 iso-week calendars only). If the variable @code{cal-tex-rules} is 437 non-@code{nil} (the default is @code{nil}), the calendar displays ruled 438 pages in styles that have sufficient room. Consult the documentation of 439 the individual cal-tex functions to see which calendars support which 440 features. 441 442 You can use the variable @code{cal-tex-preamble-extra} to insert extra 443 La@TeX{} commands in the preamble of the generated document if you need 444 to. 441 445 442 446 @node Holidays … … 986 990 987 991 The name of the diary file is specified by the variable 988 @code{diary-file}; @file{~/diary} is the default. A sample diary file 989 is (note that the file format is essentially the same as that used by 990 the external shell utility @samp{calendar}): 992 @code{diary-file}; @file{~/diary} is the default. Here's an example 993 showing what that file looks like: 991 994 992 995 @example … … 1005 1008 1006 1009 @noindent 1007 This example uses extra spaces to align the event descriptions of most 1008 of the entries. Such formatting is purely a matter of taste. 1010 This format is essentially the same as the one used by the system's 1011 @command{calendar} utility. This example uses extra spaces to align 1012 the event descriptions of most of the entries. Such formatting is 1013 purely a matter of taste. 1009 1014 1010 1015 Although you probably will start by creating a diary manually, Emacs … … 1393 1398 weeks, and months. It is comparable to a crontab entry interpreted by 1394 1399 the @code{cron} utility. Here is a nonmarking, floating diary entry 1395 that applies to the lastThursday in November:1400 that applies to the fourth Thursday in November: 1396 1401 1397 1402 @findex diary-float 1398 1403 @example 1399 &%%(diary-float 11 4 -1) American Thanksgiving1404 &%%(diary-float 11 4 4) American Thanksgiving 1400 1405 @end example 1401 1406 … … 1403 1408 The 11 specifies November (the eleventh month), the 4 specifies Thursday 1404 1409 (the fourth day of the week, where Sunday is numbered zero), and the 1405 @minus{}1 specifies ``last'' (1 would mean ``first,'' 2 would mean 1406 ``second,'' @minus{}2 would mean ``second-to-last,'' and so on). The 1407 month can be a single month or a list of months. Thus you could change1410 second 4 specifies the fourth Thursday (1 would mean ``first,'' 2 would 1411 mean ``second,'' @minus{}2 would mean ``second-to-last,'' and so on). 1412 The month can be a single month or a list of months. Thus you could change 1408 1413 the 11 above to @samp{'(1 2 3)} and have the entry apply to the last 1409 1414 Thursday of January, February, and March. If the month is @code{t}, the
