[OS X TeX] Not really a LaTeX question . . .

Piet van Oostrum piet at cs.uu.nl
Sun Jan 2 18:21:27 CET 2005


>>>>> chris ciotti <chris.ciotti at gmail.com> (CC) wrote:

CC> Greetings and Happy New Year - 
CC> I'd like to know if there is a way of scripting emacs to generate LaTeX
CC> calendars. I'd like it to put each week
CC> (M-x cal-tex-mouse-week-iso) in a separate tex file for compilation. 
CC> I know enough elisp to be dangerous but I figured someone may know how
CC> do this this straightaway.

(defun gen-tex-cal ()
  (interactive)
  (calendar)
  (let ((weeknr 1))
    (while (< weeknr 54)
      (cal-tex-cursor-week-iso)
      (set-buffer "calendar.tex")
      (write-file (format "week-%d.tex" weeknr))
      (set-buffer "*Calendar*")
      (setq weeknr (1+ weeknr))
      (calendar-forward-week 1))))

-- 
Piet van Oostrum <piet at cs.uu.nl>
URL: http://www.cs.uu.nl/~piet [PGP]
Private email: P.van.Oostrum at hccnet.nl
--------------------- Info ---------------------
Mac-TeX Website: http://www.esm.psu.edu/mac-tex/
           & FAQ: http://latex.yauh.de/faq/
TeX FAQ: http://www.tex.ac.uk/faq
List Post: <mailto:MacOSX-TeX at email.esm.psu.edu>





More information about the macostex-archives mailing list