![]() |
Mohsen Banan writes: > > Linking bbdb, auc-tex and flexfax would be nirvana! > Hi Mohsen. Here is what I have in my ~/.emacs: (require 'tex-site) ; load the AUC TeX macros (defvar TeX-printer-list '(("File" "dvips -f %s > %s.ps") ("Local" "dvips -f %s | lpr" "lpq")) "*List of available printers.") ; printers, see tex-site.el and tex.el (defvar TeX-command-list (list (list "TeX" "tex '\\nonstopmode\\input %t'" 'TeX-run-TeX nil t) (list "TeX Interactive" "tex %t" 'TeX-run-interactive nil t) (list "LaTeX" "%l '\\nonstopmode\\input{%t}'" 'TeX-run-LaTeX nil t) (list "LaTeX Interactive" "%l %t" 'TeX-run-interactive nil t) (list "LaTeX2e" "latex2e '\\nonstopmode\\input{%t}'" 'TeX-run-LaTeX nil t) (if (or window-system (getenv "DISPLAY")) (list "View" "%v " 'TeX-run-background t nil) (list "View" "dvi2tty -q -w 132 %s " 'TeX-run-command t nil) ) (list "Print" "%p " 'TeX-run-command t nil) (list "Queue" "%q" 'TeX-run-background nil nil) (list "File" "dvips %d -o %f " 'TeX-run-command t nil) (list "BibTeX" "bibtex %s" 'TeX-run-BibTeX nil nil) (list "Index" "makeindex %s" 'TeX-run-command nil t) (list "Check" "lacheck %s" 'TeX-run-compile nil t) (list "Spell" "<ignored>" 'TeX-run-ispell nil nil) (list "Fax" "sendfax -R -c \"Comment\" -r \"Regarding\" -x \"Company\" -d \"user@number\" %f" 'TeX-run-command t nil) (list "Mail" "metasend -b -e 7bit -m application/postscript -f %f -s \"Subject\" -t \"user@domain.com\"" 'TeX-run-command t nil) (list "Other" "" 'TeX-run-command t t) (list "Makeinfo" "makeinfo %t" 'TeX-run-compile nil t) (list "AmSTeX" "amstex '\\nonstopmode\\input %t'" 'TeX-run-TeX nil t) ) "*List of commands to execute on the current document." ; commands, see tex-site.el and tex.el ) There is probably a more elegant way of doing this with an alist/append construct, but this works pretty well (and you don't have to alter the tex-site.el and tex.el system files,) in spite of a mini-buffer that is cluttered up with command line arguments. "\C-c \C-c file" makes a postscript file out of the dvi file, and "\C-c \C-c fax" shuffles the postscript file off to Hylafax's sendfax, after prompting for the recipient particulars. ("\C-c \C-c mail" shuffles it of to sendmail as a mime application/postscript encapsulation.) The arguments to sendfax can be piddled with, for example, a -n will not use the default cover page in case you want to make your own under LaTeX with fax.sty, etc. John -- John Conover, 631 Lamont Ct., Campbell, CA., 95008, USA. VOX 408.370.2688, FAX 408.379.9602 john@johncon.com