Function: cal-tex-year
cal-tex-year is a byte-compiled function defined in cal-tex.el.gz.
Signature
(cal-tex-year YEAR N &optional LANDSCAPE)
Documentation
Make a one page yearly calendar of YEAR; do this for N years.
There are four rows of three months each, unless optional LANDSCAPE is non-nil, in which case the calendar is printed in landscape mode with three rows of four months each.
Source Code
;; Defined in /usr/src/emacs/lisp/calendar/cal-tex.el.gz
(defun cal-tex-year (year n &optional landscape)
"Make a one page yearly calendar of YEAR; do this for N years.
There are four rows of three months each, unless optional
LANDSCAPE is non-nil, in which case the calendar is printed in
landscape mode with three rows of four months each."
(cal-tex-insert-preamble 1 (and landscape "landscape"))
(if landscape
(cal-tex-vspace "-.6cm")
(cal-tex-vspace "-3.1cm"))
(dotimes (j n)
(insert "\\vfill%\n")
(cal-tex-b-center)
(cal-tex-Huge (number-to-string year))
(cal-tex-e-center)
(cal-tex-vspace "1cm")
(cal-tex-b-center)
(cal-tex-b-parbox "l" (if landscape "5.9in" "4.3in"))
(insert "\n")
(cal-tex-noindent)
(cal-tex-nl)
(dotimes (i 12)
(insert (cal-tex-mini-calendar (1+ i) year "month" "1.1in" "1in"))
(insert "\\month")
(cal-tex-hspace "0.5in")
(if (zerop (mod (1+ i) (if landscape 4 3)))
(cal-tex-nl "0.5in")))
(cal-tex-e-parbox)
(cal-tex-e-center)
(insert "\\vfill%\n")
(setq year (1+ year))
(if (= j (1- n))
(cal-tex-end-document)
(cal-tex-newpage))
(run-hooks 'cal-tex-year-hook))
(run-hooks 'cal-tex-hook))