<div dir="ltr">You would need to use Scribble&#39;s extension mechanism to tell it to generate an &lt;img&gt; tag (and either don&#39;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">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">On Sat, Apr 20, 2013 at 6:00 PM, Eduardo Costa <span dir="ltr">&lt;<a href="mailto:edu500ac@gmail.com" target="_blank">edu500ac@gmail.com</a>&gt;</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><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&#39;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>____________________<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>