Path: utzoo!attcan!uunet!lll-winken!uwm.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!jhunix!barrett From: barrett@jhunix.HCF.JHU.EDU (Dan Barrett) Newsgroups: comp.text.tex Subject: Typesetting programming languages -- RESULTS Keywords: TeX, LaTeX, C Message-ID: <4354@jhunix.HCF.JHU.EDU> Date: 27 Feb 90 19:35:46 GMT Organization: The Johns Hopkins University - HCF Lines: 29 Thank you everybody who sent me suggestions on how to typeset programming languages (like C) in LaTeX. The solution I chose is to use "tgrind". I am not 100% happy with this solution, mainly because once you run something through tgrind, it is hard to edit later. I'd really prefer a system that allowed me to do: \begin{c_code} main() { int foo; ...etc... } \end{c_code} without all the muck that tgrind adds. I suppose I could keep the C files separate, and write a program that runs them through tgrind, \inputs them into the LaTeX document, and runs LaTeX. Dan //////////////////////////////////////\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\ | Dan Barrett, Department of Computer Science Johns Hopkins University | | INTERNET: barrett@cs.jhu.edu | | | COMPUSERVE: >internet:barrett@cs.jhu.edu | UUCP: barrett@jhunix.UUCP | \\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////