Function: cal-tex-insert-month-header

cal-tex-insert-month-header is a byte-compiled function defined in cal-tex.el.gz.

Signature

(cal-tex-insert-month-header N MONTH YEAR END-MONTH END-YEAR)

Documentation

Create a title for a calendar.

A title is inserted for a calendar with N months starting with MONTH YEAR and ending with END-MONTH END-YEAR.

Source Code

;; Defined in /usr/src/emacs/lisp/calendar/cal-tex.el.gz
(defun cal-tex-insert-month-header (n month year end-month end-year)
  "Create a title for a calendar.
A title is inserted for a calendar with N months starting with
MONTH YEAR and ending with END-MONTH END-YEAR."
  (let ((month-name (cal-tex-month-name month))
        (end-month-name (cal-tex-month-name end-month)))
    (if (= 1 n)
        (insert (format "\\calmonth{%s}{%s}\n\\vspace*{-0.5cm}"
                        month-name year) )
      (insert (format "\\calmonth{%s}{%s}{%s}{%s}\n\\vspace*{-0.5cm}"
                      month-name year end-month-name end-year))))
  (cal-tex-comment))