aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lisp/calendar/cal-tex.el37
1 files changed, 17 insertions, 20 deletions
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el
index c0ec98bbec4..0012009f2b0 100644
--- a/lisp/calendar/cal-tex.el
+++ b/lisp/calendar/cal-tex.el
@@ -49,11 +49,6 @@
49(autoload 'calendar-holiday-list "holidays" nil t) 49(autoload 'calendar-holiday-list "holidays" nil t)
50(autoload 'calendar-iso-from-absolute "cal-iso" nil t) 50(autoload 'calendar-iso-from-absolute "cal-iso" nil t)
51 51
52
53(defun cal-tex-version ()
54 (interactive)
55 (message "Version 1, October 11, 1995"))
56
57;;; 52;;;
58;;; Customizable variables 53;;; Customizable variables
59;;; 54;;;
@@ -252,7 +247,7 @@ Optional prefix argument specifies number of years."
252 247
253(defun cal-tex-cursor-year-landscape (&optional arg) 248(defun cal-tex-cursor-year-landscape (&optional arg)
254 "Make a buffer with LaTeX commands for the year cursor is on. 249 "Make a buffer with LaTeX commands for the year cursor is on.
255Optional prefix argument specifies numeber of years." 250Optional prefix argument specifies number of years."
256 (interactive "P") 251 (interactive "P")
257 (cal-tex-year (extract-calendar-year (calendar-cursor-to-date t)) 252 (cal-tex-year (extract-calendar-year (calendar-cursor-to-date t))
258 (if arg arg 1) 253 (if arg arg 1)
@@ -597,7 +592,8 @@ this is only an upper bound."
597;;; 592;;;
598 593
599(defun cal-tex-cursor-week (&optional arg) 594(defun cal-tex-cursor-week (&optional arg)
600 "One page calendar for week indicated by cursor. 595 "Make a buffer with LaTeX commands for a two-page one-week calendar.
596It applies to the week that point is in.
601Optional prefix argument specifies number of weeks. 597Optional prefix argument specifies number of weeks.
602Holidays are included if `cal-tex-holidays' is t." 598Holidays are included if `cal-tex-holidays' is t."
603 (interactive "P") 599 (interactive "P")
@@ -647,8 +643,8 @@ Holidays are included if `cal-tex-holidays' is t."
647 (run-hooks 'cal-tex-hook))) 643 (run-hooks 'cal-tex-hook)))
648 644
649(defun cal-tex-cursor-week2 (&optional arg) 645(defun cal-tex-cursor-week2 (&optional arg)
650 "Make a buffer with LaTeX commands for the week cursor is on. 646 "Make a buffer with LaTeX commands for a two-page one-week calendar.
651The printed output will be on two pages. 647It applies to the week that point is in.
652Optional prefix argument specifies number of weeks. 648Optional prefix argument specifies number of weeks.
653Holidays are included if `cal-tex-holidays' is t." 649Holidays are included if `cal-tex-holidays' is t."
654 (interactive "P") 650 (interactive "P")
@@ -726,10 +722,10 @@ Holidays are included if `cal-tex-holidays' is t."
726 (cal-tex-end-document) 722 (cal-tex-end-document)
727 (run-hooks 'cal-tex-hook))) 723 (run-hooks 'cal-tex-hook)))
728 724
729(defun cal-tex-cursor-week3 (&optional arg) 725(defun cal-tex-cursor-week-iso (&optional arg)
730 "One page ISO style calendar for the ISO week indicated by cursor. 726 "Make a buffer with LaTeX commands for a one page ISO-style weekly calendar.
731Optional prefix argument specifies number of weeks. 727Optional prefix argument specifies number of weeks.
732Diary entries are included if cal-tex-diary is t. 728Diary entries are included if `cal-tex-diary' is t.
733Holidays are included if `cal-tex-holidays' is t." 729Holidays are included if `cal-tex-holidays' is t."
734 (interactive "P") 730 (interactive "P")
735 (let* ((n (if arg arg 1)) 731 (let* ((n (if arg arg 1))
@@ -857,10 +853,11 @@ Holidays are included if `cal-tex-holidays' is t."
857 (cal-tex-arg height) 853 (cal-tex-arg height)
858 (cal-tex-nl)))) 854 (cal-tex-nl))))
859 855
860(defun cal-tex-cursor-week4 (&optional arg) 856(defun cal-tex-cursor-week-monday (&optional arg)
861 "One page calendar for week indicated by cursor. 857 "Make a buffer with LaTeX commands for a two-page one-week calendar.
862Week begins on Monday. 858It applies to the week that point is in, and starts on Monday.
863Optional prefix argument specifies number of weeks." 859Optional prefix argument specifies number of weeks.
860Holidays are included if `cal-tex-holidays' is t."
864 (interactive "P") 861 (interactive "P")
865 (let* ((n (if arg arg 1)) 862 (let* ((n (if arg arg 1))
866 (date (calendar-gregorian-from-absolute 863 (date (calendar-gregorian-from-absolute
@@ -931,10 +928,10 @@ Optional prefix argument specifies number of weeks."
931 (cal-tex-e-framebox) 928 (cal-tex-e-framebox)
932 (cal-tex-hspace "1cm"))) 929 (cal-tex-hspace "1cm")))
933 930
934(defun cal-tex-cursor-week5 (&optional arg) 931(defun cal-tex-cursor-filofax-2week (&optional arg)
935 "Two-weeks-at-a-glance Filofax style calendar for week indicated by cursor. 932 "Two-weeks-at-a-glance Filofax style calendar for week indicated by cursor.
936Optional prefix argument specifies number of weeks. 933Optional prefix argument specifies number of weeks.
937Diary entries are included if cal-tex-diary is t. 934Diary entries are included if `cal-tex-diary' is t.
938Holidays are included if `cal-tex-holidays' is t." 935Holidays are included if `cal-tex-holidays' is t."
939 (interactive "P") 936 (interactive "P")
940 (let* ((n (if arg arg 1)) 937 (let* ((n (if arg arg 1))
@@ -1032,11 +1029,11 @@ Holidays are included if `cal-tex-holidays' is t."
1032 (cal-tex-end-document) 1029 (cal-tex-end-document)
1033 (run-hooks 'cal-tex-hook))) 1030 (run-hooks 'cal-tex-hook)))
1034 1031
1035(defun cal-tex-cursor-week6 (&optional arg) 1032(defun cal-tex-cursor-filofax-week (&optional arg)
1036 "One-week-at-a-glance Filofax style calendar for week indicated by cursor. 1033 "One-week-at-a-glance Filofax style calendar for week indicated by cursor.
1037Optional prefix argument specifies number of weeks. 1034Optional prefix argument specifies number of weeks.
1038Weeks start on Monday. 1035Weeks start on Monday.
1039Diary entries are included if cal-tex-diary is t. 1036Diary entries are included if `cal-tex-diary' is t.
1040Holidays are included if `cal-tex-holidays' is t." 1037Holidays are included if `cal-tex-holidays' is t."
1041 (interactive "P") 1038 (interactive "P")
1042 (let* ((n (if arg arg 1)) 1039 (let* ((n (if arg arg 1))