Article View: comp.text.tex
Article #11265Typesetting programming languages -- RESULTS
From: Dan Barrett
Date: Tue, 27 Feb 1990 19:35
Date: Tue, 27 Feb 1990 19:35
29 lines
1460 bytes
1460 bytes
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 |
\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\/////////////////////////////////////
Technical Details
Message-ID:
<4354@jhunix.HCF.JHU.EDU>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!lll-winken!uwm.edu!rpi!zaphod.mps.ohio-state.edu!uakari.primate.wisc.edu!aplcen!jhunix!barrettShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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