[plt-scheme] scribbling - tables, definition lists

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sun Feb 10 17:44:30 EST 2008

On Feb 10, 2008, at 5:37 PM, Geoffrey S. Knauth wrote:

> I want to make a table of definitions, for example:
> pomme de terre   potato
> glace            ice cream
> grenouille       frog
> How do I do that with scribble commands?

See struct.ss. Use @make-table with lists and flows, like this:

     @list[@list[@make-flow{@list[@t{hello} @t{world} @t{bye} @t{boy}]}
                     @make-flow{@list[@t{1}      @t{2}        @t 
{3}    @t{4}]}]]}

OR, which is what I was about to do: define a function in your  
document (which is a program after all) that consumes a bunch of  
stuff and arranges it for you

@(define (table . stuff) ...)

-- Matthias

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20080210/938c2d33/attachment.html>

Posted on the users mailing list.