Mercurial > emacs
changeset 15432:c76e8e8fdb0a
Fix Filofax year output so that it's the correct size.
author | Edward M. Reingold <reingold@emr.cs.iit.edu> |
---|---|
date | Fri, 14 Jun 1996 18:39:08 +0000 |
parents | 68cca71d69bd |
children | 172725d0d2d5 |
files | lisp/calendar/cal-tex.el |
diffstat | 1 files changed, 15 insertions(+), 9 deletions(-) [+] |
line wrap: on
line diff
--- a/lisp/calendar/cal-tex.el Fri Jun 14 02:11:11 1996 +0000 +++ b/lisp/calendar/cal-tex.el Fri Jun 14 18:39:08 1996 +0000 @@ -304,8 +304,10 @@ (cal-tex-cmd "\\evensidemargin 1.55in") (cal-tex-cmd "\\topmargin 0pt") (cal-tex-cmd "\\headheight -0.875in") + (cal-tex-cmd "\\fboxsep 0.5mm") (cal-tex-cmd "\\pagestyle{empty}") (cal-tex-b-document) + (cal-tex-cmd "\\vspace*{0.25in}") (calendar-for-loop j from 1 to n do (insert (format "\\hfil {\\Large \\bf %s} \\hfil\\\\\n" year)) (cal-tex-b-center) @@ -316,7 +318,7 @@ (calendar-for-loop i from 1 to 12 do (insert (cal-tex-mini-calendar i year (calendar-month-name i) - "1.05in" ".8in" "tiny"))) + "1in" ".9in" "tiny" "0.6mm"))) (insert "\\noindent\\fbox{\\January}\\fbox{\\February}\\fbox{\\March}\\\\ \\noindent\\fbox{\\April}\\fbox{\\May}\\fbox{\\June}\\\\ @@ -1275,28 +1277,32 @@ ;;; Mini calendars ;;; -(defun cal-tex-mini-calendar (month year name width height &optional size) +(defun cal-tex-mini-calendar (month year name width height &optional ptsize colsep) "Produce mini-calendar for MONTH, YEAR in macro NAME with WIDTH and HEIGHT. -Optional SIZE gives the point size; scriptsize is the default," +Optional PTSIZE gives the point ptsize; scriptsize is the default. Optional +COLSEP gives the column separation; 1mm is the default." (let* ((blank-days;; at start of month (mod (- (calendar-day-of-week (list month 1 year)) calendar-week-start-day) 7)) - (last (calendar-last-day-of-month month year)) + (last (calendar-last-day-of-month month year)) + (colsep (if colsep colsep "1mm")) (str (concat "\\def\\" name "{\\hbox to" width "{%\n" "\\vbox to" height "{%\n" "\\vfil \\hbox to" width "{%\n" "\\hfil\\" - (if size size "scriptsize") + (if ptsize ptsize "scriptsize") "\\begin{tabular}" - "{@{\\hspace{1mm}}r@{\\hspace{1mm}}r@{\\hspace{1mm}}r@{\\hspace{1mm}}" - "r@{\\hspace{1mm}}r@{\\hspace{1mm}}r@{\\hspace{1mm}}r@{\\hspace{1mm}}}%\n" + "{@{\\hspace{0mm}}r@{\\hspace{" colsep + "}}r@{\\hspace{" colsep "}}r@{\\hspace{" colsep + "}}r@{\\hspace{" colsep "}}r@{\\hspace{" colsep + "}}r@{\\hspace{" colsep "}}r@{\\hspace{0mm}}}%\n" "\\multicolumn{7}{c}{" (calendar-month-name month) " " (int-to-string year) - "}\\\\[0.5mm]\n"))) + "}\\\\[1mm]\n"))) (calendar-for-loop i from 0 to 6 do (setq str (concat str (substring (aref calendar-day-name-array @@ -1304,7 +1310,7 @@ 0 2) (if (/= i 6) " & " - "\\\\[0.5mm]\n")))) + "\\\\[0.7mm]\n")))) (calendar-for-loop i from 1 to blank-days do (setq str (concat str " & "))) (calendar-for-loop i from 1 to last do