Variable: cal-tex-daily-string
cal-tex-daily-string is a customizable variable defined in
cal-tex.el.gz.
Value
(let*
((year (calendar-extract-year date))
(day (calendar-day-number date))
(days-remaining (- (calendar-day-number (list 12 31 year)) day)))
(format "%d/%d" day days-remaining))
Documentation
Lisp expression giving the date format to use in the LaTeX calendars.
This should be an expression involving the variable date. When
this expression is called, date is a list of the form (MONTH DAY YEAR).
The string resulting from evaluating this expression is placed at the bottom center of each date in monthly calendars, next to the date in the weekly calendars, and in the top center of daily calendars.
The default is ordinal day number of the year and the number of days remaining. As an example, setting this to
(calendar-hebrew-date-string date)
will put the Hebrew date at the bottom of each day.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/cal-tex.el.gz
(defcustom cal-tex-daily-string
'(let* ((year (calendar-extract-year date))
(day (calendar-day-number date))
(days-remaining (- (calendar-day-number (list 12 31 year)) day)))
(format "%d/%d" day days-remaining))
"Lisp expression giving the date format to use in the LaTeX calendars.
This should be an expression involving the variable `date'. When
this expression is called, `date' is a list of the form `(MONTH DAY YEAR)'.
The string resulting from evaluating this expression is placed at
the bottom center of each date in monthly calendars, next to the
date in the weekly calendars, and in the top center of daily calendars.
The default is ordinal day number of the year and the number of
days remaining. As an example, setting this to
(calendar-hebrew-date-string date)
will put the Hebrew date at the bottom of each day."
:type 'sexp
:group 'calendar-tex)