chk@cs.purdue.EDU (Chuck Koelbel) (04/07/88)
I am looking for a way to automatically format program listings for inclusion in LaTeX documents. The ideal solution would be the TeX/LaTeX equivalent of vgrind, a program that formats listings using troff. For those of you not familiar with that program, some of the more interesting features are: keywords appear in boldface comments appear in italics other tokens appear in roman indentation of the original program is preserved ability to define your own language (in a separate file) and use that file as a guide to formatting The result of all this is that the program comes out looking "nice", like the example programs in intro textbooks. So, does anybody have a solution to formatting programs? Either a completely automatic system (like vgrind) or a good set of macros or a LaTeX environment would be helpful. Please reply by e-mail. I'll summarize to the net if interest warrants. Chuck Koelbel