[racket] Scribble: cgi generated images

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sat Apr 20 20:44:32 EDT 2013

You would need to use Scribble's extension mechanism to tell it to generate
an <img> tag (and either don't compile to pdf or do something clever for
that case). Here are the docs for that:

  http://docs.racket-lang.org/scribble/config.html?q=scribble

Robby


On Sat, Apr 20, 2013 at 6:00 PM, Eduardo Costa <edu500ac at gmail.com> wrote:

> I need to use scribble to present cgi generated chemical and mathematical
> equations. I mean, the figures will be generated on demand; they don't
> exist when I compile the program. According to the principle of least
> astonishment, I tried something like that:
>
>
> #lang scribble/base
>
> @title{Equations}
>
> @image{http://strues.org/cgi-bin/tex.cgi?\sqrt{2}}
>
>
> When I tried to compile the program, I got an error message:
>
> ~/wrk/scb$ scribble simple.scb
>  [Output to simple.html]
> copy-file: cannot open source file
>   source path: /home/rosa/wrk/scb/http:/strues.org/cgi-bin/tex.cgi
> ?\sqrt{2}
>   destination path: /home/rosa/wrk/scb/tex.cgi?\sqrt{2}
>   system error: No such file or directory; errno=2
>
> It seems that Scribble wants a ready made image on the path offered to
> @image{...}. Is there a way around?
>
>
>
> ____________________
>   Racket Users list:
>   http://lists.racket-lang.org/users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.racket-lang.org/users/archive/attachments/20130420/3098256e/attachment.html>

Posted on the users mailing list.