[plt-scheme] including a text file inline in slideshow

From: Robby Findler (robby at cs.uchicago.edu)
Date: Sun Jun 19 17:37:48 EDT 2005

At Sun, 19 Jun 2005 15:16:41 -0600, Matthew Flatt wrote:
>   For list-related administrative tasks:
>   http://list.cs.brown.edu/mailman/listinfo/plt-scheme
> 
> At Sun, 19 Jun 2005 17:08:31 -0400, Doug Orleans wrote:
> > Now, though, I'd also like the same thing for Scheme code in an
> > external file.  I can't just replace "tt" with "code", since the
> > latter is a macro.  I tried the following but it puts everything on
> > one line:
> > 
> >   (define (scheme-file->pict file)
> >    (call-with-input-file file
> >      (lambda (port)
> >        (typeset-code (read-syntax file port)))))
> > 
> > Any hints?
> 
> Add `(port-count-lines! port)' before the call to `typeset-code'.

I've added a note to the docs for typeset-code about that.

Robby



Posted on the users mailing list.