Function: cal-tex-insert-blank-days-at-end
cal-tex-insert-blank-days-at-end is a byte-compiled function defined
in cal-tex.el.gz.
Signature
(cal-tex-insert-blank-days-at-end MONTH YEAR DAY-FORMAT)
Documentation
Insert code for final days not in calendar.
Insert LaTeX code for the blank days at the end of the MONTH in YEAR. The entry is formatted using DAY-FORMAT.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/cal-tex.el.gz
(defun cal-tex-insert-blank-days-at-end (month year day-format)
"Insert code for final days not in calendar.
Insert LaTeX code for the blank days at the end of the MONTH in YEAR.
The entry is formatted using DAY-FORMAT."
(if (cal-tex-last-blank-p month year)
(let* ((last-day (calendar-last-day-of-month month year))
(blank-days ; at end of month
(mod
(- (calendar-day-of-week (list month last-day year))
calendar-week-start-day)
7))
(i blank-days))
(while (<= (setq i (1+ i)) 6)
(if (memq (mod (+ calendar-week-start-day i) 7) cal-tex-which-days)
(insert (format day-format "" "") "{}{}{}{}%\n"))))))