Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!sdd.hp.com!zaphod.mps.ohio-state.edu!rpi!uupsi!sunic!news.funet.fi!funic!santra!saha.hut.fi!c37189h From: c37189h@saha.hut.fi (Harri "Haba" Suomalainen) Newsgroups: comp.text.tex Subject: Re: Converting a C src file to a TeXable file Message-ID: <1990Oct16.092449.18266@santra.uucp> Date: 16 Oct 90 09:24:49 GMT References: <584@hhb.UUCP> Sender: news@santra.uucp (Cnews - USENET news system) Reply-To: c37189h@saha.hut.fi (Harri "Haba" Suomalainen) Organization: Helsinki University of Technology, FINLAND Lines: 18 In comp.text.tex istvan@hhb.UUCP (Istvan Mohos) writes: >It is not clear what you are looking for. To just output C source code >under TeX (with indentation, spacing, linefeeds, comments, special >characters, etc. preserved), use the ``verbatim macros'' from Appendix D >(pages 381, 391 ISBN 0-201-13448-9) of The TeXbook. I'm running a program called 'tgrind' under DOS. It prints keywords in bold face, comments in italics, etc. I think it has been posted in net quite a while ago. It seems to be quite a buggy, it needed some changes to work at all. It does pascal, prolog, etc. as well. It is also a table driven version so it is quite easy to add a new language format for a new language if needed. -haba -- Harri Suomalainen c37189h@saha.hut.fi haba@otax.tky.hut.fi