Article View: comp.text
Article #4587Formatting programs in TeX/LaTeX
From: Chuck Koelbel
Date: Thu, 07 Apr 1988 04:06
Date: Thu, 07 Apr 1988 04:06
24 lines
1278 bytes
1278 bytes
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
Technical Details
Message-ID:
<3793@medusa.cs.purdue.edu>Path:
arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!purdue!chkShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!mnetor!uunet!husc6!purdue!chk From: chk@cs.purdue.EDU (Chuck Koelbel) Newsgroups: comp.text Subject: Formatting programs in TeX/LaTeX Message-ID: <3793@medusa.cs.purdue.edu> Date: 7 Apr 88 04:06:12 GMT Sender: news@cs.purdue.EDU Organization: Department of Computer Science, Purdue University Lines: 23