🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.text
Article #119

Re: Pseudocode in LaTeX

#119
From: Jerry Leichter
Date: Wed, 21 Jun 1989 22:17
30 lines
2252 bytes
In article <874@umecs.cs.umu.se>, erikt@zeus.umu.se (Erik Tarnvik) writes...
>How do I typeset pseudocode in LaTeX? I want nicely indented code, with
>some of the code in italics, bold etc. Is there some tool that I can use
>(like vgrind)?

There is, in fact, a program called tgrind which is the exact analogue of
vgrind - it even uses the vgrindefs.src file to learn about language syntax -
but output TeX code.  It was written by Van Jacobson and Chris Torek.  I
picked up a copy from the LaTeX style file archives when they used to be at -
damn, I forget the name now, wherever they were before they moved to Clarkson
- but it's no longer there, and in fact I know of no other distribution site.

However, I have a version I hacked with, which is intended to be used mainly
with LaTeX rather than TeX.  (Actually, Nelson Beebe did a LaTeX style file to
go with the original version which I expanded on.)  I added the ability to
typeset code within the body of existing text, rather than just producing
stand-alone listings.  I have never had the chance to clean the whole thing
up or prepare full documentation, but you are welcome to a copy of what I
have.  You can get it by anonymous FTP from VENUS.YCC.YALE.EDU, file
tgrind.arc.  This is a DECUS C archive, a format that's easy to split up with
any editor.  Easier, though, is to pull off the source for archx.c - the first
thing in the file, it extends to the line that starts "-h- regexp.c" - and
use it to split out the rest.

Use this stuff as you see fit.  I'm interested in comments/bug reports, but
can offer NO support.  "You broke it, you bought it."

I CANNOT MAIL COPIES OF TGRIND!!!  Please don't ask.  If you can't use FTP,
please find someone who can.
							-- Jerry
Technical Details
Message-ID: <64341@yale-celray.yale.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!csd4.milw.wisc.edu!cs.utexas.edu!uunet!yale!leichter

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!utgpu!jarvis.csri.toronto.edu!rutgers!apple!bionet!csd4.milw.wisc.edu!cs.utexas.edu!uunet!yale!leichter
From: leichter@CS.YALE.EDU (Jerry Leichter)
Newsgroups: comp.text
Subject: Re: Pseudocode in LaTeX
Message-ID: <64341@yale-celray.yale.UUCP>
Date: 21 Jun 89 22:17:28 GMT
Sender: root@yale.UUCP
Organization: Yale Computer Science Department, New Haven, Connecticut, USA
Lines: 30
X-from: leichter@CS.YALE.EDU (Jerry Leichter (LEICHTER-JERRY@CS.YALE.EDU))