[gnu.emacs] latex

eho@clarity.Princeton.EDU (Eric Ho) (07/04/90)

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