[plt-scheme] slatex and including unit testable code

From: Robby Findler (robby at cs.uchicago.edu)
Date: Wed May 16 09:21:46 EDT 2007

On 5/15/07, Grant Rettke <grettke at acm.org> wrote:
> On 5/15/07, Robby Findler <robby at cs.uchicago.edu> wrote:
> > Slatex lets you include code directly from a file, but I find that I
> > often end up writing scripts that chop up my Scheme file in order to
> > insert it into a slatex document.
> How do you go about chopping up your files, by line number range, or
> procedure name?

Depends, but a way that works well is to have a comment that says
"START CHOPPING HERE" and another one that says "STOP". Usually, I'll
put a filename into the first comment. To read them out, I use regexp
matchign directly on the port.

Its a hack, but sometimes useful.


Posted on the users mailing list.