Current File : //proc/thread-self/root/kunden/usr/share/emacs/27.2/lisp/calendar/cal-tex.elc |
;ELC
;;; Compiled
;;; in Emacs version 27.2
;;; with all optimizations.
;;; This file uses dynamic docstrings, first added in Emacs 19.29.
;;; This file does not contain utf-8 non-ASCII characters,
;;; and so can be loaded in Emacs versions earlier than 23.
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
(byte-code "\300\301!\210\302\303\304\305\306\307\310\301&\210\311\312\313\314\315\316\310\303&\210\311\317\320\321\315\322\310\303&\210\311\323\304\324\315\322\310\303&\210\311\325\304\326\315\322\310\303&\210\311\327\330\331\315\332\310\303&\210\311\333\334\335\315\336\310\303&\210\311\337\304\340\315\322\310\303&\210\311\341\342\343\315\344\310\303&\210\311\345\346\347\315\344\310\303&\210\311\350\304\351\315\352\310\303\353\354& \210\311\355\304\356\315\357\310\303&\210\311\360\304\361\315\357\310\303&\210\311\362\304\363\315\357\310\303&\210\311\364\304\365\315\357\310\303&\210\311\366\304\367\315\357\310\303&\207" [require calendar custom-declare-group calendar-tex nil "Options for printing calendar with LaTeX." :prefix "cal-tex-" :group custom-declare-variable cal-tex-which-days '(0 1 2 3 4 5 6) "The days of the week that are displayed on the portrait monthly calendar.\nSunday is 0, Monday is 1, and so on. The default is to print from Sunday to\nSaturday. For example, (1 3 5) prints only Monday, Wednesday, Friday." :type (repeat integer) cal-tex-holidays t "Non-nil means holidays are printed in the LaTeX calendars that support it.\nSetting this to nil may speed up calendar generation." boolean cal-tex-diary "Non-nil means diary entries are printed in LaTeX calendars that support it.\nSetting this to nil may speed up calendar generation." cal-tex-rules "Non-nil means pages will be ruled in some LaTeX calendar styles.\nAt present, this only affects the daily filofax calendar." cal-tex-daily-string '(let* ((year (calendar-extract-year date)) (day (calendar-day-number date)) (days-remaining (- (calendar-day-number (list 12 31 year)) day))) (format "%d/%d" day days-remaining)) "Lisp expression giving the date format to use in the LaTeX calendars.\nThis should be an expression involving the variable `date'. When\nthis expression is called, `date' is a list of the form `(MONTH DAY YEAR)'.\n\nThe string resulting from evaluating this expression is placed at\nthe bottom center of each date in monthly calendars, next to the\ndate in the weekly calendars, and in the top center of daily calendars.\n\nThe default is ordinal day number of the year and the number of\ndays remaining. As an example, setting this to\n\n (calendar-hebrew-date-string date)\n\nwill put the Hebrew date at the bottom of each day." sexp cal-tex-buffer "calendar.tex" "The name for the output LaTeX calendar buffer." string cal-tex-24 "Non-nil means use a 24 hour clock in the daily calendar." cal-tex-daily-start 8 "The first hour of the daily LaTeX calendar page.\nAt present, this only affects `cal-tex-cursor-day'." integer cal-tex-daily-end 20 "The last hour of the daily LaTeX calendar page.\nAt present, this only affects `cal-tex-cursor-day'." cal-tex-preamble-extra "A string giving extra LaTeX commands to insert in the calendar preamble.\nFor example, to include extra packages:\n\"\\\\usepackage{foo}\\n\\\\usepackage{bar}\\n\"." (choice (const nil) (string :value "\\usepackage{foo}\n\\usepackage{bar}\n")) :version "22.1" cal-tex-hook "List of functions called after any LaTeX calendar buffer is generated.\nYou can use this to do post-processing on the buffer. For example, to change\ncharacters with diacritical marks to their LaTeX equivalents, use\n (add-hook \\='cal-tex-hook\n (lambda () (iso-iso2tex (point-min) (point-max))))" hook cal-tex-year-hook "List of functions called after a LaTeX year calendar buffer is generated." cal-tex-month-hook "List of functions called after a LaTeX month calendar buffer is generated." cal-tex-week-hook "List of functions called after a LaTeX week calendar buffer is generated." cal-tex-daily-hook "List of functions called after a LaTeX daily calendar buffer is generated."] 10)
#@100 The initial LaTeX code for a day.
The holidays, diary entries, bottom string, and the text follow.
(defconst cal-tex-day-prefix "\\caldate{%s}{%s}" (#$ . 4194))
#@95 The format for LaTeX code for a day name.
The names are taken from `calendar-day-name-array'.
(defconst cal-tex-day-name-format "\\myday{%s}%%" (#$ . 4361))
#@63 LaTeX code for the month header, for a single month calendar.
(defconst cal-tex-cal-one-month "\\def\\calmonth#1#2%\n{\\begin{center}%\n\\Huge\\bf\\uppercase{#1} #2 \\\\[1cm]%\n\\end{center}}%\n\\vspace*{-1.5cm}%\n%\n" (#$ . 4524))
#@62 LaTeX code for the month header, for a multi-month calendar.
(defconst cal-tex-cal-multi-month "\\def\\calmonth#1#2#3#4%\n{\\begin{center}%\n\\Huge\\bf #1 #2---#3 #4\\\\[1cm]%\n\\end{center}}%\n\\vspace*{-1.5cm}%\n%\n" (#$ . 4762))
#@31 LaTeX code for a day heading.
(defconst cal-tex-myday "\\renewcommand{\\myday}[1]%\n{\\makebox[\\cellwidth]{\\hfill\\large\\bf#1\\hfill}}\n%\n" (#$ . 5000))
#@104 LaTeX code to insert one box with date info in calendar.
This definition is the heart of the calendar!
(defconst cal-tex-caldate "\\fboxsep=0pt\n\\long\\def\\caldate#1#2#3#4#5#6{%\n \\fbox{\\hbox to\\cellwidth{%\n \\vbox to\\cellheight{%\n \\hbox to\\cellwidth{%\n {\\hspace*{1mm}\\Large \\bf \\strut #2}\\hspace{.05\\cellwidth}%\n \\raisebox{\\holidaymult\\cellheight}%\n {\\parbox[t]{.75\\cellwidth}{\\tiny \\raggedright #4}}}\n \\hbox to\\cellwidth{%\n \\hspace*{1mm}\\parbox{.95\\cellwidth}{\\tiny \\raggedright #3}}\n \\hspace*{1mm}%\n \\hbox to\\cellwidth{#6}%\n \\vfill%\n \\hbox to\\cellwidth{\\hfill \\tiny #5 \\hfill}%\n \\vskip 1.4pt}%\n \\hskip -0.4pt}}}\n" (#$ . 5164))
#@29 LaTeX code for left header.
(defconst cal-tex-lefthead "\\def\\lefthead#1{\\noindent {\\normalsize \\bf #1}\\hfill\\\\[-6pt]}\n" (#$ . 5952))
#@30 LaTeX code for right header.
(defconst cal-tex-righthead "\\def\\righthead#1{\\hfill {\\normalsize \\bf #1}\\\\[-6pt]}\n" (#$ . 6100))
(byte-code "\300\301\302\"\210\300\303\304\"\207" [autoload holiday-in-range "holidays" diary-list-entries "diary-lib"] 3)
#@67 Generate a list of all diary-entries from absolute date D1 to D2.
(defalias 'cal-tex-list-diary-entries #[(d1 d2) "\303\304\305 !\n ZT\306#)\207" [diary-list-include-blanks d1 d2 nil diary-list-entries calendar-gregorian-from-absolute t] 4 (#$ . 6364)])
#@557 Insert the LaTeX calendar preamble into `cal-tex-buffer'.
Preamble includes initial definitions for various LaTeX commands.
Optional string ARGS are included as options for the article
document class with inclusion of default values "12pt" for
size, and "a4paper" for paper unless size or paper are already
specified in ARGS. When ARGS is omitted, by default the option
"12pt,a4paper" is passed. When ARGS has any other value, then
no option is passed to the class.
Insert the "\usepackage{geometry}" directive when ARGS
contains the "landscape" string.
(defalias 'cal-tex-preamble #[(&optional args) "\304!q\210\305 \306\216\307\310\n;\203G \311\312\n\"\204 \n\313P\311\314\n\"\204'