Xref: utzoo gnu.emacs:3180 comp.text:6982 comp.text.tex:1913 Path: utzoo!utgpu!news-server.csri.toronto.edu!rutgers!njin!princeton!phoenix.princeton.edu!eho From: eho@clarity.Princeton.EDU (Eric Ho) Newsgroups: gnu.emacs,comp.text,comp.text.tex Subject: latex (print + preview) commands in C/Lisp modes for Emacs ?? Message-ID: Date: 4 Jul 90 08:22:14 GMT Sender: news@idunno.Princeton.EDU Followup-To: gnu.emacs Distribution: gnu, comp Organization: Cognitive Science Lab. Princeton University. Lines: 24 Has anyone out there incorporated latex commands in C and/or Lisp (Elisp) modes in Emacs ? At least, commands for printing out or previewing a buffer/file. The reason I asked is that these days when I write C/Lisp code sometimes I want to sprinkle a few latex commands in them so that I may see "pretty" output. Of course, the latex commands will be embedded as C/Lisp comments otherwise it'll choke the C/Lisp compiler/interpreter. I could have written some lex routines to "prettyprint" my C/Lisp files but this means that I'll need to do it for every language I use including all the shell/awk/perl scripts and besides it tends to be more restrictive than freely sprinkling whatever commands I want -- e.g. I can't have certain comments to be in times-bold while the rest of the comments are in italics and I'll need to change my lex programs if I want to change my styles/tastes. So, now I just sprinkle whatever latext commands in my C/Lisp programs but it'll be nice if I can preview/print such buffers while in C/Lisp/fundamental modes with ease. -- Eric Ho Princeton University eho@clarity.princeton.edu