<div dir="ltr">I see that you also needed pointers to a few more things; sorry about that. Here's a working example:<div><br></div><div><div>#lang scribble/base</div><div><br></div><div>@(require scribble/core</div><div>
scribble/html-properties)</div><div><br></div><div>@(define cgi-image </div><div> (elem</div><div> #:style</div><div> (make-style #f</div><div> (list (alt-tag "img")</div><div> (attributes</div>
<div> '((src . "<a href="http://strues.org/cgi-bin/tex.cgi?$\\lambda$">http://strues.org/cgi-bin/tex.cgi?$\\lambda$</a>")))))))</div><div><br></div><div>@title{A cgi generated image}</div>
<div><br></div><div>@cgi-image</div></div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 21, 2013 at 9:34 AM, Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">[ adding the list back to the cc line ]<div><br></div><div>You are right: you cannot. You need to use a different mechanism, the one described at the link I sent.</div>
<div><br></div><div>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.</div><span class="HOEnZb"><font color="#888888">
<div><br></div><div>Robby</div></font></span></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><br><div class="gmail_quote">On Sun, Apr 21, 2013 at 8:51 AM, Eduardo Costa <span dir="ltr"><<a href="mailto:edu500ac@gmail.com" target="_blank">edu500ac@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div>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.<br>
<br></div>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.<br></div><div><div><div class="gmail_extra"><br>
<br><div class="gmail_quote">2013/4/20 Robby Findler <span dir="ltr"><<a href="mailto:robby@eecs.northwestern.edu" target="_blank">robby@eecs.northwestern.edu</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">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:<div>
<br></div><div> <a href="http://docs.racket-lang.org/scribble/config.html?q=scribble" target="_blank">http://docs.racket-lang.org/scribble/config.html?q=scribble</a><br><div><br></div><div>Robby</div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote"><div><div>On Sat, Apr 20, 2013 at 6:00 PM, Eduardo Costa <span dir="ltr"><<a href="mailto:edu500ac@gmail.com" target="_blank">edu500ac@gmail.com</a>></span> wrote:<br></div>
</div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>
<div dir="ltr"><div><div>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:<br>
<br><br>#lang scribble/base<br><br>@title{Equations}<br><br>@image{<a href="http://strues.org/cgi-bin/tex.cgi" target="_blank">http://strues.org/cgi-bin/tex.cgi</a>?\sqrt{2}}<br><br><br></div>When I tried to compile the program, I got an error message:<br>
<br>~/wrk/scb$ scribble simple.scb<br> [Output to simple.html]<br>copy-file: cannot open source file<br> source path: /home/rosa/wrk/scb/http:/<a href="http://strues.org/cgi-bin/tex.cgi" target="_blank">strues.org/cgi-bin/tex.cgi</a>?\sqrt{2}<br>
destination path: /home/rosa/wrk/scb/tex.cgi?\sqrt{2}<br> system error: No such file or directory; errno=2<br><br></div>It seems that Scribble wants a ready made image on the path offered to @image{...}. Is there a way around?<br>
<br><br></div>
<br></div></div>____________________<br>
Racket Users list:<br>
<a href="http://lists.racket-lang.org/users" target="_blank">http://lists.racket-lang.org/users</a><br>
<br></blockquote></div><br></div>
</blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>