[racket] picts in Scribble

From: Laurent (laurent.orseau at gmail.com)
Date: Mon Nov 29 07:21:45 EST 2010

Excellent!
Great job Matthew!

On Sat, Nov 27, 2010 at 15:54, Matthew Flatt <mflatt at cs.utah.edu> wrote:

> In the latest development version:
>
> The `slideshow/pict' library no longer depends on `racket/gui' --- just
> `racket/draw', which can be used without a GUI display (e.g., an X
> connection).
>
>
> Scribble now renders picts directly for HTML or PDF output. The
> document source
>
>  #lang scribble/base
>  @(require slideshow/face)
>
>  @title{Faces}
>
>  @section{Happy}
>
>  @(face 'happy "yellow")
>
>  @section{Not So Happy}
>
>  @(face 'unhappy "lightblue")
>
> produces what you'd expect.
>
>
> More precisely, Scribble renders values that are convertible to PNG
> (and optionally PDF format) via the new `file/convertible' protocol.
> The protocol is simple, but the indirection keeps Scribble from
> depending directly on the pict library or vice versa. Plain `bitmap%'s
> are convertible to PNG, too, so a bitmap in a Scribble document renders
> as its image.
>
> As an example, the "Quick" document now mostly uses the plain
> `interaction' form with an evaluator that has `slideshow/pict' loaded.
> In the Slideshow docs, some ASCII art in the description of the pict
> datatype has been replaced by a real picture (that is implemented as a
> pict, of course).
>
> _________________________________________________
>  For list-related administrative tasks:
>  http://lists.racket-lang.org/listinfo/users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20101129/247efd04/attachment.html>

Posted on the users mailing list.