[racket] Scribble: cgi generated images

From: Robby Findler (robby at eecs.northwestern.edu)
Date: Sun Apr 21 10:34:41 EDT 2013

[ adding the list back to the cc line ]

You are right: you cannot. You need to use a different mechanism, the one
described at the link I sent.

Did you try that and get stuck? If so, it would be great to hear how so I
can improve those docs to help future users.

Robby


On Sun, Apr 21, 2013 at 8:51 AM, Eduardo Costa <edu500ac at gmail.com> wrote:

> I am afraid I will not understand how to make @image{..} accept an url
> without a concrete example. I tried everything that occurred to me, but it
> still does not work.  Could you just tell me how to make image accept an
> url? I think that I will be able to add other things after seeing this
> example.
>
> I used grep to  look for an example in the scribble folder, but I failed
> in finding one.  Thank you for replying and making suggestions.
>
>
> 2013/4/20 Robby Findler <robby at eecs.northwestern.edu>
>
>> 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/20130421/e131fcae/attachment-0001.html>

Posted on the users mailing list.