Mercurial > emacs
comparison lisp/calendar/cal-tex.el @ 92592:db21faafefb9
Add autoload cookies to functions formerly autoloaded in calendar.el.
Set `generated-autoload-file' to "cal-loaddefs.el".
(calendar-tex): Move custom group here from calendar.el.
author | Glenn Morris <rgm@gnu.org> |
---|---|
date | Sat, 08 Mar 2008 03:46:13 +0000 |
parents | 107ccd98fa12 |
children | 26dc958b293b |
comparison
equal
deleted
inserted
replaced
92591:dc0c296afd7e | 92592:db21faafefb9 |
---|---|
65 (autoload 'calendar-iso-from-absolute "cal-iso" nil t) | 65 (autoload 'calendar-iso-from-absolute "cal-iso" nil t) |
66 | 66 |
67 ;;; | 67 ;;; |
68 ;;; Customizable variables | 68 ;;; Customizable variables |
69 ;;; | 69 ;;; |
70 | |
71 (defgroup calendar-tex nil | |
72 "Options for printing calendar with LaTeX." | |
73 :prefix "cal-tex-" | |
74 :group 'calendar) | |
70 | 75 |
71 (defcustom cal-tex-which-days '(0 1 2 3 4 5 6) | 76 (defcustom cal-tex-which-days '(0 1 2 3 4 5 6) |
72 "The days of the week that are displayed on the portrait monthly calendar. | 77 "The days of the week that are displayed on the portrait monthly calendar. |
73 Sunday is 0, Monday is 1, and so on. The default is to print from Sunday to | 78 Sunday is 0, Monday is 1, and so on. The default is to print from Sunday to |
74 Saturday. For example, use '(1 3 5) to only print Monday, Wednesday, Friday." | 79 Saturday. For example, use '(1 3 5) to only print Monday, Wednesday, Friday." |
305 | 310 |
306 ;;; | 311 ;;; |
307 ;;; Yearly calendars | 312 ;;; Yearly calendars |
308 ;;; | 313 ;;; |
309 | 314 |
315 ;;;###autoload | |
310 (defun cal-tex-cursor-year (&optional arg) | 316 (defun cal-tex-cursor-year (&optional arg) |
311 "Make a buffer with LaTeX commands for the year cursor is on. | 317 "Make a buffer with LaTeX commands for the year cursor is on. |
312 Optional prefix argument ARG specifies number of years." | 318 Optional prefix argument ARG specifies number of years." |
313 (interactive "p") | 319 (interactive "p") |
314 (cal-tex-year (extract-calendar-year (calendar-cursor-to-date t)) | 320 (cal-tex-year (extract-calendar-year (calendar-cursor-to-date t)) |
315 (or arg 1))) | 321 (or arg 1))) |
316 | 322 |
323 ;;;###autoload | |
317 (defun cal-tex-cursor-year-landscape (&optional arg) | 324 (defun cal-tex-cursor-year-landscape (&optional arg) |
318 "Make a buffer with LaTeX commands for the year cursor is on. | 325 "Make a buffer with LaTeX commands for the year cursor is on. |
319 Optional prefix argument ARG specifies number of years." | 326 Optional prefix argument ARG specifies number of years." |
320 (interactive "p") | 327 (interactive "p") |
321 (cal-tex-year (extract-calendar-year (calendar-cursor-to-date t)) | 328 (cal-tex-year (extract-calendar-year (calendar-cursor-to-date t)) |
355 (cal-tex-end-document) | 362 (cal-tex-end-document) |
356 (cal-tex-newpage)) | 363 (cal-tex-newpage)) |
357 (run-hooks 'cal-tex-year-hook)) | 364 (run-hooks 'cal-tex-year-hook)) |
358 (run-hooks 'cal-tex-hook)) | 365 (run-hooks 'cal-tex-hook)) |
359 | 366 |
367 ;;;###autoload | |
360 (defun cal-tex-cursor-filofax-year (&optional arg) | 368 (defun cal-tex-cursor-filofax-year (&optional arg) |
361 "Make a Filofax one page yearly calendar of year indicated by cursor. | 369 "Make a Filofax one page yearly calendar of year indicated by cursor. |
362 Optional prefix argument ARG specifies number of years." | 370 Optional prefix argument ARG specifies number of years." |
363 (interactive "p") | 371 (interactive "p") |
364 (let ((n (or arg 1)) | 372 (let ((n (or arg 1)) |
407 | 415 |
408 ;;; | 416 ;;; |
409 ;;; Monthly calendars | 417 ;;; Monthly calendars |
410 ;;; | 418 ;;; |
411 | 419 |
420 ;;;###autoload | |
412 (defun cal-tex-cursor-month-landscape (&optional arg) | 421 (defun cal-tex-cursor-month-landscape (&optional arg) |
413 "Make a LaTeX calendar buffer for the month the cursor is on. | 422 "Make a LaTeX calendar buffer for the month the cursor is on. |
414 Optional prefix argument ARG specifies number of months to be | 423 Optional prefix argument ARG specifies number of months to be |
415 produced (default 1). The output is in landscape format, one | 424 produced (default 1). The output is in landscape format, one |
416 month to a page. It shows holiday and diary entries if | 425 month to a page. It shows holiday and diary entries if |
475 (cal-tex-insert-preamble | 484 (cal-tex-insert-preamble |
476 (cal-tex-number-weeks month year 1) t "12pt" t))) | 485 (cal-tex-number-weeks month year 1) t "12pt" t))) |
477 (cal-tex-end-document) | 486 (cal-tex-end-document) |
478 (run-hooks 'cal-tex-hook)))) | 487 (run-hooks 'cal-tex-hook)))) |
479 | 488 |
489 ;;;###autoload | |
480 (defun cal-tex-cursor-month (arg) | 490 (defun cal-tex-cursor-month (arg) |
481 "Make a LaTeX calendar buffer for the month the cursor is on. | 491 "Make a LaTeX calendar buffer for the month the cursor is on. |
482 Optional prefix argument ARG specifies number of months to be | 492 Optional prefix argument ARG specifies number of months to be |
483 produced (default 1). The calendar is condensed onto one page. | 493 produced (default 1). The calendar is condensed onto one page. |
484 It shows holiday and diary entries if `cal-tex-holidays' and | 494 It shows holiday and diary entries if `cal-tex-holidays' and |
660 {\\makebox[2em]{\\rule{0cm}{#2ex}#1}\\rule{3in}{.15mm}}\n" | 670 {\\makebox[2em]{\\rule{0cm}{#2ex}#1}\\rule{3in}{.15mm}}\n" |
661 "One hour and a line on the right.") | 671 "One hour and a line on the right.") |
662 | 672 |
663 ;; TODO cal-tex-diary-support. | 673 ;; TODO cal-tex-diary-support. |
664 ;; TODO respect cal-tex-daily-start,end (see cal-tex-week-hours). | 674 ;; TODO respect cal-tex-daily-start,end (see cal-tex-week-hours). |
675 ;;;###autoload | |
665 (defun cal-tex-cursor-week (&optional arg) | 676 (defun cal-tex-cursor-week (&optional arg) |
666 "Make a LaTeX calendar buffer for a two-page one-week calendar. | 677 "Make a LaTeX calendar buffer for a two-page one-week calendar. |
667 It applies to the week that point is in. The optional prefix | 678 It applies to the week that point is in. The optional prefix |
668 argument ARG specifies the number of weeks (default 1). The calendar | 679 argument ARG specifies the number of weeks (default 1). The calendar |
669 shows holidays if `cal-tex-holidays' is non-nil (note that diary | 680 shows holidays if `cal-tex-holidays' is non-nil (note that diary |
712 (cal-tex-end-document) | 723 (cal-tex-end-document) |
713 (run-hooks 'cal-tex-hook))) | 724 (run-hooks 'cal-tex-hook))) |
714 | 725 |
715 ;; TODO cal-tex-diary support. | 726 ;; TODO cal-tex-diary support. |
716 ;; TODO respect cal-tex-daily-start,end (see cal-tex-week-hours). | 727 ;; TODO respect cal-tex-daily-start,end (see cal-tex-week-hours). |
728 ;;;###autoload | |
717 (defun cal-tex-cursor-week2 (&optional arg) | 729 (defun cal-tex-cursor-week2 (&optional arg) |
718 "Make a LaTeX calendar buffer for a two-page one-week calendar. | 730 "Make a LaTeX calendar buffer for a two-page one-week calendar. |
719 It applies to the week that point is in. Optional prefix | 731 It applies to the week that point is in. Optional prefix |
720 argument ARG specifies number of weeks (default 1). The calendar | 732 argument ARG specifies number of weeks (default 1). The calendar |
721 shows holidays if `cal-tex-holidays' is non-nil (note that diary | 733 shows holidays if `cal-tex-holidays' is non-nil (note that diary |
791 (run-hooks 'cal-tex-week-hook) | 803 (run-hooks 'cal-tex-week-hook) |
792 (cal-tex-newpage))) | 804 (cal-tex-newpage))) |
793 (cal-tex-end-document) | 805 (cal-tex-end-document) |
794 (run-hooks 'cal-tex-hook))) | 806 (run-hooks 'cal-tex-hook))) |
795 | 807 |
808 ;;;###autoload | |
796 (defun cal-tex-cursor-week-iso (&optional arg) | 809 (defun cal-tex-cursor-week-iso (&optional arg) |
797 "Make a LaTeX calendar buffer for a one page ISO-style weekly calendar. | 810 "Make a LaTeX calendar buffer for a one page ISO-style weekly calendar. |
798 Optional prefix argument ARG specifies number of weeks (default 1). | 811 Optional prefix argument ARG specifies number of weeks (default 1). |
799 The calendar shows holiday and diary entries if | 812 The calendar shows holiday and diary entries if |
800 `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil. | 813 `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil. |
922 (cal-tex-arg height) | 935 (cal-tex-arg height) |
923 (cal-tex-nl)))) | 936 (cal-tex-nl)))) |
924 | 937 |
925 ;; TODO cal-tex-diary support. | 938 ;; TODO cal-tex-diary support. |
926 ;; TODO respect cal-tex-daily-start,end (see cal-tex-weekly4-box). | 939 ;; TODO respect cal-tex-daily-start,end (see cal-tex-weekly4-box). |
940 ;;;###autoload | |
927 (defun cal-tex-cursor-week-monday (&optional arg) | 941 (defun cal-tex-cursor-week-monday (&optional arg) |
928 "Make a LaTeX calendar buffer for a two-page one-week calendar. | 942 "Make a LaTeX calendar buffer for a two-page one-week calendar. |
929 It applies to the week that point is in, and starts on Monday. | 943 It applies to the week that point is in, and starts on Monday. |
930 Optional prefix argument ARG specifies number of weeks (default 1). | 944 Optional prefix argument ARG specifies number of weeks (default 1). |
931 The calendar shows holidays if `cal-tex-holidays' is | 945 The calendar shows holidays if `cal-tex-holidays' is |
1002 (cal-tex-vspace "1cm")) | 1016 (cal-tex-vspace "1cm")) |
1003 (cal-tex-e-parbox) | 1017 (cal-tex-e-parbox) |
1004 (cal-tex-e-framebox) | 1018 (cal-tex-e-framebox) |
1005 (cal-tex-hspace "1cm"))) | 1019 (cal-tex-hspace "1cm"))) |
1006 | 1020 |
1021 ;;;###autoload | |
1007 (defun cal-tex-cursor-filofax-2week (&optional arg) | 1022 (defun cal-tex-cursor-filofax-2week (&optional arg) |
1008 "Two-weeks-at-a-glance Filofax style calendar for week cursor is in. | 1023 "Two-weeks-at-a-glance Filofax style calendar for week cursor is in. |
1009 Optional prefix argument ARG specifies number of weeks (default 1). | 1024 Optional prefix argument ARG specifies number of weeks (default 1). |
1010 The calendar shows holiday and diary entries if | 1025 The calendar shows holiday and diary entries if |
1011 `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil." | 1026 `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil." |
1096 (run-hooks 'cal-tex-week-hook) | 1111 (run-hooks 'cal-tex-week-hook) |
1097 (cal-tex-newpage))) | 1112 (cal-tex-newpage))) |
1098 (cal-tex-end-document) | 1113 (cal-tex-end-document) |
1099 (run-hooks 'cal-tex-hook))) | 1114 (run-hooks 'cal-tex-hook))) |
1100 | 1115 |
1116 ;;;###autoload | |
1101 (defun cal-tex-cursor-filofax-week (&optional arg) | 1117 (defun cal-tex-cursor-filofax-week (&optional arg) |
1102 "One-week-at-a-glance Filofax style calendar for week indicated by cursor. | 1118 "One-week-at-a-glance Filofax style calendar for week indicated by cursor. |
1103 Optional prefix argument ARG specifies number of weeks (default 1), | 1119 Optional prefix argument ARG specifies number of weeks (default 1), |
1104 starting on Mondays. The calendar shows holiday and diary entries | 1120 starting on Mondays. The calendar shows holiday and diary entries |
1105 if `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil." | 1121 if `cal-tex-holidays' and `cal-tex-diary', respectively, are non-nil." |
1235 (run-hooks 'cal-tex-week-hook) | 1251 (run-hooks 'cal-tex-week-hook) |
1236 (cal-tex-newpage))) | 1252 (cal-tex-newpage))) |
1237 (cal-tex-end-document) | 1253 (cal-tex-end-document) |
1238 (run-hooks 'cal-tex-hook))) | 1254 (run-hooks 'cal-tex-hook))) |
1239 | 1255 |
1256 ;;;###autoload | |
1240 (defun cal-tex-cursor-filofax-daily (&optional arg) | 1257 (defun cal-tex-cursor-filofax-daily (&optional arg) |
1241 "Day-per-page Filofax style calendar for week indicated by cursor. | 1258 "Day-per-page Filofax style calendar for week indicated by cursor. |
1242 Optional prefix argument ARG specifies number of weeks (default 1), | 1259 Optional prefix argument ARG specifies number of weeks (default 1), |
1243 starting on Mondays. The calendar shows holiday and diary | 1260 starting on Mondays. The calendar shows holiday and diary |
1244 entries if `cal-tex-holidays' and `cal-tex-diary', respectively, | 1261 entries if `cal-tex-holidays' and `cal-tex-diary', respectively, |
1348 | 1365 |
1349 ;;; | 1366 ;;; |
1350 ;;; Daily calendars | 1367 ;;; Daily calendars |
1351 ;;; | 1368 ;;; |
1352 | 1369 |
1370 ;;;###autoload | |
1353 (defun cal-tex-cursor-day (&optional arg) | 1371 (defun cal-tex-cursor-day (&optional arg) |
1354 "Make a buffer with LaTeX commands for the day cursor is on. | 1372 "Make a buffer with LaTeX commands for the day cursor is on. |
1355 Optional prefix argument ARG specifies number of days. The calendar shows | 1373 Optional prefix argument ARG specifies number of days. The calendar shows |
1356 the hours between `cal-tex-daily-start' and `cal-tex-daily-end', using | 1374 the hours between `cal-tex-daily-start' and `cal-tex-daily-end', using |
1357 the 24-hour clock if `cal-tex-24' is non-nil." | 1375 the 24-hour clock if `cal-tex-24' is non-nil." |
1786 (insert "\\textbf{\\large " string "}")) | 1804 (insert "\\textbf{\\large " string "}")) |
1787 | 1805 |
1788 | 1806 |
1789 (provide 'cal-tex) | 1807 (provide 'cal-tex) |
1790 | 1808 |
1791 ;;; arch-tag: ca8168a4-5a00-4508-a565-17e3bccce6d0 | 1809 ;; Local Variables: |
1810 ;; generated-autoload-file: "cal-loaddefs.el" | |
1811 ;; End: | |
1812 | |
1813 ;; arch-tag: ca8168a4-5a00-4508-a565-17e3bccce6d0 | |
1792 ;;; cal-tex.el ends here | 1814 ;;; cal-tex.el ends here |