diff options
| author | Edward M. Reingold | 1996-06-14 18:39:08 +0000 |
|---|---|---|
| committer | Edward M. Reingold | 1996-06-14 18:39:08 +0000 |
| commit | 0e22410ae12ada25072dc418210d978a1b9130c9 (patch) | |
| tree | 08ac91847f5f7ac967b80135c2a04ee7aaecb212 /lisp | |
| parent | 4cc0ea11758b2b5c18dfffe9e46e420cfb2f4e2c (diff) | |
| download | emacs-0e22410ae12ada25072dc418210d978a1b9130c9.tar.gz emacs-0e22410ae12ada25072dc418210d978a1b9130c9.zip | |
Fix Filofax year output so that it's the correct size.
Diffstat (limited to 'lisp')
| -rw-r--r-- | lisp/calendar/cal-tex.el | 24 |
1 files changed, 15 insertions, 9 deletions
diff --git a/lisp/calendar/cal-tex.el b/lisp/calendar/cal-tex.el index eccb9b99018..7f4600a91cd 100644 --- a/lisp/calendar/cal-tex.el +++ b/lisp/calendar/cal-tex.el | |||
| @@ -304,8 +304,10 @@ Optional parameter specifies number of years." | |||
| 304 | (cal-tex-cmd "\\evensidemargin 1.55in") | 304 | (cal-tex-cmd "\\evensidemargin 1.55in") |
| 305 | (cal-tex-cmd "\\topmargin 0pt") | 305 | (cal-tex-cmd "\\topmargin 0pt") |
| 306 | (cal-tex-cmd "\\headheight -0.875in") | 306 | (cal-tex-cmd "\\headheight -0.875in") |
| 307 | (cal-tex-cmd "\\fboxsep 0.5mm") | ||
| 307 | (cal-tex-cmd "\\pagestyle{empty}") | 308 | (cal-tex-cmd "\\pagestyle{empty}") |
| 308 | (cal-tex-b-document) | 309 | (cal-tex-b-document) |
| 310 | (cal-tex-cmd "\\vspace*{0.25in}") | ||
| 309 | (calendar-for-loop j from 1 to n do | 311 | (calendar-for-loop j from 1 to n do |
| 310 | (insert (format "\\hfil {\\Large \\bf %s} \\hfil\\\\\n" year)) | 312 | (insert (format "\\hfil {\\Large \\bf %s} \\hfil\\\\\n" year)) |
| 311 | (cal-tex-b-center) | 313 | (cal-tex-b-center) |
| @@ -316,7 +318,7 @@ Optional parameter specifies number of years." | |||
| 316 | (calendar-for-loop i from 1 to 12 do | 318 | (calendar-for-loop i from 1 to 12 do |
| 317 | (insert (cal-tex-mini-calendar i year | 319 | (insert (cal-tex-mini-calendar i year |
| 318 | (calendar-month-name i) | 320 | (calendar-month-name i) |
| 319 | "1.05in" ".8in" "tiny"))) | 321 | "1in" ".9in" "tiny" "0.6mm"))) |
| 320 | (insert | 322 | (insert |
| 321 | "\\noindent\\fbox{\\January}\\fbox{\\February}\\fbox{\\March}\\\\ | 323 | "\\noindent\\fbox{\\January}\\fbox{\\February}\\fbox{\\March}\\\\ |
| 322 | \\noindent\\fbox{\\April}\\fbox{\\May}\\fbox{\\June}\\\\ | 324 | \\noindent\\fbox{\\April}\\fbox{\\May}\\fbox{\\June}\\\\ |
| @@ -1275,28 +1277,32 @@ Optional prefix argument specifies number of days." | |||
| 1275 | ;;; Mini calendars | 1277 | ;;; Mini calendars |
| 1276 | ;;; | 1278 | ;;; |
| 1277 | 1279 | ||
| 1278 | (defun cal-tex-mini-calendar (month year name width height &optional size) | 1280 | (defun cal-tex-mini-calendar (month year name width height &optional ptsize colsep) |
| 1279 | "Produce mini-calendar for MONTH, YEAR in macro NAME with WIDTH and HEIGHT. | 1281 | "Produce mini-calendar for MONTH, YEAR in macro NAME with WIDTH and HEIGHT. |
| 1280 | Optional SIZE gives the point size; scriptsize is the default," | 1282 | Optional PTSIZE gives the point ptsize; scriptsize is the default. Optional |
| 1283 | COLSEP gives the column separation; 1mm is the default." | ||
| 1281 | (let* ((blank-days;; at start of month | 1284 | (let* ((blank-days;; at start of month |
| 1282 | (mod | 1285 | (mod |
| 1283 | (- (calendar-day-of-week (list month 1 year)) | 1286 | (- (calendar-day-of-week (list month 1 year)) |
| 1284 | calendar-week-start-day) | 1287 | calendar-week-start-day) |
| 1285 | 7)) | 1288 | 7)) |
| 1286 | (last (calendar-last-day-of-month month year)) | 1289 | (last (calendar-last-day-of-month month year)) |
| 1290 | (colsep (if colsep colsep "1mm")) | ||
| 1287 | (str (concat "\\def\\" name "{\\hbox to" width "{%\n" | 1291 | (str (concat "\\def\\" name "{\\hbox to" width "{%\n" |
| 1288 | "\\vbox to" height "{%\n" | 1292 | "\\vbox to" height "{%\n" |
| 1289 | "\\vfil \\hbox to" width "{%\n" | 1293 | "\\vfil \\hbox to" width "{%\n" |
| 1290 | "\\hfil\\" | 1294 | "\\hfil\\" |
| 1291 | (if size size "scriptsize") | 1295 | (if ptsize ptsize "scriptsize") |
| 1292 | "\\begin{tabular}" | 1296 | "\\begin{tabular}" |
| 1293 | "{@{\\hspace{1mm}}r@{\\hspace{1mm}}r@{\\hspace{1mm}}r@{\\hspace{1mm}}" | 1297 | "{@{\\hspace{0mm}}r@{\\hspace{" colsep |
| 1294 | "r@{\\hspace{1mm}}r@{\\hspace{1mm}}r@{\\hspace{1mm}}r@{\\hspace{1mm}}}%\n" | 1298 | "}}r@{\\hspace{" colsep "}}r@{\\hspace{" colsep |
| 1299 | "}}r@{\\hspace{" colsep "}}r@{\\hspace{" colsep | ||
| 1300 | "}}r@{\\hspace{" colsep "}}r@{\\hspace{0mm}}}%\n" | ||
| 1295 | "\\multicolumn{7}{c}{" | 1301 | "\\multicolumn{7}{c}{" |
| 1296 | (calendar-month-name month) | 1302 | (calendar-month-name month) |
| 1297 | " " | 1303 | " " |
| 1298 | (int-to-string year) | 1304 | (int-to-string year) |
| 1299 | "}\\\\[0.5mm]\n"))) | 1305 | "}\\\\[1mm]\n"))) |
| 1300 | (calendar-for-loop i from 0 to 6 do | 1306 | (calendar-for-loop i from 0 to 6 do |
| 1301 | (setq str (concat str | 1307 | (setq str (concat str |
| 1302 | (substring (aref calendar-day-name-array | 1308 | (substring (aref calendar-day-name-array |
| @@ -1304,7 +1310,7 @@ Optional SIZE gives the point size; scriptsize is the default," | |||
| 1304 | 0 2) | 1310 | 0 2) |
| 1305 | (if (/= i 6) | 1311 | (if (/= i 6) |
| 1306 | " & " | 1312 | " & " |
| 1307 | "\\\\[0.5mm]\n")))) | 1313 | "\\\\[0.7mm]\n")))) |
| 1308 | (calendar-for-loop i from 1 to blank-days do | 1314 | (calendar-for-loop i from 1 to blank-days do |
| 1309 | (setq str (concat str " & "))) | 1315 | (setq str (concat str " & "))) |
| 1310 | (calendar-for-loop i from 1 to last do | 1316 | (calendar-for-loop i from 1 to last do |